Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.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.ASM,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 112.1 kB / 16.51 MB, free: 6.707 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.001149/0.001149, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.384/1.384, allocations: 222.9 MB / 241.1 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1779/0.1779, allocations: 38.03 MB / 329.3 MB, free: 9.02 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 61.39 kB / 398.1 MB, free: 34.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1192, allocations: 58.06 MB / 456.1 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.01066/0.1299, allocations: 8.647 MB / 464.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01034/0.1403, allocations: 5.805 MB / 470.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001622/0.142, allocations: 55.62 kB / 470.7 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01086/0.1529, allocations: 5.681 MB / 476.3 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002024/0.1549, allocations: 0.6421 MB / 477 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001268/0.1562, allocations: 475.3 kB / 477.4 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003993/0.1602, allocations: 3.412 MB / 480.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001618/0.1619, allocations: 1.155 MB / 482 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001158/0.163, allocations: 0.6499 MB / 482.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001193/0.1642, allocations: 0.954 MB / 483.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001966/0.1644, allocations: 80 kB / 483.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001313/0.1658, allocations: 0.6512 MB / 484.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006478/0.1664, allocations: 0.6 MB / 484.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007911/0.1672, allocations: 0.688 MB / 485.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002346/0.1696, allocations: 2.123 MB / 487.8 MB, free: 8.805 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1696, allocations: 0 / 487.8 MB, free: 8.805 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1696, allocations: 0 / 487.8 MB, free: 8.805 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.232e-05/0.1697, allocations: 4 kB / 487.8 MB, free: 8.801 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 293 * Number of variables: 293 Notification: Performance of Generate backend data structure: time 0.004515/0.1742, allocations: 1.952 MB / 489.7 MB, free: 6.766 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.1742, allocations: 8.031 kB / 489.7 MB, free: 6.758 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007678/0.175, allocations: 175.2 kB / 489.9 MB, free: 6.586 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001916/0.1769, allocations: 1.022 MB / 490.9 MB, free: 5.523 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001831/0.1771, allocations: 183 kB / 491.1 MB, free: 5.324 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002088/0.1774, allocations: 111.9 kB / 491.2 MB, free: 5.215 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003273/0.1806, allocations: 1.859 MB / 493.1 MB, free: 3.281 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.319e-05/0.1807, allocations: 4 kB / 493.1 MB, free: 3.277 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001448/0.1808, allocations: 43.97 kB / 493.1 MB, free: 3.234 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003057/0.1812, allocations: 121.9 kB / 493.2 MB, free: 3.117 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002924/0.1841, allocations: 1.608 MB / 494.8 MB, free: 1.508 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00957/0.1937, allocations: 5.755 MB / 0.4889 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002579/0.1963, allocations: 1.199 MB / 0.49 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001552/0.1979, allocations: 0.7425 MB / 0.4908 GB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.682e-05/0.198, allocations: 17.14 kB / 0.4908 GB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001897/0.1999, allocations: 0.9759 MB / 0.4917 GB, free: 8.578 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.346e-06/0.1999, allocations: 3.938 kB / 0.4917 GB, free: 8.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=119): time 0.009684/0.2096, allocations: 4.661 MB / 0.4963 GB, free: 3.781 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.346e-05/0.2097, allocations: 139.7 kB / 0.4964 GB, free: 3.621 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009919/0.2107, allocations: 0.7898 MB / 0.4972 GB, free: 2.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.2108, allocations: 53.7 kB / 0.4972 GB, free: 2.762 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004459/0.2113, allocations: 0.5075 MB / 0.4977 GB, free: 2.246 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003803/0.2116, allocations: 402.3 kB / 0.4981 GB, free: 1.848 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004008/0.2121, allocations: 238.8 kB / 0.4983 GB, free: 1.605 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002178/0.2123, allocations: 426.7 kB / 0.4987 GB, free: 1.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001009/0.2133, allocations: 0.6865 MB / 0.4994 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2571/0.4704, allocations: 0.9648 MB / 0.5004 GB, free: 56.49 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002715/0.4732, allocations: 1.685 MB / 0.502 GB, free: 56.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.293e-06/0.4732, allocations: 1.469 kB / 0.502 GB, free: 56.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004555/0.4778, allocations: 2.322 MB / 0.5043 GB, free: 55.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.083e-05/0.4779, allocations: 62.62 kB / 0.5043 GB, free: 55.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.729e-05/0.4779, allocations: 7.094 kB / 0.5043 GB, free: 55.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001447/0.4794, allocations: 417.5 kB / 0.5047 GB, free: 55.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000842/0.4802, allocations: 217.5 kB / 0.5049 GB, free: 55.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007401/0.4876, allocations: 5.688 MB / 0.5105 GB, free: 51.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/0.489, allocations: 97.42 kB / 0.5106 GB, free: 51.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002031/0.4892, allocations: 85.91 kB / 0.5107 GB, free: 51.19 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 115 * Array equations: 3 * Algorithm blocks: 1 * 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,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0008851/0.4901, allocations: 466 kB / 0.5111 GB, free: 50.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002608/0.4903, allocations: 101.5 kB / 0.5112 GB, free: 50.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004864/0.4952, allocations: 1.958 MB / 0.5131 GB, free: 50.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.017e-05/0.4953, allocations: 25.62 kB / 0.5132 GB, free: 50.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.4953, allocations: 6.156 kB / 0.5132 GB, free: 50.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.771e-05/0.4953, allocations: 5.25 kB / 0.5132 GB, free: 50.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00648/0.5018, allocations: 3.423 MB / 0.5165 GB, free: 48.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.5019, allocations: 5.094 kB / 0.5165 GB, free: 48.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009729/0.5028, allocations: 174.9 kB / 0.5167 GB, free: 48.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005577/0.5034, allocations: 158.5 kB / 0.5168 GB, free: 48.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001076/0.5035, allocations: 37.45 kB / 0.5169 GB, free: 48.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003245/0.5068, allocations: 4.468 MB / 0.5212 GB, free: 44.42 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.5068, allocations: 9.656 kB / 0.5212 GB, free: 44.42 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005657/0.5125, allocations: 2.883 MB / 0.5241 GB, free: 43.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006104/0.5131, allocations: 316 kB / 0.5244 GB, free: 43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002414/0.5133, allocations: 81.62 kB / 0.5244 GB, free: 42.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009118/0.5143, allocations: 107.9 kB / 0.5245 GB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002916/0.5146, allocations: 82.73 kB / 0.5246 GB, free: 42.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001062/0.5147, allocations: 47.44 kB / 0.5247 GB, free: 42.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008011/0.5155, allocations: 0.5349 MB / 0.5252 GB, free: 42.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5155, allocations: 0 / 0.5252 GB, free: 42.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001465/0.517, allocations: 353.3 kB / 0.5255 GB, free: 42.66 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 17 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 79 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,1,100.0%), (2,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.00127/0.5183, allocations: 0.5122 MB / 0.526 GB, free: 42.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003927/0.5222, allocations: 2.292 MB / 0.5283 GB, free: 41.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.5222, allocations: 1.375 kB / 0.5283 GB, free: 41.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001964/0.5242, allocations: 1.229 MB / 0.5295 GB, free: 40.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/0.5254, allocations: 240.2 kB / 0.5297 GB, free: 40.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004778/0.5301, allocations: 3.92 MB / 0.5335 GB, free: 36.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005984/0.5308, allocations: 1.281 MB / 0.5348 GB, free: 35.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007505/0.5315, allocations: 292.6 kB / 0.535 GB, free: 35.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002707/0.5318, allocations: 87.41 kB / 0.5351 GB, free: 35.27 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.5318, allocations: 0 / 0.5351 GB, free: 35.27 MB / 382.1 MB Notification: Performance of Templates: time 0.02478/0.5566, allocations: 18.15 MB / 0.5529 GB, free: 17.28 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1)