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.001645/0.001645, allocations: 112.8 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.002048/0.002048, allocations: 190.9 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.503/1.503, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1866/0.1866, allocations: 38.03 MB / 330.5 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 67.42 kB / 400.3 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1294, allocations: 58.05 MB / 458.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.01094/0.1404, allocations: 7.538 MB / 465.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008956/0.1494, allocations: 5.126 MB / 471 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009671/0.1504, allocations: 35.81 kB / 471 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01122/0.1617, allocations: 5.612 MB / 476.6 MB, free: 4.957 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001982/0.1637, allocations: 0.5363 MB / 477.2 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001806/0.1655, allocations: 0.5801 MB / 477.7 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004766/0.1703, allocations: 2.577 MB / 480.3 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002219/0.1725, allocations: 1.292 MB / 481.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001665/0.1742, allocations: 0.7162 MB / 482.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001341/0.1756, allocations: 0.8446 MB / 483.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002085/0.1758, allocations: 144 kB / 483.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005077/0.1763, allocations: 223.9 kB / 483.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005451/0.1769, allocations: 0.5182 MB / 484 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007871/0.1777, allocations: 0.6959 MB / 484.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002205/0.1799, allocations: 1.893 MB / 486.6 MB, free: 10.9 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1799, allocations: 4 kB / 486.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.488e-06/0.1799, allocations: 4 kB / 486.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.086e-05/0.18, allocations: 0 / 486.6 MB, free: 10.89 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.004173/0.1841, allocations: 1.705 MB / 488.3 MB, free: 9.129 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.617e-05/0.1842, allocations: 15.89 kB / 488.4 MB, free: 9.113 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005164/0.1847, allocations: 147.2 kB / 488.5 MB, free: 8.969 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002406/0.1872, allocations: 1.085 MB / 489.6 MB, free: 7.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.235e-05/0.1872, allocations: 69.98 kB / 489.7 MB, free: 7.773 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001689/0.1874, allocations: 91.91 kB / 489.8 MB, free: 7.684 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002074/0.1895, allocations: 1.332 MB / 491.1 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.216e-05/0.1895, allocations: 4 kB / 491.1 MB, free: 6.293 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.1897, allocations: 36 kB / 491.1 MB, free: 6.258 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003123/0.19, allocations: 93.92 kB / 491.2 MB, free: 6.168 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00182/0.1918, allocations: 1.14 MB / 492.4 MB, free: 5.027 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007264/0.1991, allocations: 4.915 MB / 497.3 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.2006, allocations: 0.9414 MB / 498.2 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008427/0.2015, allocations: 0.5199 MB / 498.7 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.037e-05/0.2016, allocations: 12.66 kB / 498.7 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001/0.2026, allocations: 0.6216 MB / 499.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.365e-06/0.2026, allocations: 0 / 499.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=81): time 0.008758/0.2113, allocations: 4.166 MB / 0.4917 GB, free: 9.449 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.2115, allocations: 166.9 kB / 0.4919 GB, free: 9.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.2126, allocations: 0.8411 MB / 0.4927 GB, free: 8.383 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.67e-05/0.2127, allocations: 41.7 kB / 0.4927 GB, free: 8.336 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000413/0.2131, allocations: 0.519 MB / 0.4933 GB, free: 7.809 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002734/0.2134, allocations: 291.8 kB / 0.4935 GB, free: 7.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003141/0.2137, allocations: 199.5 kB / 0.4937 GB, free: 7.316 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.2138, allocations: 345.9 kB / 0.4941 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007915/0.2146, allocations: 488.6 kB / 0.4945 GB, free: 6.492 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009681/0.2156, allocations: 0.7131 MB / 0.4952 GB, free: 5.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001785/0.2174, allocations: 1.234 MB / 0.4964 GB, free: 4.355 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.2174, allocations: 4 kB / 0.4964 GB, free: 4.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.008609/0.226, allocations: 2.899 MB / 0.4993 GB, free: 1.414 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.088e-05/0.2261, allocations: 8 kB / 0.4993 GB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.013e-05/0.2261, allocations: 7.938 kB / 0.4993 GB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2826/0.5087, allocations: 1.866 MB / 0.5011 GB, free: 55.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007091/0.5095, allocations: 144.2 kB / 0.5012 GB, free: 55.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02193/0.5314, allocations: 12.52 MB / 0.5135 GB, free: 49.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.5325, allocations: 53.81 kB / 0.5135 GB, free: 49.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.5327, allocations: 51.47 kB / 0.5136 GB, free: 49.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001312/0.534, allocations: 0.7538 MB / 0.5143 GB, free: 49.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009815/0.535, allocations: 0.6976 MB / 0.515 GB, free: 48.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001697/0.5367, allocations: 1.206 MB / 0.5162 GB, free: 48.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.009e-06/0.5367, allocations: 1.094 kB / 0.5162 GB, free: 48.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.008348/0.545, allocations: 2.817 MB / 0.5189 GB, free: 47.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.5451, allocations: 10.59 kB / 0.5189 GB, free: 47.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.5451, allocations: 6.969 kB / 0.5189 GB, free: 47.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007835/0.5529, allocations: 1.865 MB / 0.5207 GB, free: 47.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000583/0.5535, allocations: 146.2 kB / 0.5209 GB, free: 46.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01666/0.5702, allocations: 12.3 MB / 0.5329 GB, free: 38.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009132/0.5712, allocations: 55.89 kB / 0.533 GB, free: 38.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-05/0.5712, allocations: 47.98 kB / 0.533 GB, free: 38.11 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.0002921/0.5715, allocations: 231.8 kB / 0.5332 GB, free: 37.88 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.5717, allocations: 103.5 kB / 0.5333 GB, free: 37.78 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002555/0.5743, allocations: 1.642 MB / 0.5349 GB, free: 36.08 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.5743, allocations: 12.94 kB / 0.5349 GB, free: 36.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.5743, allocations: 0 / 0.5349 GB, free: 36.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.5743, allocations: 7.984 kB / 0.5349 GB, free: 36.06 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00394/0.5782, allocations: 2.899 MB / 0.5378 GB, free: 33.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.5783, allocations: 0 / 0.5378 GB, free: 33.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000912/0.5792, allocations: 167.8 kB / 0.5379 GB, free: 32.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00119/0.5804, allocations: 380.9 kB / 0.5383 GB, free: 32.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.676e-05/0.5805, allocations: 31.97 kB / 0.5383 GB, free: 32.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004456/0.5849, allocations: 6.785 MB / 0.545 GB, free: 25.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.585, allocations: 0 / 0.545 GB, free: 25.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003061/0.588, allocations: 2.29 MB / 0.5472 GB, free: 22.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004792/0.5885, allocations: 270.4 kB / 0.5474 GB, free: 22.53 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.5887, allocations: 23.98 kB / 0.5475 GB, free: 22.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005924/0.5893, allocations: 39.97 kB / 0.5475 GB, free: 22.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.5894, allocations: 82.12 kB / 0.5476 GB, free: 22.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.771e-05/0.5895, allocations: 34.06 kB / 0.5476 GB, free: 22.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006679/0.5902, allocations: 0.5737 MB / 0.5482 GB, free: 21.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5902, allocations: 4 kB / 0.5482 GB, free: 21.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002513/0.5927, allocations: 0.5493 MB / 0.5487 GB, free: 21.22 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.001249/0.594, allocations: 436.2 kB / 0.5491 GB, free: 20.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006021/0.6, allocations: 3.235 MB / 0.5523 GB, free: 17.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.6, allocations: 320 / 0.5523 GB, free: 17.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001525/0.6016, allocations: 1.143 MB / 0.5534 GB, free: 16.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.6028, allocations: 288.2 kB / 0.5537 GB, free: 16.24 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004082/0.6069, allocations: 2.935 MB / 0.5566 GB, free: 13.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006535/0.6076, allocations: 1.241 MB / 0.5578 GB, free: 12.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007662/0.6083, allocations: 244.2 kB / 0.558 GB, free: 11.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002571/0.6086, allocations: 87.41 kB / 0.5581 GB, free: 11.73 MB / 382.1 MB Notification: Performance of SimCode: time 9.41e-07/0.6086, allocations: 0 / 0.5581 GB, free: 11.73 MB / 382.1 MB Notification: Performance of Templates: time 0.04804/0.6567, allocations: 32.66 MB / 0.59 GB, free: 11.25 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 cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe 2>&1)