Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009335/0.0009336, allocations: 187.8 kB / 8.351 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.257/1.257, allocations: 194.3 MB / 203.1 MB, free: 9.324 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001707/0.001708, allocations: 118.7 kB / 248.1 MB, free: 6.336 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1654/0.1654, allocations: 37.92 MB / 330.9 MB, free: 7.32 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.328e-05/1.321e-05, allocations: 0 / 390.4 MB, free: 78.25 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09979/0.09982, allocations: 53.25 MB / 443.6 MB, free: 25.1 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3778/0.4777, allocations: 111.3 MB / 0.5419 GB, free: 13.05 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003064/0.478, allocations: 87.52 kB / 0.542 GB, free: 13 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.08429/0.5623, allocations: 30.24 MB / 0.5716 GB, free: 3.906 MB / 379.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.5624, allocations: 0 / 0.5716 GB, free: 3.906 MB / 379.1 MB Notification: Performance of Transformations before backend: time 6.916e-05/0.5625, allocations: 24 kB / 0.5716 GB, free: 3.883 MB / 379.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.002275/0.5647, allocations: 1.122 MB / 0.5727 GB, free: 2.77 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.5648, allocations: 8.031 kB / 0.5727 GB, free: 2.762 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004687/0.5653, allocations: 138.5 kB / 0.5728 GB, free: 2.625 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002017/0.5673, allocations: 0.9653 MB / 0.5738 GB, free: 1.828 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.677e-05/0.5674, allocations: 28 kB / 0.5738 GB, free: 1.801 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001731/0.5675, allocations: 51.31 kB / 0.5738 GB, free: 1.754 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001316/0.5689, allocations: 0.7889 MB / 0.5746 GB, free: 1.258 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.5704, allocations: 0.9809 MB / 0.5756 GB, free: 496 kB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.21e-05/0.5705, allocations: 4 kB / 0.5756 GB, free: 492 kB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-05/0.5706, allocations: 0 / 0.5756 GB, free: 492 kB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001065/0.5707, allocations: 57.72 kB / 0.5756 GB, free: 436 kB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00556/0.5763, allocations: 4.187 MB / 0.5797 GB, free: 12.85 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007333/0.577, allocations: 0.5221 MB / 0.5802 GB, free: 12.48 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005173/0.5776, allocations: 335.6 kB / 0.5806 GB, free: 12.24 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.203e-05/0.5776, allocations: 12.55 kB / 0.5806 GB, free: 12.23 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.5777, allocations: 42.5 kB / 0.5806 GB, free: 12.18 MB / 395.1 MB Notification: Performance of pre-optimization done (n=57): time 2.605e-06/0.5777, allocations: 0 / 0.5806 GB, free: 12.18 MB / 395.1 MB Notification: Performance of matching and sorting (n=62): time 0.003416/0.5811, allocations: 2.233 MB / 0.5828 GB, free: 10.24 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.56e-05/0.5812, allocations: 139.1 kB / 0.5829 GB, free: 10.07 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005971/0.5818, allocations: 463.7 kB / 0.5834 GB, free: 9.703 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 4.87e-05/0.5819, allocations: 25.7 kB / 0.5834 GB, free: 9.672 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002991/0.5822, allocations: 478.7 kB / 0.5838 GB, free: 9.195 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001592/0.5823, allocations: 212.9 kB / 0.584 GB, free: 8.984 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.391e-05/0.5824, allocations: 0 / 0.584 GB, free: 8.984 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.5825, allocations: 374.8 kB / 0.5844 GB, free: 8.609 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003554/0.5829, allocations: 242.5 kB / 0.5846 GB, free: 8.371 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004894/0.5834, allocations: 480.9 kB / 0.5851 GB, free: 7.801 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0024/0.5858, allocations: 0.7673 MB / 0.5858 GB, free: 7.008 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.5858, allocations: 3.953 kB / 0.5858 GB, free: 7.004 MB / 395.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002643/0.5885, allocations: 1.327 MB / 0.5871 GB, free: 5.625 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001106/0.5896, allocations: 2.878 MB / 0.5899 GB, free: 2.52 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.5896, allocations: 8 kB / 0.59 GB, free: 2.512 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001569/0.5912, allocations: 461.7 kB / 0.5904 GB, free: 2.055 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005069/0.5917, allocations: 139.7 kB / 0.5905 GB, free: 1.918 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003603/0.5953, allocations: 3.99 MB / 0.5944 GB, free: 13.67 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005776/0.5959, allocations: 36.02 kB / 0.5945 GB, free: 13.64 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.823e-05/0.596, allocations: 28 kB / 0.5945 GB, free: 13.61 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.596, allocations: 7.125 kB / 0.5945 GB, free: 13.61 MB / 411.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002519/0.5985, allocations: 1.185 MB / 0.5957 GB, free: 12.38 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/0.5986, allocations: 8 kB / 0.5957 GB, free: 12.37 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00144/0.6, allocations: 446.4 kB / 0.5961 GB, free: 11.92 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000481/0.6005, allocations: 135.8 kB / 0.5962 GB, free: 11.79 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008389/0.6089, allocations: 7.156 MB / 0.6032 GB, free: 4.266 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005665/0.6095, allocations: 19.98 kB / 0.6032 GB, free: 4.246 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.752e-05/0.6096, allocations: 32 kB / 0.6033 GB, free: 4.215 MB / 411.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.sm_ctrl.rotor.w = 0.0. Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: sm_ctrl.motor.i_dq[2]:VARIABLE(unit = "A" nominal = 1.0 protected = true ) "current demand {i_d, i_q} pu" type: Real [2] sm_ctrl.motor.w_el:VARIABLE(unit = "rad/s" stateSelect=StateSelect.prefer ) "rotor angular velocity el" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {4 24} Notification: Performance of prepare postOptimizeDAE: time 0.0003079/0.6099, allocations: 124.9 kB / 0.6034 GB, free: 4.086 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.6101, allocations: 75.14 kB / 0.6034 GB, free: 4.012 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001255/0.6113, allocations: 0.7589 MB / 0.6042 GB, free: 3.211 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.6114, allocations: 12 kB / 0.6042 GB, free: 3.199 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.6114, allocations: 4 kB / 0.6042 GB, free: 3.195 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.6114, allocations: 3.984 kB / 0.6042 GB, free: 3.191 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002524/0.6139, allocations: 1.651 MB / 0.6058 GB, free: 1.457 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.6139, allocations: 0 / 0.6058 GB, free: 1.457 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000714/0.6147, allocations: 131.9 kB / 0.6059 GB, free: 1.328 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000162/0.6148, allocations: 53.72 kB / 0.606 GB, free: 1.27 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.38e-05/0.6149, allocations: 8 kB / 0.606 GB, free: 1.262 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001897/0.6168, allocations: 2.652 MB / 0.6086 GB, free: 14.38 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.6168, allocations: 0 / 0.6086 GB, free: 14.38 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.6184, allocations: 1.243 MB / 0.6098 GB, free: 13.07 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003162/0.6187, allocations: 196.2 kB / 0.61 GB, free: 12.86 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.6189, allocations: 11.94 kB / 0.61 GB, free: 12.85 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003889/0.6193, allocations: 19.97 kB / 0.61 GB, free: 12.83 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.718e-05/0.6194, allocations: 44.58 kB / 0.6101 GB, free: 12.79 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.94e-05/0.6194, allocations: 16 kB / 0.6101 GB, free: 12.77 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0005796/0.62, allocations: 355.1 kB / 0.6104 GB, free: 12.43 MB / 427.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.62, allocations: 4 kB / 0.6104 GB, free: 12.43 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.001528/0.6216, allocations: 335.9 kB / 0.6107 GB, free: 12.1 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (sm_ctrl.motor.phi_el,sm_ctrl.motor.w_el,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002661/0.6219, allocations: 151.1 kB / 0.6109 GB, free: 11.94 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.003134/0.625, allocations: 1.842 MB / 0.6127 GB, free: 10.05 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.625, allocations: 0 / 0.6127 GB, free: 10.05 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006682/0.6257, allocations: 0.5106 MB / 0.6132 GB, free: 9.52 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008898/0.6266, allocations: 133.2 kB / 0.6133 GB, free: 9.387 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002769/0.6294, allocations: 1.566 MB / 0.6148 GB, free: 7.785 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007478/0.6301, allocations: 1.12 MB / 0.6159 GB, free: 6.637 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.000868/0.631, allocations: 241.7 kB / 0.6162 GB, free: 6.398 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.6312, allocations: 43.44 kB / 0.6162 GB, free: 6.355 MB / 427.1 MB Notification: Performance of SimCode: time 2.365e-06/0.6312, allocations: 4 kB / 0.6162 GB, free: 6.352 MB / 427.1 MB Notification: Performance of Templates: time 0.02314/0.6543, allocations: 13.31 MB / 0.6292 GB, free: 9.078 MB / 443.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)