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.001501/0.001501, allocations: 103.4 kB / 16.62 MB, free: 6.809 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.001695/0.001695, allocations: 193.8 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.419/1.419, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1737/0.1737, allocations: 38.03 MB / 329.4 MB, free: 9 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 67.55 kB / 398.3 MB, free: 34.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1322, allocations: 58.06 MB / 456.3 MB, free: 8.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.01134/0.1436, allocations: 8.663 MB / 465 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01122/0.1549, allocations: 5.613 MB / 470.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002081/0.157, allocations: 51.69 kB / 470.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01341/0.1704, allocations: 5.85 MB / 476.5 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002579/0.1731, allocations: 0.6499 MB / 477.2 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002014/0.1751, allocations: 471.4 kB / 477.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005654/0.1808, allocations: 2.694 MB / 480.3 MB, free: 396 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002862/0.1837, allocations: 1.388 MB / 481.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002131/0.1858, allocations: 0.7786 MB / 482.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001876/0.1877, allocations: 0.9844 MB / 483.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004843/0.1882, allocations: 144 kB / 483.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001756/0.19, allocations: 0.7099 MB / 484.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001033/0.191, allocations: 0.6586 MB / 485 MB, free: 11.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001703/0.1928, allocations: 0.7622 MB / 485.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003599/0.1964, allocations: 2.181 MB / 487.9 MB, free: 8.746 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.1964, allocations: 4 kB / 487.9 MB, free: 8.742 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1964, allocations: 0 / 487.9 MB, free: 8.742 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.822e-05/0.1965, allocations: 0 / 487.9 MB, free: 8.742 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.005529/0.202, allocations: 1.945 MB / 489.9 MB, free: 6.715 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.2021, allocations: 11.89 kB / 489.9 MB, free: 6.703 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007805/0.2029, allocations: 179.2 kB / 490 MB, free: 6.527 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00184/0.2047, allocations: 1.018 MB / 491.1 MB, free: 5.469 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/0.2049, allocations: 179.1 kB / 491.2 MB, free: 5.273 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002332/0.2052, allocations: 111.9 kB / 491.4 MB, free: 5.164 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003395/0.2086, allocations: 1.863 MB / 493.2 MB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.486e-05/0.2086, allocations: 4 kB / 493.2 MB, free: 3.223 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001344/0.2088, allocations: 43.97 kB / 493.3 MB, free: 3.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003244/0.2091, allocations: 121.9 kB / 493.4 MB, free: 3.062 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00301/0.2121, allocations: 1.608 MB / 495 MB, free: 1.453 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009396/0.2215, allocations: 5.767 MB / 0.489 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002543/0.2241, allocations: 1.191 MB / 0.4902 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001512/0.2256, allocations: 0.7425 MB / 0.4909 GB, free: 9.531 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.701e-05/0.2257, allocations: 13 kB / 0.4909 GB, free: 9.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001925/0.2277, allocations: 0.9807 MB / 0.4919 GB, free: 8.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.286e-06/0.2277, allocations: 0 / 0.4919 GB, free: 8.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=119): time 0.009947/0.2376, allocations: 4.672 MB / 0.4964 GB, free: 3.711 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.764e-05/0.2378, allocations: 127.8 kB / 0.4966 GB, free: 3.562 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/0.2389, allocations: 0.782 MB / 0.4973 GB, free: 2.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001225/0.239, allocations: 53.7 kB / 0.4974 GB, free: 2.711 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005151/0.2396, allocations: 0.5075 MB / 0.4979 GB, free: 2.195 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004112/0.24, allocations: 410.3 kB / 0.4983 GB, free: 1.789 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004259/0.2404, allocations: 238.8 kB / 0.4985 GB, free: 1.551 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002261/0.2407, allocations: 430.6 kB / 0.4989 GB, free: 1.121 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.2417, allocations: 0.6942 MB / 0.4996 GB, free: 432 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2003/0.442, allocations: 0.9599 MB / 0.5005 GB, free: 56.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00251/0.4445, allocations: 1.686 MB / 0.5022 GB, free: 56.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.4445, allocations: 2.281 kB / 0.5022 GB, free: 56.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004061/0.4486, allocations: 2.319 MB / 0.5044 GB, free: 55.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.51e-05/0.4487, allocations: 66.69 kB / 0.5045 GB, free: 55.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.79e-05/0.4487, allocations: 7.875 kB / 0.5045 GB, free: 55.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001325/0.45, allocations: 421.2 kB / 0.5049 GB, free: 55.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008195/0.4509, allocations: 210.6 kB / 0.5051 GB, free: 55.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007937/0.4588, allocations: 6.242 MB / 0.5112 GB, free: 50.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001102/0.4599, allocations: 99.47 kB / 0.5113 GB, free: 50.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001514/0.4601, allocations: 85.14 kB / 0.5114 GB, free: 50.92 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.0007454/0.4609, allocations: 458.5 kB / 0.5118 GB, free: 50.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002223/0.4611, allocations: 108.6 kB / 0.5119 GB, free: 50.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004355/0.4655, allocations: 1.961 MB / 0.5138 GB, free: 49.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.113e-05/0.4655, allocations: 25.84 kB / 0.5139 GB, free: 49.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.4655, allocations: 2.125 kB / 0.5139 GB, free: 49.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.4655, allocations: 5.297 kB / 0.5139 GB, free: 49.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005944/0.4715, allocations: 3.425 MB / 0.5172 GB, free: 48.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.4715, allocations: 1.375 kB / 0.5172 GB, free: 48.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009245/0.4724, allocations: 169.6 kB / 0.5174 GB, free: 48.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005208/0.473, allocations: 163.6 kB / 0.5175 GB, free: 48.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.4731, allocations: 41.19 kB / 0.5176 GB, free: 48.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00313/0.4762, allocations: 4.816 MB / 0.5223 GB, free: 43.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.4763, allocations: 1.188 kB / 0.5223 GB, free: 43.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005027/0.4813, allocations: 2.895 MB / 0.5251 GB, free: 42.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005103/0.4818, allocations: 301.6 kB / 0.5254 GB, free: 42.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002408/0.4821, allocations: 85.38 kB / 0.5255 GB, free: 42.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008984/0.483, allocations: 108.1 kB / 0.5256 GB, free: 42.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002309/0.4832, allocations: 85.72 kB / 0.5257 GB, free: 42.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/0.4833, allocations: 37.34 kB / 0.5257 GB, free: 42.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009394/0.4843, allocations: 0.5352 MB / 0.5262 GB, free: 42.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4843, allocations: 0 / 0.5262 GB, free: 42.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0017/0.486, allocations: 362.3 kB / 0.5266 GB, free: 42.04 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.001344/0.4873, allocations: 0.502 MB / 0.527 GB, free: 41.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004631/0.492, allocations: 2.97 MB / 0.5299 GB, free: 40.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.492, allocations: 1.375 kB / 0.5299 GB, free: 40.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001854/0.4939, allocations: 1.225 MB / 0.5311 GB, free: 39.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.495, allocations: 251.1 kB / 0.5314 GB, free: 39.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004711/0.4997, allocations: 3.902 MB / 0.5352 GB, free: 35.26 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006215/0.5003, allocations: 1.287 MB / 0.5364 GB, free: 33.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007919/0.5011, allocations: 301.8 kB / 0.5367 GB, free: 33.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002993/0.5015, allocations: 91.34 kB / 0.5368 GB, free: 33.56 MB / 382.1 MB Notification: Performance of SimCode: time 4.7e-07/0.5015, allocations: 0 / 0.5368 GB, free: 33.56 MB / 382.1 MB Notification: Performance of Templates: time 0.02485/0.5263, allocations: 18.91 MB / 0.5553 GB, free: 14.82 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)