Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00106/0.00106, allocations: 173.1 kB / 16.76 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.396/1.396, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007924/0.0007925, allocations: 89.08 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1806/0.1806, allocations: 38.07 MB / 357.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000386/0.0003861, allocations: 15.98 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.3763, allocations: 56.32 MB / 480.3 MB, free: 9.207 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1812/0.5576, allocations: 122.2 MB / 0.5883 GB, free: 12.14 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003359/0.558, allocations: 95.95 kB / 0.5884 GB, free: 12.04 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09467/0.6527, allocations: 35.3 MB / 0.6229 GB, free: 8.41 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.6528, allocations: 0 / 0.6229 GB, free: 8.41 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.492e-05/0.6528, allocations: 35.94 kB / 0.6229 GB, free: 8.375 MB / 458.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.003818/0.6567, allocations: 1.694 MB / 0.6246 GB, free: 6.59 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.6567, allocations: 12.03 kB / 0.6246 GB, free: 6.578 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005821/0.6573, allocations: 167.2 kB / 0.6247 GB, free: 6.414 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002831/0.6602, allocations: 1.188 MB / 0.6259 GB, free: 5.188 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000227/0.6604, allocations: 191.9 kB / 0.6261 GB, free: 4.98 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003096/0.6607, allocations: 128.5 kB / 0.6262 GB, free: 4.855 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003648/0.6644, allocations: 1.85 MB / 0.628 GB, free: 2.891 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.181e-05/0.6645, allocations: 11.84 kB / 0.628 GB, free: 2.879 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00014/0.6646, allocations: 44 kB / 0.6281 GB, free: 2.836 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001374/0.6647, allocations: 81.91 kB / 0.6282 GB, free: 2.754 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002939/0.6677, allocations: 1.413 MB / 0.6295 GB, free: 1.344 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009547/0.6773, allocations: 6.396 MB / 0.6358 GB, free: 10.68 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003172/0.6805, allocations: 1.189 MB / 0.6369 GB, free: 9.465 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/0.682, allocations: 0.6579 MB / 0.6376 GB, free: 8.801 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.591e-05/0.6821, allocations: 12.64 kB / 0.6376 GB, free: 8.789 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001755/0.6838, allocations: 0.8034 MB / 0.6384 GB, free: 7.965 MB / 474.7 MB Notification: Performance of pre-optimization done (n=88): time 3.426e-06/0.6838, allocations: 7.938 kB / 0.6384 GB, free: 7.957 MB / 474.7 MB Notification: Performance of matching and sorting (n=92): time 0.009131/0.693, allocations: 3.863 MB / 0.6422 GB, free: 4 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.6932, allocations: 161.2 kB / 0.6423 GB, free: 3.812 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001423/0.6946, allocations: 0.8096 MB / 0.6431 GB, free: 2.992 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001127/0.6947, allocations: 57.64 kB / 0.6432 GB, free: 2.93 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006346/0.6954, allocations: 0.5496 MB / 0.6437 GB, free: 2.371 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003232/0.6957, allocations: 307.6 kB / 0.644 GB, free: 2.066 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.376e-05/0.6958, allocations: 28 kB / 0.644 GB, free: 2.039 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001922/0.696, allocations: 353.9 kB / 0.6444 GB, free: 1.688 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009643/0.6969, allocations: 0.5374 MB / 0.6449 GB, free: 1.152 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001354/0.6983, allocations: 0.8695 MB / 0.6457 GB, free: 136 kB / 474.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.2863/0.9846, allocations: 3.238 MB / 0.6489 GB, free: 129.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-05/0.9846, allocations: 6.875 kB / 0.6489 GB, free: 129.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.004896/0.9895, allocations: 2.216 MB / 0.6511 GB, free: 129.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000383/0.99, allocations: 452.7 kB / 0.6515 GB, free: 128.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.551e-05/0.99, allocations: 8.906 kB / 0.6515 GB, free: 128.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002488/0.9925, allocations: 0.8854 MB / 0.6524 GB, free: 128.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006972/0.9932, allocations: 171.6 kB / 0.6525 GB, free: 128.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003691/0.9969, allocations: 3.394 MB / 0.6558 GB, free: 126.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/0.998, allocations: 96.66 kB / 0.6559 GB, free: 126.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001608/0.9982, allocations: 82.19 kB / 0.656 GB, free: 126.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.9982, allocations: 3.875 kB / 0.656 GB, free: 126.9 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004475/1.003, allocations: 2.251 MB / 0.6582 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.13e-05/1.003, allocations: 9.125 kB / 0.6582 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002187/1.005, allocations: 0.8441 MB / 0.659 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007189/1.006, allocations: 175.9 kB / 0.6592 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00338/1.009, allocations: 3.342 MB / 0.6625 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009786/1.01, allocations: 79.5 kB / 0.6626 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001503/1.01, allocations: 82.09 kB / 0.6626 GB, free: 124.8 MB / 474.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,$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],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 (101): * Single equations (assignments): 98 * 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 31} Notification: Performance of prepare postOptimizeDAE: time 0.001101/1.011, allocations: 0.5306 MB / 0.6632 GB, free: 124.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002967/1.012, allocations: 103.2 kB / 0.6632 GB, free: 124.6 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003729/1.015, allocations: 1.473 MB / 0.6647 GB, free: 124.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.252e-05/1.015, allocations: 19.62 kB / 0.6647 GB, free: 124.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/1.015, allocations: 2.969 kB / 0.6647 GB, free: 124.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.682e-05/1.015, allocations: 5.531 kB / 0.6647 GB, free: 124.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00617/1.022, allocations: 2.869 MB / 0.6675 GB, free: 122.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/1.022, allocations: 6.438 kB / 0.6675 GB, free: 122.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007798/1.023, allocations: 151.6 kB / 0.6677 GB, free: 122.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001937/1.023, allocations: 59.05 kB / 0.6677 GB, free: 122.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.164e-05/1.023, allocations: 26.78 kB / 0.6677 GB, free: 122.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0017/1.025, allocations: 2.758 MB / 0.6704 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.025, allocations: 5.469 kB / 0.6704 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00457/1.029, allocations: 2.249 MB / 0.6726 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006312/1.03, allocations: 294.4 kB / 0.6729 GB, free: 118.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002335/1.03, allocations: 91.19 kB / 0.673 GB, free: 118.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007964/1.031, allocations: 120.8 kB / 0.6731 GB, free: 118.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001707/1.031, allocations: 62.53 kB / 0.6732 GB, free: 118.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.322e-05/1.031, allocations: 30.72 kB / 0.6732 GB, free: 118.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0009607/1.032, allocations: 0.5466 MB / 0.6737 GB, free: 118.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.1e-07/1.032, allocations: 0 / 0.6737 GB, free: 118.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002386/1.034, allocations: 484.8 kB / 0.6742 GB, free: 118.6 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 (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.0004412/1.035, allocations: 240.1 kB / 0.6744 GB, free: 118.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004427/1.039, allocations: 2.897 MB / 0.6773 GB, free: 117.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/1.039, allocations: 3.875 kB / 0.6773 GB, free: 117.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001462/1.041, allocations: 0.8727 MB / 0.6781 GB, free: 116.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001462/1.042, allocations: 256.9 kB / 0.6784 GB, free: 116.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004854/1.047, allocations: 3.355 MB / 0.6816 GB, free: 114.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007264/1.048, allocations: 1.231 MB / 0.6828 GB, free: 114 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003294/1.048, allocations: 76.05 kB / 0.6829 GB, free: 114 MB / 474.7 MB Notification: Performance of SimCode: time 1.102e-06/1.048, allocations: 4 kB / 0.6829 GB, free: 114 MB / 474.7 MB Notification: Performance of Templates: time 0.03204/1.08, allocations: 26.38 MB / 0.7087 GB, free: 107.2 MB / 474.7 MB 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)