Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.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_ctrl,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001656/0.001656, allocations: 179.5 kB / 17.4 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.508/1.508, allocations: 194.5 MB / 212.6 MB, free: 2.859 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001558/0.001558, allocations: 108.2 kB / 257.9 MB, free: 4.242 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.195/0.195, allocations: 38.01 MB / 341.1 MB, free: 1.164 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004194/0.0004193, allocations: 8 kB / 405 MB, free: 68.48 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1029, allocations: 53.23 MB / 458.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4072/0.5102, allocations: 116.2 MB / 0.561 GB, free: 11.12 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002991/0.5106, allocations: 107.9 kB / 0.5611 GB, free: 11.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09265/0.6032, allocations: 34.57 MB / 0.5948 GB, free: 13.64 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.6033, allocations: 0 / 0.5948 GB, free: 13.64 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001264/0.6034, allocations: 27.94 kB / 0.5949 GB, free: 13.61 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 295 * Number of variables: 295 Notification: Performance of Generate backend data structure: time 0.005205/0.6086, allocations: 1.656 MB / 0.5965 GB, free: 11.96 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.6087, allocations: 8.031 kB / 0.5965 GB, free: 11.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009758/0.6097, allocations: 167.2 kB / 0.5966 GB, free: 11.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003301/0.613, allocations: 1.165 MB / 0.5978 GB, free: 10.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002464/0.6133, allocations: 200.1 kB / 0.598 GB, free: 10.65 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005247/0.6138, allocations: 113.1 kB / 0.5981 GB, free: 10.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004293/0.6181, allocations: 1.817 MB / 0.5999 GB, free: 9.191 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.775e-05/0.6182, allocations: 15.27 kB / 0.5999 GB, free: 9.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002008/0.6184, allocations: 43.12 kB / 0.5999 GB, free: 9.168 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001356/0.6186, allocations: 72.34 kB / 0.6 GB, free: 9.105 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003187/0.6218, allocations: 1.398 MB / 0.6013 GB, free: 8.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01073/0.6325, allocations: 6.182 MB / 0.6074 GB, free: 2.438 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003097/0.6357, allocations: 1.168 MB / 0.6085 GB, free: 1.246 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001452/0.6371, allocations: 0.6487 MB / 0.6092 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.266e-05/0.6372, allocations: 9.359 kB / 0.6092 GB, free: 0.582 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001714/0.639, allocations: 0.8073 MB / 0.61 GB, free: 15.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=87): time 6.493e-06/0.639, allocations: 0 / 0.61 GB, free: 15.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=92): time 0.01089/0.6499, allocations: 4.634 MB / 0.6145 GB, free: 10.99 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.65, allocations: 153.2 kB / 0.6146 GB, free: 10.81 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001403/0.6515, allocations: 0.7742 MB / 0.6154 GB, free: 10.03 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001698/0.6517, allocations: 65.7 kB / 0.6154 GB, free: 9.957 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007156/0.6524, allocations: 0.5378 MB / 0.616 GB, free: 9.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004895/0.6529, allocations: 307.7 kB / 0.6163 GB, free: 9.105 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.849e-05/0.653, allocations: 20 kB / 0.6163 GB, free: 9.086 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003868/0.6534, allocations: 410.7 kB / 0.6167 GB, free: 8.676 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001452/0.6549, allocations: 0.5296 MB / 0.6172 GB, free: 8.148 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001615/0.6565, allocations: 0.855 MB / 0.618 GB, free: 7.156 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00589/0.6624, allocations: 2.755 MB / 0.6207 GB, free: 4.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.324e-05/0.6624, allocations: 4 kB / 0.6207 GB, free: 4.227 MB / 426.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.00442/0.6669, allocations: 2.187 MB / 0.6229 GB, free: 2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003991/0.6673, allocations: 446.9 kB / 0.6233 GB, free: 1.422 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/0.6673, allocations: 11.98 kB / 0.6233 GB, free: 1.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002202/0.6695, allocations: 0.8658 MB / 0.6241 GB, free: 0.5312 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007032/0.6703, allocations: 167.7 kB / 0.6243 GB, free: 376 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003958/0.6742, allocations: 3.388 MB / 0.6276 GB, free: 12.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.6754, allocations: 91.84 kB / 0.6277 GB, free: 12.72 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002205/0.6756, allocations: 71.95 kB / 0.6278 GB, free: 12.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.6756, allocations: 4 kB / 0.6278 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00418/0.6798, allocations: 2.226 MB / 0.6299 GB, free: 10.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.084e-05/0.6799, allocations: 16 kB / 0.63 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001942/0.6818, allocations: 0.8305 MB / 0.6308 GB, free: 9.531 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006416/0.6825, allocations: 171.7 kB / 0.6309 GB, free: 9.363 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00353/0.686, allocations: 3.333 MB / 0.6342 GB, free: 5.863 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009177/0.687, allocations: 79.84 kB / 0.6343 GB, free: 5.785 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001563/0.6871, allocations: 80.03 kB / 0.6343 GB, free: 5.707 MB / 442.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: 43 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$PRE.sm_ctrl.inverter.modulator.gates[6],$PRE.sm_ctrl.inverter.modulator.gates[5],$PRE.sm_ctrl.inverter.modulator.gates[4],$PRE.sm_ctrl.inverter.modulator.gates[3],$PRE.sm_ctrl.inverter.modulator.gates[2],$PRE.sm_ctrl.inverter.modulator.gates[1],$PRE.sm_ctrl.inverter.modulator.sigdel_t[1],$PRE.sm_ctrl.inverter.modulator.sigdel_t[2],$PRE.sm_ctrl.inverter.modulator.sigdel_t[3],$PRE.sm_ctrl.inverter.modulator.t0[1],$PRE.sm_ctrl.inverter.modulator.t0[2],$PRE.sm_ctrl.inverter.modulator.t0[3],$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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 97 * 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%) 2} * Non-linear torn systems: 1 {2 30} Notification: Performance of prepare postOptimizeDAE: time 0.00105/0.6882, allocations: 0.5163 MB / 0.6348 GB, free: 5.18 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002912/0.6885, allocations: 98.81 kB / 0.6349 GB, free: 5.082 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003494/0.692, allocations: 1.467 MB / 0.6364 GB, free: 3.582 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.064e-05/0.692, allocations: 12 kB / 0.6364 GB, free: 3.57 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.6921, allocations: 11.94 kB / 0.6364 GB, free: 3.559 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.6921, allocations: 3.984 kB / 0.6364 GB, free: 3.555 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006209/0.6983, allocations: 2.846 MB / 0.6392 GB, free: 0.6133 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.6983, allocations: 0 / 0.6392 GB, free: 0.6133 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009578/0.6993, allocations: 155.7 kB / 0.6393 GB, free: 472 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002032/0.6995, allocations: 65.67 kB / 0.6394 GB, free: 400 kB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-05/0.6996, allocations: 31.91 kB / 0.6394 GB, free: 368 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002482/0.7021, allocations: 2.758 MB / 0.6421 GB, free: 13.33 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.7021, allocations: 0 / 0.6421 GB, free: 13.33 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005129/0.7073, allocations: 2.236 MB / 0.6443 GB, free: 11.04 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006269/0.7079, allocations: 291.8 kB / 0.6446 GB, free: 10.74 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002305/0.7082, allocations: 87.95 kB / 0.6447 GB, free: 10.65 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008075/0.709, allocations: 119.8 kB / 0.6448 GB, free: 10.54 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.7092, allocations: 52.92 kB / 0.6448 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.119e-05/0.7093, allocations: 35.97 kB / 0.6449 GB, free: 10.45 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008461/0.7101, allocations: 0.5302 MB / 0.6454 GB, free: 9.926 MB / 458.7 MB Notification: Performance of sort global known variables: time 3e-07/0.7101, allocations: 0 / 0.6454 GB, free: 9.926 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001911/0.712, allocations: 479.9 kB / 0.6458 GB, free: 9.457 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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: 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 (86): * Single equations (assignments): 70 * 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%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004747/0.7125, allocations: 228 kB / 0.646 GB, free: 9.227 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004869/0.7174, allocations: 2.882 MB / 0.6489 GB, free: 6.301 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.7174, allocations: 0 / 0.6489 GB, free: 6.301 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001575/0.719, allocations: 0.8675 MB / 0.6497 GB, free: 5.406 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001457/0.7205, allocations: 247.7 kB / 0.6499 GB, free: 5.16 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005066/0.7256, allocations: 3.227 MB / 0.6531 GB, free: 1.898 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008779/0.7265, allocations: 1.215 MB / 0.6543 GB, free: 0.6562 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001182/0.7277, allocations: 315.8 kB / 0.6546 GB, free: 352 kB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002358/0.7279, allocations: 71.44 kB / 0.6547 GB, free: 280 kB / 458.7 MB Notification: Performance of SimCode: time 1.122e-06/0.7279, allocations: 0 / 0.6547 GB, free: 280 kB / 458.7 MB Notification: Performance of Templates: time 0.2506/0.9785, allocations: 18.71 MB / 0.6729 GB, free: 141.4 MB / 474.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe 2>&1)