Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001706/0.001706, allocations: 181.8 kB / 15.76 MB, free: 6.344 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.056/2.056, allocations: 205.4 MB / 221.9 MB, free: 13.61 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001141/0.00114, allocations: 94.8 kB / 270.2 MB, free: 13.14 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.259/0.259, allocations: 38.04 MB / 356.6 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004892/0.0004893, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1135, allocations: 56.33 MB / 479 MB, free: 2.023 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5298/0.6433, allocations: 122.1 MB / 0.5871 GB, free: 9.957 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003459/0.6437, allocations: 95.02 kB / 0.5872 GB, free: 9.906 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1506/0.7944, allocations: 35.47 MB / 0.6218 GB, free: 11.74 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.7944, allocations: 0 / 0.6218 GB, free: 11.74 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001268/0.7946, allocations: 39.88 kB / 0.6218 GB, free: 11.7 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.006259/0.8008, allocations: 1.698 MB / 0.6235 GB, free: 10.01 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.8009, allocations: 15.97 kB / 0.6235 GB, free: 9.992 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001127/0.802, allocations: 162.3 kB / 0.6237 GB, free: 9.832 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005321/0.8074, allocations: 1.287 MB / 0.6249 GB, free: 8.789 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003228/0.8078, allocations: 195.5 kB / 0.6251 GB, free: 8.621 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006606/0.8084, allocations: 116.5 kB / 0.6252 GB, free: 8.543 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005982/0.8144, allocations: 1.843 MB / 0.627 GB, free: 7.137 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.602e-05/0.8146, allocations: 11 kB / 0.627 GB, free: 7.129 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002077/0.8148, allocations: 47.88 kB / 0.6271 GB, free: 7.113 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001939/0.815, allocations: 72.91 kB / 0.6271 GB, free: 7.051 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005298/0.8203, allocations: 1.416 MB / 0.6285 GB, free: 6.094 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01517/0.8355, allocations: 6.398 MB / 0.6348 GB, free: 312 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006126/0.8417, allocations: 1.184 MB / 0.6359 GB, free: 15.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001204/0.8419, allocations: 13.5 kB / 0.6359 GB, free: 15.08 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003085/0.845, allocations: 0.8023 MB / 0.6367 GB, free: 14.27 MB / 442.7 MB Notification: Performance of pre-optimization done (n=88): time 4.449e-06/0.845, allocations: 0 / 0.6367 GB, free: 14.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=92): time 0.01586/0.8609, allocations: 3.925 MB / 0.6406 GB, free: 10.22 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/0.8611, allocations: 157.2 kB / 0.6407 GB, free: 10.04 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001619/0.8627, allocations: 0.7228 MB / 0.6414 GB, free: 9.312 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003078/0.863, allocations: 57.69 kB / 0.6415 GB, free: 9.25 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006447/0.8637, allocations: 0.5638 MB / 0.642 GB, free: 8.68 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005976/0.8643, allocations: 307.7 kB / 0.6423 GB, free: 8.375 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/0.8644, allocations: 24 kB / 0.6423 GB, free: 8.352 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001991/0.8647, allocations: 362.7 kB / 0.6427 GB, free: 7.988 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001617/0.8663, allocations: 0.5687 MB / 0.6432 GB, free: 7.418 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001945/0.8683, allocations: 0.8968 MB / 0.6441 GB, free: 6.379 MB / 442.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.008736/0.877, allocations: 2.057 MB / 0.6461 GB, free: 4.289 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/0.8771, allocations: 4 kB / 0.6461 GB, free: 4.285 MB / 442.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.007611/0.8847, allocations: 2.243 MB / 0.6483 GB, free: 2.004 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002026/0.8868, allocations: 3.979 MB / 0.6522 GB, free: 13.71 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-05/0.8869, allocations: 8 kB / 0.6522 GB, free: 13.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004263/0.8911, allocations: 0.8939 MB / 0.6531 GB, free: 12.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/0.8927, allocations: 187.6 kB / 0.6533 GB, free: 12.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005988/0.8987, allocations: 3.421 MB / 0.6566 GB, free: 9.031 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001778/0.9005, allocations: 83.84 kB / 0.6567 GB, free: 8.949 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003375/0.9009, allocations: 80.08 kB / 0.6568 GB, free: 8.871 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.901, allocations: 7.953 kB / 0.6568 GB, free: 8.863 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007291/0.9083, allocations: 2.347 MB / 0.6591 GB, free: 6.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.876e-05/0.9083, allocations: 8 kB / 0.6591 GB, free: 6.473 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003762/0.9121, allocations: 0.8622 MB / 0.6599 GB, free: 5.598 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/0.9135, allocations: 175.7 kB / 0.6601 GB, free: 5.426 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005611/0.9191, allocations: 3.345 MB / 0.6633 GB, free: 1.918 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.9206, allocations: 83.84 kB / 0.6634 GB, free: 1.836 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000291/0.9209, allocations: 75.94 kB / 0.6635 GB, free: 1.762 MB / 458.7 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. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[1],$PRE.sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[2],$PRE.sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[3],$PRE.sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[4],$PRE.sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[5],$PRE.sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.gates[6],$PRE.sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.sigdel_t[1],$PRE.sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[2],$PRE.sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.sigdel_t[3],$PRE.sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.t0[1],$PRE.sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[2],$PRE.sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.t0[3],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 (102): * Single equations (assignments): 99 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {2 31} Notification: Performance of prepare postOptimizeDAE: time 0.001769/0.9227, allocations: 0.5339 MB / 0.664 GB, free: 1.219 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003994/0.9231, allocations: 102.8 kB / 0.6641 GB, free: 1.117 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006207/0.9293, allocations: 1.448 MB / 0.6655 GB, free: 15.63 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.427e-05/0.9294, allocations: 23.98 kB / 0.6656 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.427e-06/0.9295, allocations: 3.953 kB / 0.6656 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.31e-05/0.9295, allocations: 3.984 kB / 0.6656 GB, free: 15.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01342/0.9429, allocations: 2.845 MB / 0.6683 GB, free: 12.65 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.816e-05/0.943, allocations: 0 / 0.6683 GB, free: 12.65 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003329/0.9464, allocations: 151.9 kB / 0.6685 GB, free: 12.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005749/0.947, allocations: 49.62 kB / 0.6685 GB, free: 12.45 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004754/0.9475, allocations: 23.98 kB / 0.6686 GB, free: 12.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002667/0.9502, allocations: 2.692 MB / 0.6712 GB, free: 9.465 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.9502, allocations: 0 / 0.6712 GB, free: 9.465 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00907/0.9593, allocations: 2.262 MB / 0.6734 GB, free: 7.133 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/0.9605, allocations: 291.8 kB / 0.6737 GB, free: 6.828 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004494/0.9609, allocations: 91.95 kB / 0.6738 GB, free: 6.738 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001744/0.9627, allocations: 111.9 kB / 0.6739 GB, free: 6.629 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004896/0.9632, allocations: 64.88 kB / 0.6739 GB, free: 6.566 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002087/0.9635, allocations: 35.97 kB / 0.674 GB, free: 6.531 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003219/0.9667, allocations: 0.5419 MB / 0.6745 GB, free: 5.996 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.233e-06/0.9668, allocations: 0 / 0.6745 GB, free: 5.996 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006196/0.973, allocations: 483.9 kB / 0.675 GB, free: 5.523 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (sm_ctrl.rotor.phi,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,PI_i_q.I.y) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 71 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000959/0.9742, allocations: 254.3 kB / 0.6752 GB, free: 5.266 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01419/0.9884, allocations: 2.958 MB / 0.6781 GB, free: 2.266 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.058e-05/0.9885, allocations: 0 / 0.6781 GB, free: 2.266 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005372/0.9939, allocations: 0.8703 MB / 0.6789 GB, free: 1.367 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004602/0.9986, allocations: 243.2 kB / 0.6792 GB, free: 1.129 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009394/1.008, allocations: 3.341 MB / 0.6824 GB, free: 13.74 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001314/1.009, allocations: 1.261 MB / 0.6837 GB, free: 12.45 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005797/1.01, allocations: 79.42 kB / 0.6837 GB, free: 12.37 MB / 490.7 MB Notification: Performance of SimCode: time 1.172e-06/1.01, allocations: 3.938 kB / 0.6837 GB, free: 12.37 MB / 490.7 MB Notification: Performance of Templates: time 0.05156/1.062, allocations: 25.32 MB / 0.7085 GB, free: 3 MB / 0.4948 GB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe 2>&1)