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.001156/0.001156, allocations: 111.7 kB / 17.68 MB, free: 5.332 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.001239/0.001239, allocations: 192 kB / 18.62 MB, free: 4.41 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.436/1.436, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1728/0.1728, allocations: 38.04 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 61.69 kB / 400.3 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1139, allocations: 58.06 MB / 458.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.01076/0.1247, allocations: 7.545 MB / 465.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01172/0.1365, allocations: 5.126 MB / 471 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001584/0.1381, allocations: 35.81 kB / 471 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01452/0.1527, allocations: 5.601 MB / 476.6 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002108/0.1548, allocations: 0.5402 MB / 477.2 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001399/0.1562, allocations: 0.5763 MB / 477.7 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003348/0.1596, allocations: 2.577 MB / 480.3 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001393/0.161, allocations: 1.296 MB / 481.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008199/0.1618, allocations: 0.7161 MB / 482.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009964/0.1628, allocations: 0.8407 MB / 483.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001777/0.163, allocations: 148 kB / 483.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003856/0.1634, allocations: 216 kB / 483.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000457/0.1639, allocations: 0.5221 MB / 484.1 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007339/0.1646, allocations: 0.6959 MB / 484.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001687/0.1663, allocations: 1.889 MB / 486.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.1663, allocations: 4 kB / 486.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1663, allocations: 0 / 486.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.528e-05/0.1664, allocations: 0 / 486.6 MB, free: 10.91 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.003447/0.1698, allocations: 1.709 MB / 488.3 MB, free: 9.145 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.1699, allocations: 15.89 kB / 488.4 MB, free: 9.129 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004142/0.1703, allocations: 147.2 kB / 488.5 MB, free: 8.984 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002286/0.1726, allocations: 1.081 MB / 489.6 MB, free: 7.859 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.964e-05/0.1727, allocations: 73.98 kB / 489.7 MB, free: 7.789 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001697/0.1729, allocations: 99.89 kB / 489.8 MB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00194/0.1748, allocations: 1.328 MB / 491.1 MB, free: 6.309 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.817e-05/0.1748, allocations: 0 / 491.1 MB, free: 6.309 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/0.175, allocations: 40 kB / 491.1 MB, free: 6.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003275/0.1753, allocations: 89.92 kB / 491.2 MB, free: 6.184 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001816/0.1771, allocations: 1.144 MB / 492.4 MB, free: 5.039 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006793/0.1839, allocations: 4.915 MB / 497.3 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.1853, allocations: 0.9414 MB / 498.2 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007767/0.1861, allocations: 0.5277 MB / 498.7 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.288e-05/0.1861, allocations: 12.59 kB / 498.8 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009079/0.1871, allocations: 0.6255 MB / 499.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.605e-06/0.1871, allocations: 4 kB / 499.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=81): time 0.008528/0.1956, allocations: 4.155 MB / 0.4917 GB, free: 9.453 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.752e-05/0.1957, allocations: 162.9 kB / 0.4919 GB, free: 9.258 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009974/0.1967, allocations: 0.849 MB / 0.4927 GB, free: 8.383 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.13e-05/0.1968, allocations: 41.7 kB / 0.4928 GB, free: 8.336 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003634/0.1972, allocations: 0.5151 MB / 0.4933 GB, free: 7.812 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002239/0.1974, allocations: 293 kB / 0.4935 GB, free: 7.523 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003064/0.1977, allocations: 190.4 kB / 0.4937 GB, free: 7.328 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.1979, allocations: 341.9 kB / 0.4941 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007633/0.1986, allocations: 488.6 kB / 0.4945 GB, free: 6.508 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009095/0.1995, allocations: 0.7169 MB / 0.4952 GB, free: 5.691 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001697/0.2013, allocations: 1.234 MB / 0.4964 GB, free: 4.367 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.2013, allocations: 0 / 0.4964 GB, free: 4.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.008711/0.21, allocations: 2.896 MB / 0.4993 GB, free: 1.434 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.21, allocations: 15.97 kB / 0.4993 GB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.21, allocations: 7.938 kB / 0.4993 GB, free: 1.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1845/0.3945, allocations: 1.867 MB / 0.5011 GB, free: 55.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007287/0.3953, allocations: 143.5 kB / 0.5012 GB, free: 55.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02139/0.4167, allocations: 12.52 MB / 0.5135 GB, free: 49.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008938/0.4176, allocations: 51.28 kB / 0.5135 GB, free: 49.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/0.4178, allocations: 56.95 kB / 0.5136 GB, free: 49.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001136/0.4189, allocations: 0.7535 MB / 0.5143 GB, free: 49.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00081/0.4197, allocations: 0.6968 MB / 0.515 GB, free: 49.01 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001499/0.4212, allocations: 1.202 MB / 0.5162 GB, free: 48.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.651e-06/0.4212, allocations: 6.156 kB / 0.5162 GB, free: 48.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.008165/0.4294, allocations: 2.816 MB / 0.5189 GB, free: 47.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.4294, allocations: 11.44 kB / 0.5189 GB, free: 47.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.4295, allocations: 6.562 kB / 0.5189 GB, free: 47.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007835/0.4373, allocations: 1.862 MB / 0.5207 GB, free: 47.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005776/0.4379, allocations: 145.4 kB / 0.5209 GB, free: 47.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0164/0.4543, allocations: 12.31 MB / 0.5329 GB, free: 38.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008183/0.4552, allocations: 59.89 kB / 0.533 GB, free: 38.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.716e-05/0.4552, allocations: 43.98 kB / 0.533 GB, free: 38.44 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.0002485/0.4555, allocations: 236.6 kB / 0.5332 GB, free: 38.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.4556, allocations: 98.78 kB / 0.5333 GB, free: 38.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002479/0.4581, allocations: 1.65 MB / 0.5349 GB, free: 36.4 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.4581, allocations: 8 kB / 0.5349 GB, free: 36.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.4581, allocations: 4 kB / 0.5349 GB, free: 36.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.4582, allocations: 7.984 kB / 0.535 GB, free: 36.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003748/0.4619, allocations: 2.891 MB / 0.5378 GB, free: 33.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.4619, allocations: 0 / 0.5378 GB, free: 33.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009006/0.4628, allocations: 167.7 kB / 0.5379 GB, free: 33.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00119/0.464, allocations: 385.8 kB / 0.5383 GB, free: 32.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.872e-05/0.4641, allocations: 27.98 kB / 0.5383 GB, free: 32.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00435/0.4685, allocations: 6.782 MB / 0.545 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4685, allocations: 7.969 kB / 0.545 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003024/0.4715, allocations: 2.287 MB / 0.5472 GB, free: 23.13 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004298/0.472, allocations: 266.9 kB / 0.5475 GB, free: 22.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.4721, allocations: 24 kB / 0.5475 GB, free: 22.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005797/0.4727, allocations: 48.84 kB / 0.5475 GB, free: 22.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.4729, allocations: 78.84 kB / 0.5476 GB, free: 22.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.599e-05/0.4729, allocations: 31.98 kB / 0.5476 GB, free: 22.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005837/0.4735, allocations: 0.5776 MB / 0.5482 GB, free: 22.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4735, allocations: 0 / 0.5482 GB, free: 22.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001739/0.4753, allocations: 0.5493 MB / 0.5487 GB, free: 21.54 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.0009043/0.4762, allocations: 429.6 kB / 0.5491 GB, free: 21.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005243/0.4814, allocations: 3.235 MB / 0.5523 GB, free: 18.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.4815, allocations: 0 / 0.5523 GB, free: 18.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00142/0.4829, allocations: 1.143 MB / 0.5534 GB, free: 16.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.4839, allocations: 270.6 kB / 0.5537 GB, free: 16.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003438/0.4874, allocations: 2.943 MB / 0.5565 GB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005452/0.4879, allocations: 1.245 MB / 0.5578 GB, free: 12.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006417/0.4886, allocations: 256.1 kB / 0.558 GB, free: 12.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002356/0.4888, allocations: 79.41 kB / 0.5581 GB, free: 12.05 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4888, allocations: 0 / 0.5581 GB, free: 12.05 MB / 382.1 MB Notification: Performance of Templates: time 0.04382/0.5327, allocations: 32.66 MB / 0.59 GB, free: 11.58 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 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe 2>&1)