Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.ASMav_icontrol,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm_ctrl.motor.tau_el|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm_ctrl.motor.tau_el|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001491/0.001491, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.289/1.289, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1718/0.1718, allocations: 38.04 MB / 330.4 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 64.22 kB / 399.5 MB, free: 34.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0868/0.08806, allocations: 58.06 MB / 457.5 MB, free: 8.027 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.008951/0.09704, allocations: 7.534 MB / 465.1 MB, free: 468 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007372/0.1044, allocations: 5.133 MB / 470.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007556/0.1052, allocations: 35.81 kB / 470.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009546/0.1148, allocations: 5.61 MB / 475.9 MB, free: 5.648 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001324/0.1161, allocations: 0.5323 MB / 476.4 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.1174, allocations: 0.5879 MB / 477 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002988/0.1204, allocations: 2.576 MB / 479.6 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001584/0.122, allocations: 1.288 MB / 480.8 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001014/0.1231, allocations: 0.7123 MB / 481.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001187/0.1243, allocations: 0.8524 MB / 482.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000287/0.1246, allocations: 144 kB / 482.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004936/0.1251, allocations: 208 kB / 482.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005205/0.1256, allocations: 0.5221 MB / 483.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008356/0.1264, allocations: 0.6959 MB / 484 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001805/0.1283, allocations: 1.877 MB / 485.8 MB, free: 11.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1283, allocations: 3.938 kB / 485.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1283, allocations: 0 / 485.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.351e-05/0.1283, allocations: 0 / 485.8 MB, free: 11.61 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: 231 * Number of variables: 231 Notification: Performance of Generate backend data structure: time 0.003768/0.1321, allocations: 1.689 MB / 487.5 MB, free: 9.867 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.1321, allocations: 11.89 kB / 487.5 MB, free: 9.855 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004624/0.1326, allocations: 147.2 kB / 487.7 MB, free: 9.711 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002074/0.1347, allocations: 1.07 MB / 488.8 MB, free: 8.598 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.067e-05/0.1348, allocations: 62 kB / 488.8 MB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000185/0.135, allocations: 91.89 kB / 488.9 MB, free: 8.449 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001982/0.1369, allocations: 1.328 MB / 490.2 MB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.963e-05/0.137, allocations: 8 kB / 490.2 MB, free: 7.059 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001052/0.1371, allocations: 35.98 kB / 490.3 MB, free: 7.023 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003298/0.1374, allocations: 93.92 kB / 490.4 MB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001856/0.1393, allocations: 1.144 MB / 491.5 MB, free: 5.789 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006559/0.1459, allocations: 4.939 MB / 496.5 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001346/0.1472, allocations: 0.9336 MB / 497.4 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007736/0.148, allocations: 0.5238 MB / 497.9 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.44e-05/0.1481, allocations: 20.64 kB / 497.9 MB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008769/0.149, allocations: 0.6228 MB / 498.6 MB, free: 14.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.324e-06/0.149, allocations: 0 / 498.6 MB, free: 14.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=81): time 0.008394/0.1574, allocations: 4.167 MB / 0.4909 GB, free: 10.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.715e-05/0.1575, allocations: 162.9 kB / 0.4911 GB, free: 9.984 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009655/0.1585, allocations: 0.8333 MB / 0.4919 GB, free: 9.125 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.802e-05/0.1585, allocations: 41.7 kB / 0.4919 GB, free: 9.078 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00036/0.1589, allocations: 0.5268 MB / 0.4925 GB, free: 8.543 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002224/0.1591, allocations: 287.8 kB / 0.4927 GB, free: 8.258 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003038/0.1594, allocations: 190.4 kB / 0.4929 GB, free: 8.062 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.1596, allocations: 349.9 kB / 0.4933 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000776/0.1604, allocations: 484.6 kB / 0.4937 GB, free: 7.238 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009581/0.1613, allocations: 0.713 MB / 0.4944 GB, free: 6.426 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001839/0.1632, allocations: 1.234 MB / 0.4956 GB, free: 5.102 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.1632, allocations: 4 kB / 0.4956 GB, free: 5.098 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.008734/0.1719, allocations: 2.895 MB / 0.4984 GB, free: 2.164 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.172, allocations: 8 kB / 0.4985 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.172, allocations: 11.94 kB / 0.4985 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008422/0.1804, allocations: 1.881 MB / 0.5003 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005761/0.181, allocations: 139.8 kB / 0.5004 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1876/0.3686, allocations: 12.56 MB / 0.5127 GB, free: 50.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008565/0.3695, allocations: 54.12 kB / 0.5128 GB, free: 50.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/0.3696, allocations: 50.14 kB / 0.5128 GB, free: 50.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001272/0.3709, allocations: 0.7526 MB / 0.5135 GB, free: 49.97 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007933/0.3717, allocations: 0.697 MB / 0.5142 GB, free: 49.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0015/0.3732, allocations: 1.212 MB / 0.5154 GB, free: 48.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.299e-06/0.3732, allocations: 5.281 kB / 0.5154 GB, free: 48.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.008298/0.3815, allocations: 2.818 MB / 0.5182 GB, free: 47.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.3815, allocations: 6.719 kB / 0.5182 GB, free: 47.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.3816, allocations: 7.75 kB / 0.5182 GB, free: 47.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008132/0.3897, allocations: 1.869 MB / 0.52 GB, free: 47.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005597/0.3903, allocations: 139.4 kB / 0.5201 GB, free: 47.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01626/0.4065, allocations: 12.34 MB / 0.5322 GB, free: 39.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00082/0.4074, allocations: 51.95 kB / 0.5322 GB, free: 38.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.522e-05/0.4075, allocations: 52.22 kB / 0.5323 GB, free: 38.95 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,$whenCondition1,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 {(9,40)} Notification: Performance of prepare postOptimizeDAE: time 0.0002439/0.4077, allocations: 233.6 kB / 0.5325 GB, free: 38.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/0.4079, allocations: 106.8 kB / 0.5326 GB, free: 38.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002537/0.4104, allocations: 1.645 MB / 0.5342 GB, free: 36.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.4104, allocations: 8 kB / 0.5342 GB, free: 36.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.4104, allocations: 4 kB / 0.5342 GB, free: 36.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.4105, allocations: 4.734 kB / 0.5342 GB, free: 36.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003654/0.4141, allocations: 2.901 MB / 0.5371 GB, free: 33.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.4141, allocations: 4 kB / 0.5371 GB, free: 33.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009083/0.4151, allocations: 167.6 kB / 0.5372 GB, free: 33.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001172/0.4162, allocations: 385.3 kB / 0.5376 GB, free: 33.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.622e-05/0.4163, allocations: 25.3 kB / 0.5376 GB, free: 33.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004084/0.4204, allocations: 6.798 MB / 0.5443 GB, free: 25.99 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.4204, allocations: 7.969 kB / 0.5443 GB, free: 25.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002955/0.4234, allocations: 2.275 MB / 0.5465 GB, free: 23.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000331/0.4237, allocations: 276 kB / 0.5467 GB, free: 23.35 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001375/0.4239, allocations: 23.98 kB / 0.5468 GB, free: 23.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005931/0.4245, allocations: 43.95 kB / 0.5468 GB, free: 23.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.4246, allocations: 72.78 kB / 0.5469 GB, free: 23.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.233e-05/0.4247, allocations: 35.98 kB / 0.5469 GB, free: 23.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005675/0.4253, allocations: 0.5737 MB / 0.5475 GB, free: 22.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4253, allocations: 4 kB / 0.5475 GB, free: 22.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001697/0.427, allocations: 0.5526 MB / 0.548 GB, free: 22.04 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (asm_ctrl.rotor.phi,asm_ctrl.rotor.w,asm_ctrl.motor.i[3],asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rd[2],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.psi_rq[2],asm_ctrl.motor.phiRotorflux,tabLoad.s,PI_i_q.I.y) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (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.0008719/0.4279, allocations: 429.3 kB / 0.5484 GB, free: 21.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005896/0.4338, allocations: 3.462 MB / 0.5518 GB, free: 18.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.4338, allocations: 0 / 0.5518 GB, free: 18.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001448/0.4353, allocations: 1.145 MB / 0.5529 GB, free: 17.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001137/0.4364, allocations: 288.2 kB / 0.5532 GB, free: 16.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003703/0.4401, allocations: 3.043 MB / 0.5562 GB, free: 13.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005456/0.4407, allocations: 1.241 MB / 0.5574 GB, free: 12.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002816/0.441, allocations: 91.39 kB / 0.5575 GB, free: 12.44 MB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.441, allocations: 0 / 0.5575 GB, free: 12.44 MB / 382.1 MB Notification: Performance of Templates: time 0.0313/0.4723, allocations: 32.43 MB / 0.5891 GB, free: 12.04 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe 2>&1)