Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 103.9 kB / 16.62 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00128/0.001281, allocations: 189.9 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2109/0.2109, allocations: 38.01 MB / 329.4 MB, free: 8.992 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 65.38 kB / 398.3 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1224, allocations: 58.07 MB / 456.3 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.01105/0.1335, allocations: 8.202 MB / 464.5 MB, free: 172 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007064/0.1406, allocations: 3.315 MB / 467.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001388/0.142, allocations: 59.62 kB / 467.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001625/0.1436, allocations: 330.3 kB / 468.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002088/0.1457, allocations: 0.5678 MB / 468.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001356/0.1471, allocations: 398.3 kB / 469.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002535/0.1497, allocations: 1.489 MB / 470.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002527/0.1522, allocations: 1.215 MB / 471.9 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00149/0.1537, allocations: 0.5643 MB / 472.5 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001068/0.1548, allocations: 0.6733 MB / 473.1 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001637/0.155, allocations: 112 kB / 473.2 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006448/0.1556, allocations: 355.5 kB / 473.6 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003593/0.156, allocations: 410.9 kB / 474 MB, free: 6.668 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000585/0.1566, allocations: 0.5754 MB / 474.6 MB, free: 6.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001807/0.1584, allocations: 1.643 MB / 476.2 MB, free: 4.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1584, allocations: 3.938 kB / 476.2 MB, free: 4.438 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.1584, allocations: 0 / 476.2 MB, free: 4.438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.1585, allocations: 7.875 kB / 476.2 MB, free: 4.43 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002837/0.1613, allocations: 1.413 MB / 477.6 MB, free: 2.965 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.326e-05/0.1614, allocations: 15.89 kB / 477.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007052/0.1621, allocations: 159.5 kB / 477.8 MB, free: 2.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00131/0.1634, allocations: 0.7935 MB / 478.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.946e-05/0.1635, allocations: 69.92 kB / 478.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000189/0.1637, allocations: 87.91 kB / 478.8 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001822/0.1655, allocations: 1.149 MB / 479.9 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.883e-05/0.1656, allocations: 11.92 kB / 479.9 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.126e-05/0.1657, allocations: 40 kB / 480 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001045/0.1658, allocations: 57.98 kB / 480 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/0.1674, allocations: 0.9408 MB / 481 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006241/0.1736, allocations: 4.636 MB / 485.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.1748, allocations: 0.6803 MB / 486.3 MB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005523/0.1754, allocations: 334.2 kB / 486.6 MB, free: 9.621 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.108e-05/0.1754, allocations: 8.547 kB / 486.6 MB, free: 9.613 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.1755, allocations: 47.11 kB / 486.6 MB, free: 9.559 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.434e-06/0.1755, allocations: 0 / 486.6 MB, free: 9.559 MB / 366.1 MB Notification: Performance of matching and sorting (n=62): time 0.004857/0.1803, allocations: 2.35 MB / 489 MB, free: 7.133 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.22e-05/0.1804, allocations: 137.1 kB / 489.1 MB, free: 6.969 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008812/0.1813, allocations: 0.6801 MB / 489.8 MB, free: 6.277 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.21e-05/0.1814, allocations: 37.7 kB / 489.9 MB, free: 6.234 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003547/0.1818, allocations: 490.8 kB / 490.3 MB, free: 5.746 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001875/0.1819, allocations: 216.8 kB / 490.5 MB, free: 5.531 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002313/0.1822, allocations: 150.6 kB / 490.7 MB, free: 5.379 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.1824, allocations: 390.8 kB / 491.1 MB, free: 4.988 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000506/0.1829, allocations: 276.7 kB / 491.3 MB, free: 4.715 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006509/0.1835, allocations: 0.5121 MB / 491.9 MB, free: 4.098 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003664/0.1872, allocations: 1.513 MB / 493.4 MB, free: 2.465 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/0.1872, allocations: 4 kB / 493.4 MB, free: 2.461 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00311/0.1904, allocations: 1.382 MB / 494.8 MB, free: 1.043 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.1904, allocations: 8 kB / 494.8 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/0.1904, allocations: 8 kB / 494.8 MB, free: 1.027 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001607/0.192, allocations: 439.2 kB / 495.2 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005612/0.1926, allocations: 147.8 kB / 495.3 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009716/0.2024, allocations: 6.704 MB / 0.4903 GB, free: 9.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008177/0.2032, allocations: 39.97 kB / 0.4903 GB, free: 9.426 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001497/0.2034, allocations: 36 kB / 0.4904 GB, free: 9.391 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.sm_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001105/0.2045, allocations: 0.5096 MB / 0.4908 GB, free: 8.875 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007211/0.2052, allocations: 0.5004 MB / 0.4913 GB, free: 8.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003552/0.2088, allocations: 1.486 MB / 0.4928 GB, free: 6.664 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.788e-06/0.2088, allocations: 0 / 0.4928 GB, free: 6.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=100) (initialization_lambda0): time 0.002954/0.2118, allocations: 1.301 MB / 0.4941 GB, free: 5.328 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.2118, allocations: 8 kB / 0.4941 GB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.611e-05/0.2118, allocations: 12 kB / 0.4941 GB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001462/0.2133, allocations: 429.6 kB / 0.4945 GB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000525/0.2138, allocations: 143.8 kB / 0.4946 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008942/0.2228, allocations: 6.482 MB / 0.501 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007474/0.2236, allocations: 39.89 kB / 0.501 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.2237, allocations: 43.92 kB / 0.501 GB, free: 13.89 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0003333/0.224, allocations: 228 kB / 0.5013 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000226/0.2243, allocations: 83.06 kB / 0.5013 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001402/0.2257, allocations: 0.7302 MB / 0.502 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.814e-06/0.2257, allocations: 8 kB / 0.5021 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2257, allocations: 0 / 0.5021 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.2257, allocations: 7.984 kB / 0.5021 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003151/0.2289, allocations: 1.75 MB / 0.5038 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/0.2289, allocations: 8.156 kB / 0.5038 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000738/0.2297, allocations: 143.8 kB / 0.5039 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001087/0.2298, allocations: 24.83 kB / 0.5039 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.455e-05/0.2298, allocations: 16 kB / 0.504 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001004/0.2309, allocations: 1.382 MB / 0.5053 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2309, allocations: 4.156 kB / 0.5053 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001804/0.2327, allocations: 1.205 MB / 0.5065 GB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003455/0.233, allocations: 216.1 kB / 0.5067 GB, free: 7.809 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001347/0.2332, allocations: 15.98 kB / 0.5067 GB, free: 7.793 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004683/0.2337, allocations: 23.98 kB / 0.5067 GB, free: 7.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.2338, allocations: 48.44 kB / 0.5068 GB, free: 7.723 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-05/0.2338, allocations: 16 kB / 0.5068 GB, free: 7.707 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000603/0.2344, allocations: 483 kB / 0.5072 GB, free: 7.238 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2344, allocations: 0 / 0.5072 GB, free: 7.238 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001593/0.236, allocations: 412 kB / 0.5076 GB, free: 6.836 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,frictTorq.phi,PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003132/0.2364, allocations: 142.3 kB / 0.5078 GB, free: 6.691 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004022/0.2404, allocations: 2.097 MB / 0.5098 GB, free: 4.547 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.2404, allocations: 0 / 0.5098 GB, free: 4.547 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007224/0.2411, allocations: 453.8 kB / 0.5103 GB, free: 4.094 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.2425, allocations: 226.3 kB / 0.5105 GB, free: 3.879 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004111/0.2467, allocations: 2.481 MB / 0.5129 GB, free: 1.359 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008753/0.2475, allocations: 1.116 MB / 0.514 GB, free: 220 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.182/0.4295, allocations: 216.8 kB / 0.5142 GB, free: 67.87 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000308/0.4299, allocations: 59.28 kB / 0.5143 GB, free: 67.87 MB / 398.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4299, allocations: 1.562 kB / 0.5143 GB, free: 67.87 MB / 398.1 MB Notification: Performance of Templates: time 0.02626/0.4562, allocations: 17.15 MB / 0.531 GB, free: 63.61 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)