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.001089/0.001089, allocations: 182.7 kB / 13.64 MB, free: 1.676 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.658/1.658, allocations: 194.3 MB / 208.4 MB, free: 6.703 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.001619/0.001619, allocations: 122.3 kB / 253.5 MB, free: 9.578 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1988/0.1988, allocations: 37.91 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.978e-05/3.981e-05, allocations: 4 kB / 397.5 MB, free: 1.051 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3035, allocations: 53.23 MB / 450.8 MB, free: 13.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4533/0.7568, allocations: 116 MB / 0.5535 GB, free: 28.94 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/0.7571, allocations: 95.69 kB / 0.5536 GB, free: 28.94 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08251/0.8397, allocations: 34.74 MB / 0.5875 GB, free: 18.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.8397, allocations: 0 / 0.5875 GB, free: 18.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.098e-05/0.8398, allocations: 30.41 kB / 0.5875 GB, free: 18.4 MB / 378.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.002904/0.8427, allocations: 1.563 MB / 0.5891 GB, free: 17.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.8427, allocations: 7.75 kB / 0.5891 GB, free: 17.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000527/0.8433, allocations: 163.4 kB / 0.5892 GB, free: 17.26 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002829/0.8461, allocations: 1.251 MB / 0.5905 GB, free: 16.67 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.8463, allocations: 189.8 kB / 0.5906 GB, free: 16.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000252/0.8466, allocations: 119.2 kB / 0.5908 GB, free: 16.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002303/0.8489, allocations: 1.679 MB / 0.5924 GB, free: 16.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.422e-05/0.8489, allocations: 7.594 kB / 0.5924 GB, free: 16.01 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.849, allocations: 50.47 kB / 0.5924 GB, free: 16.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001007/0.8491, allocations: 74.56 kB / 0.5925 GB, free: 16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001702/0.8509, allocations: 1.251 MB / 0.5937 GB, free: 15.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006745/0.8576, allocations: 6.165 MB / 0.5998 GB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.8588, allocations: 0.8339 MB / 0.6006 GB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007329/0.8596, allocations: 0.53 MB / 0.6011 GB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.156e-05/0.8597, allocations: 12.78 kB / 0.6011 GB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008544/0.8605, allocations: 0.6701 MB / 0.6018 GB, free: 11.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=87): time 3.236e-06/0.8605, allocations: 0 / 0.6018 GB, free: 11.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=92): time 0.004961/0.8655, allocations: 3.441 MB / 0.6051 GB, free: 8.527 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.502e-05/0.8656, allocations: 156.9 kB / 0.6053 GB, free: 8.348 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008818/0.8665, allocations: 0.6758 MB / 0.6059 GB, free: 7.832 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.033e-05/0.8666, allocations: 52.39 kB / 0.606 GB, free: 7.789 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004205/0.867, allocations: 0.5463 MB / 0.6065 GB, free: 7.379 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002058/0.8672, allocations: 314.2 kB / 0.6068 GB, free: 7.113 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.408e-05/0.8673, allocations: 18.44 kB / 0.6068 GB, free: 7.109 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.8674, allocations: 403 kB / 0.6072 GB, free: 6.746 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000672/0.8681, allocations: 0.5378 MB / 0.6077 GB, free: 6.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000837/0.8689, allocations: 0.8519 MB / 0.6086 GB, free: 5.656 MB / 378.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.003813/0.8728, allocations: 1.998 MB / 0.6105 GB, free: 3.738 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/0.8728, allocations: 4 kB / 0.6105 GB, free: 3.734 MB / 378.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.00313/0.8759, allocations: 2.194 MB / 0.6127 GB, free: 1.504 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001225/0.8772, allocations: 3.801 MB / 0.6164 GB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/0.8772, allocations: 12 kB / 0.6164 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002055/0.8793, allocations: 0.8774 MB / 0.6172 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006633/0.8799, allocations: 175.7 kB / 0.6174 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003658/0.8836, allocations: 3.438 MB / 0.6208 GB, free: 8.719 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.8847, allocations: 91.84 kB / 0.6209 GB, free: 8.629 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001352/0.8848, allocations: 71.95 kB / 0.6209 GB, free: 8.559 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.816e-06/0.8848, allocations: 4 kB / 0.6209 GB, free: 8.555 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003801/0.8886, allocations: 2.283 MB / 0.6232 GB, free: 6.238 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.145e-05/0.8887, allocations: 12 kB / 0.6232 GB, free: 6.227 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001922/0.8906, allocations: 0.862 MB / 0.624 GB, free: 5.352 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006195/0.8912, allocations: 175.6 kB / 0.6242 GB, free: 5.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003765/0.895, allocations: 3.431 MB / 0.6275 GB, free: 1.582 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.8961, allocations: 79.94 kB / 0.6276 GB, free: 1.504 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001367/0.8963, allocations: 75.95 kB / 0.6277 GB, free: 1.43 MB / 394.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,$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]) * Number of discrete 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.0005053/0.8968, allocations: 212.4 kB / 0.6279 GB, free: 1.215 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002436/0.897, allocations: 98.77 kB / 0.628 GB, free: 1.117 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002351/0.8994, allocations: 1.216 MB / 0.6292 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.969e-05/0.8994, allocations: 23.95 kB / 0.6292 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.8995, allocations: 0 / 0.6292 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.8995, allocations: 7.984 kB / 0.6292 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004587/0.9041, allocations: 2.61 MB / 0.6317 GB, free: 13.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.9041, allocations: 0 / 0.6317 GB, free: 13.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007503/0.9049, allocations: 151.8 kB / 0.6319 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001884/0.9051, allocations: 61.69 kB / 0.632 GB, free: 12.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.45e-05/0.9052, allocations: 27.97 kB / 0.632 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002201/0.9074, allocations: 2.766 MB / 0.6347 GB, free: 9.852 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.9074, allocations: 0 / 0.6347 GB, free: 9.852 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002895/0.9103, allocations: 1.882 MB / 0.6365 GB, free: 7.914 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006727/0.911, allocations: 287.8 kB / 0.6368 GB, free: 7.613 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003455/0.9113, allocations: 91.95 kB / 0.6369 GB, free: 7.523 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009597/0.9123, allocations: 115.9 kB / 0.637 GB, free: 7.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/0.9125, allocations: 56.64 kB / 0.637 GB, free: 7.355 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.023e-05/0.9126, allocations: 39.97 kB / 0.6371 GB, free: 7.316 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009467/0.9135, allocations: 0.5186 MB / 0.6376 GB, free: 6.801 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.613e-06/0.9135, allocations: 0 / 0.6376 GB, free: 6.801 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002226/0.9158, allocations: 479.9 kB / 0.638 GB, free: 6.332 MB / 410.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]) * 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.0005117/0.9163, allocations: 261.1 kB / 0.6383 GB, free: 6.074 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004531/0.9208, allocations: 2.794 MB / 0.641 GB, free: 3.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.9208, allocations: 0 / 0.641 GB, free: 3.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.9219, allocations: 0.7439 MB / 0.6417 GB, free: 2.461 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001347/0.9233, allocations: 235.2 kB / 0.642 GB, free: 2.234 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004336/0.9277, allocations: 2.112 MB / 0.644 GB, free: 88 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001211/0.9289, allocations: 1.251 MB / 0.6453 GB, free: 14.81 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001367/0.9303, allocations: 391.7 kB / 0.6456 GB, free: 14.42 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002349/0.9305, allocations: 63.42 kB / 0.6457 GB, free: 14.36 MB / 426.7 MB Notification: Performance of SimCode: time 8.62e-07/0.9305, allocations: 4 kB / 0.6457 GB, free: 14.36 MB / 426.7 MB Notification: Performance of Templates: time 0.03492/0.9654, allocations: 20.05 MB / 0.6653 GB, free: 10.27 MB / 442.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)