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.001441/0.001441, allocations: 113.7 kB / 17.07 MB, free: 5.961 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.001343/0.001343, allocations: 198.8 kB / 18 MB, free: 5.051 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.459/1.459, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1782/0.1782, allocations: 38.05 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 59.91 kB / 458.2 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3923/0.3937, allocations: 58.05 MB / 0.5041 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.008419/0.4021, allocations: 7.547 MB / 0.5115 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009633/0.4118, allocations: 5.118 MB / 0.5165 GB, free: 14.87 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001348/0.4132, allocations: 35.06 kB / 0.5165 GB, free: 14.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01393/0.4271, allocations: 5.606 MB / 0.522 GB, free: 13.3 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00267/0.4298, allocations: 0.5467 MB / 0.5225 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001865/0.4317, allocations: 0.5863 MB / 0.5231 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005019/0.4367, allocations: 2.595 MB / 0.5256 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002566/0.4393, allocations: 1.295 MB / 0.5269 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001938/0.4413, allocations: 0.7208 MB / 0.5276 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001398/0.4427, allocations: 0.8466 MB / 0.5284 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002162/0.4429, allocations: 143.3 kB / 0.5286 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000621/0.4436, allocations: 225 kB / 0.5288 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005454/0.4441, allocations: 0.5194 MB / 0.5293 GB, free: 9.762 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008603/0.445, allocations: 0.6966 MB / 0.53 GB, free: 9.254 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002289/0.4473, allocations: 1.898 MB / 0.5318 GB, free: 7.883 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.4473, allocations: 1.125 kB / 0.5318 GB, free: 7.883 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4473, allocations: 0 / 0.5318 GB, free: 7.883 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.801e-05/0.4473, allocations: 0 / 0.5318 GB, free: 7.883 MB / 398.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.004194/0.4515, allocations: 1.698 MB / 0.5335 GB, free: 6.652 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.4516, allocations: 17.45 kB / 0.5335 GB, free: 6.645 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006319/0.4522, allocations: 151.1 kB / 0.5336 GB, free: 6.566 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002706/0.455, allocations: 1.084 MB / 0.5347 GB, free: 5.754 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.238e-05/0.4551, allocations: 69.08 kB / 0.5348 GB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002169/0.4553, allocations: 92.03 kB / 0.5348 GB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002392/0.4577, allocations: 1.342 MB / 0.5362 GB, free: 4.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.094e-05/0.4577, allocations: 5.328 kB / 0.5362 GB, free: 4.836 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000101/0.4578, allocations: 36 kB / 0.5362 GB, free: 4.809 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003068/0.4582, allocations: 89.38 kB / 0.5363 GB, free: 4.781 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002257/0.4604, allocations: 1.14 MB / 0.5374 GB, free: 4.223 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008557/0.469, allocations: 4.908 MB / 0.5422 GB, free: 436 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.4706, allocations: 0.9472 MB / 0.5431 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009116/0.4715, allocations: 0.5229 MB / 0.5436 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.632e-05/0.4716, allocations: 14.16 kB / 0.5436 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009964/0.4726, allocations: 0.6225 MB / 0.5442 GB, free: 15.11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 3.346e-06/0.4726, allocations: 0 / 0.5442 GB, free: 15.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=81): time 0.0096/0.4822, allocations: 4.159 MB / 0.5483 GB, free: 10.79 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.4824, allocations: 166.9 kB / 0.5485 GB, free: 10.59 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001407/0.4838, allocations: 0.8488 MB / 0.5493 GB, free: 9.711 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.903e-05/0.4839, allocations: 41.7 kB / 0.5493 GB, free: 9.664 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004833/0.4844, allocations: 0.5191 MB / 0.5498 GB, free: 9.137 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003436/0.4847, allocations: 291.8 kB / 0.5501 GB, free: 8.848 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003858/0.4851, allocations: 182.5 kB / 0.5503 GB, free: 8.664 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002156/0.4854, allocations: 345.9 kB / 0.5506 GB, free: 8.32 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008822/0.4862, allocations: 488.6 kB / 0.5511 GB, free: 7.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001261/0.4875, allocations: 0.713 MB / 0.5518 GB, free: 7.027 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00206/0.4896, allocations: 1.234 MB / 0.553 GB, free: 5.699 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.4896, allocations: 0 / 0.553 GB, free: 5.699 MB / 414.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.009251/0.4989, allocations: 2.899 MB / 0.5558 GB, free: 2.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.788e-05/0.4989, allocations: 8 kB / 0.5558 GB, free: 2.762 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.585e-05/0.499, allocations: 7.938 kB / 0.5558 GB, free: 2.754 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008566/0.5076, allocations: 1.885 MB / 0.5577 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007104/0.5083, allocations: 135.8 kB / 0.5578 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02257/0.5309, allocations: 12.53 MB / 0.57 GB, free: 3.918 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/0.532, allocations: 55.86 kB / 0.5701 GB, free: 3.863 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000207/0.5322, allocations: 47.98 kB / 0.5701 GB, free: 3.816 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001417/0.5337, allocations: 0.7517 MB / 0.5709 GB, free: 3.059 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000976/0.5347, allocations: 0.7013 MB / 0.5716 GB, free: 2.258 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001731/0.5364, allocations: 1.203 MB / 0.5727 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.973e-06/0.5364, allocations: 4 kB / 0.5727 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.008235/0.5447, allocations: 2.81 MB / 0.5755 GB, free: 14.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.5447, allocations: 18.19 kB / 0.5755 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.5447, allocations: 8 kB / 0.5755 GB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008046/0.5528, allocations: 1.861 MB / 0.5773 GB, free: 12.22 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006775/0.5535, allocations: 143.7 kB / 0.5775 GB, free: 12.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02119/0.5747, allocations: 12.31 MB / 0.5895 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/0.5759, allocations: 51.95 kB / 0.5895 GB, free: 15.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002049/0.5761, allocations: 47.98 kB / 0.5896 GB, free: 15.39 MB / 462.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.0003977/0.5765, allocations: 236 kB / 0.5898 GB, free: 15.15 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002741/0.5768, allocations: 102.8 kB / 0.5899 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003469/0.5803, allocations: 1.642 MB / 0.5915 GB, free: 13.34 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.759e-05/0.5803, allocations: 11.98 kB / 0.5915 GB, free: 13.33 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/0.5803, allocations: 4 kB / 0.5915 GB, free: 13.33 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.5803, allocations: 3.984 kB / 0.5915 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005399/0.5857, allocations: 2.894 MB / 0.5943 GB, free: 10.32 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/0.5858, allocations: 4 kB / 0.5944 GB, free: 10.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/0.5868, allocations: 163.8 kB / 0.5945 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001353/0.5882, allocations: 387 kB / 0.5949 GB, free: 9.766 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.5883, allocations: 23.98 kB / 0.5949 GB, free: 9.742 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006944/0.5952, allocations: 6.793 MB / 0.6015 GB, free: 2.387 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.5953, allocations: 0 / 0.6015 GB, free: 2.387 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00425/0.5995, allocations: 2.293 MB / 0.6038 GB, free: 16 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007553/0.6003, allocations: 263.7 kB / 0.604 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000327/0.6006, allocations: 24 kB / 0.604 GB, free: 15.71 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008334/0.6015, allocations: 43.89 kB / 0.6041 GB, free: 15.67 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000225/0.6017, allocations: 72.91 kB / 0.6042 GB, free: 15.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.629e-05/0.6018, allocations: 31.98 kB / 0.6042 GB, free: 15.57 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001167/0.603, allocations: 0.5854 MB / 0.6048 GB, free: 14.97 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.603, allocations: 0 / 0.6048 GB, free: 14.97 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002649/0.6057, allocations: 0.5508 MB / 0.6053 GB, free: 14.42 MB / 478.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.001013/0.6067, allocations: 427.2 kB / 0.6057 GB, free: 14.14 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006646/0.6133, allocations: 3.232 MB / 0.6089 GB, free: 10.87 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.154e-06/0.6134, allocations: 4.062 kB / 0.6089 GB, free: 10.87 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00194/0.6153, allocations: 1.145 MB / 0.61 GB, free: 9.668 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001681/0.617, allocations: 284.7 kB / 0.6103 GB, free: 9.398 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005572/0.6226, allocations: 2.929 MB / 0.6131 GB, free: 6.434 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001312/0.6239, allocations: 1.249 MB / 0.6143 GB, free: 5.156 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009645/0.6249, allocations: 248.2 kB / 0.6146 GB, free: 4.91 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003249/0.6253, allocations: 87.41 kB / 0.6147 GB, free: 4.824 MB / 478.1 MB Notification: Performance of SimCode: time 2.204e-06/0.6253, allocations: 0 / 0.6147 GB, free: 4.824 MB / 478.1 MB Notification: Performance of Templates: time 0.05828/0.6836, allocations: 33.01 MB / 0.6469 GB, free: 3.961 MB / 0.4981 GB 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)