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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001193/0.001193, allocations: 191.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.21/1.21, allocations: 194.2 MB / 212.2 MB, free: 2.363 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001593/0.001593, allocations: 119.6 kB / 256.6 MB, free: 4.336 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1646/0.1646, allocations: 37.95 MB / 338.8 MB, free: 2.223 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 67.91 kB / 401.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09486/0.09603, allocations: 52.19 MB / 454 MB, free: 16.56 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.007789/0.1039, allocations: 8.619 MB / 462.6 MB, free: 7.902 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006623/0.1105, allocations: 5.688 MB / 468.3 MB, free: 2.195 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008135/0.1114, allocations: 59.62 kB / 468.4 MB, free: 2.137 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008435/0.1198, allocations: 5.681 MB / 474 MB, free: 12.45 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001789/0.1216, allocations: 0.6343 MB / 474.7 MB, free: 11.81 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001108/0.1228, allocations: 435.3 kB / 475.1 MB, free: 11.38 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003346/0.1261, allocations: 3.431 MB / 478.5 MB, free: 7.945 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001464/0.1276, allocations: 1.151 MB / 479.7 MB, free: 6.773 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001105/0.1287, allocations: 0.6655 MB / 480.3 MB, free: 6.105 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001092/0.1298, allocations: 0.954 MB / 481.3 MB, free: 5.148 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001623/0.13, allocations: 80 kB / 481.4 MB, free: 5.07 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001257/0.1313, allocations: 0.6513 MB / 482 MB, free: 4.418 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005641/0.1318, allocations: 0.5883 MB / 482.6 MB, free: 3.828 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000691/0.1325, allocations: 0.6841 MB / 483.3 MB, free: 3.141 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001765/0.1343, allocations: 2.119 MB / 485.4 MB, free: 1.016 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1343, allocations: 0 / 485.4 MB, free: 1.016 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1343, allocations: 0 / 485.4 MB, free: 1.016 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.1344, allocations: 4 kB / 485.4 MB, free: 1.012 MB / 330.7 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.003684/0.1381, allocations: 1.962 MB / 487.4 MB, free: 14.96 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.1381, allocations: 12.03 kB / 487.4 MB, free: 14.95 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006021/0.1387, allocations: 175.2 kB / 487.6 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001864/0.1406, allocations: 1.007 MB / 488.6 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001778/0.1408, allocations: 187.1 kB / 488.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002092/0.141, allocations: 104 kB / 488.9 MB, free: 13.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003102/0.1441, allocations: 1.867 MB / 490.7 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.164e-05/0.1442, allocations: 7.938 kB / 490.7 MB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001145/0.1443, allocations: 39.98 kB / 490.8 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000286/0.1446, allocations: 125.9 kB / 490.9 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002705/0.1473, allocations: 1.604 MB / 492.5 MB, free: 9.703 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007832/0.1551, allocations: 5.763 MB / 498.3 MB, free: 3.766 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002388/0.1576, allocations: 1.203 MB / 499.5 MB, free: 2.523 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001375/0.1589, allocations: 0.7386 MB / 0.4885 GB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.264e-05/0.159, allocations: 13 kB / 0.4885 GB, free: 1.77 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001732/0.1608, allocations: 0.9846 MB / 0.4895 GB, free: 0.7656 MB / 346.7 MB Notification: Performance of pre-optimization done (n=116): time 3.367e-06/0.1608, allocations: 0 / 0.4895 GB, free: 0.7656 MB / 346.7 MB Notification: Performance of matching and sorting (n=120): time 0.01098/0.1718, allocations: 5.652 MB / 0.495 GB, free: 10.94 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.713e-05/0.1719, allocations: 127.8 kB / 0.4951 GB, free: 10.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009174/0.1728, allocations: 0.7779 MB / 0.4959 GB, free: 10 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.736e-05/0.1729, allocations: 69.67 kB / 0.4959 GB, free: 9.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003674/0.1733, allocations: 499.9 kB / 0.4964 GB, free: 9.434 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003345/0.1736, allocations: 410.2 kB / 0.4968 GB, free: 9.027 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003694/0.174, allocations: 258.7 kB / 0.497 GB, free: 8.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.1742, allocations: 418.7 kB / 0.4974 GB, free: 8.352 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009678/0.1752, allocations: 0.6943 MB / 0.4981 GB, free: 7.656 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/0.1763, allocations: 0.9727 MB / 0.4991 GB, free: 6.582 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002004/0.1783, allocations: 1.714 MB / 0.5007 GB, free: 4.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.1783, allocations: 0 / 0.5007 GB, free: 4.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003513/0.1818, allocations: 2.362 MB / 0.503 GB, free: 2.344 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.19e-05/0.1819, allocations: 91.31 kB / 0.5031 GB, free: 2.242 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.1819, allocations: 16.25 kB / 0.5031 GB, free: 2.227 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001198/0.1831, allocations: 416.3 kB / 0.5035 GB, free: 1.816 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007626/0.1839, allocations: 215.6 kB / 0.5038 GB, free: 1.605 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2064/0.3903, allocations: 5.698 MB / 0.5093 GB, free: 64.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.3916, allocations: 95.88 kB / 0.5094 GB, free: 64.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001705/0.3917, allocations: 88.11 kB / 0.5095 GB, free: 64.38 MB / 362.7 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 (123): * Single equations (assignments): 116 * Array equations: 3 * Algorithm blocks: 2 * 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.000828/0.3926, allocations: 460.6 kB / 0.5099 GB, free: 64.13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002232/0.3928, allocations: 105.2 kB / 0.51 GB, free: 64.13 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004063/0.3969, allocations: 1.966 MB / 0.512 GB, free: 63.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.712e-05/0.3969, allocations: 28.33 kB / 0.512 GB, free: 63.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.3969, allocations: 1.594 kB / 0.512 GB, free: 63.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.514e-05/0.397, allocations: 8.953 kB / 0.512 GB, free: 63.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006101/0.4031, allocations: 3.422 MB / 0.5153 GB, free: 61.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.4031, allocations: 3.906 kB / 0.5153 GB, free: 61.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008754/0.404, allocations: 172.9 kB / 0.5155 GB, free: 61.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000486/0.4045, allocations: 164.5 kB / 0.5157 GB, free: 61.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.068e-05/0.4046, allocations: 38.12 kB / 0.5157 GB, free: 61.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002845/0.4074, allocations: 4.459 MB / 0.52 GB, free: 57.64 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.4074, allocations: 5.219 kB / 0.5201 GB, free: 57.64 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02295/0.4304, allocations: 15.91 MB / 0.5356 GB, free: 46.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005182/0.431, allocations: 322 kB / 0.5359 GB, free: 46.42 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001847/0.4312, allocations: 79.95 kB / 0.536 GB, free: 46.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000838/0.432, allocations: 111.8 kB / 0.5361 GB, free: 46.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002143/0.4322, allocations: 80.77 kB / 0.5362 GB, free: 46.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-05/0.4323, allocations: 47.97 kB / 0.5362 GB, free: 46.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005569/0.4329, allocations: 0.5224 MB / 0.5367 GB, free: 45.58 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4329, allocations: 0 / 0.5367 GB, free: 45.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001481/0.4344, allocations: 473 kB / 0.5372 GB, free: 45.13 MB / 362.7 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.motor.i[3],asm.motor.phi_el,asm.motor.w_el,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 (99): * Single equations (assignments): 80 * 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.0008937/0.4353, allocations: 0.4941 MB / 0.5376 GB, free: 44.69 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0034/0.4387, allocations: 2.358 MB / 0.54 GB, free: 42.28 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.4387, allocations: 4.062 kB / 0.54 GB, free: 42.28 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002157/0.4409, allocations: 1.216 MB / 0.5411 GB, free: 41.03 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/0.4421, allocations: 231.5 kB / 0.5414 GB, free: 40.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006923/0.4491, allocations: 5.056 MB / 0.5463 GB, free: 35.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007753/0.4499, allocations: 1.32 MB / 0.5476 GB, free: 34.36 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009812/0.4509, allocations: 316.4 kB / 0.5479 GB, free: 34.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003086/0.4512, allocations: 83.42 kB / 0.548 GB, free: 33.97 MB / 362.7 MB Notification: Performance of SimCode: time 1.113e-06/0.4512, allocations: 0 / 0.548 GB, free: 33.97 MB / 362.7 MB Notification: Performance of Templates: time 0.02857/0.4798, allocations: 21.56 MB / 0.569 GB, free: 12.39 MB / 362.7 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)