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.0009949/0.0009948, allocations: 180.3 kB / 16.38 MB, free: 5.766 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.197/1.197, allocations: 194.5 MB / 211.6 MB, free: 3.031 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.00159/0.00159, allocations: 110 kB / 256.9 MB, free: 4.344 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1546/0.1546, allocations: 38 MB / 340.1 MB, free: 1.344 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003387/0.0003388, allocations: 8 kB / 403.8 MB, free: 68.79 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08835/0.0887, allocations: 53.23 MB / 457 MB, free: 15.55 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3383/0.4271, allocations: 116.1 MB / 0.5597 GB, free: 11.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/0.4273, allocations: 98.34 kB / 0.5598 GB, free: 11.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08638/0.5137, allocations: 34.75 MB / 0.5937 GB, free: 13.94 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.5138, allocations: 0 / 0.5937 GB, free: 13.94 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.085e-05/0.5139, allocations: 31.94 kB / 0.5937 GB, free: 13.91 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.003153/0.517, allocations: 1.668 MB / 0.5954 GB, free: 12.25 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.5171, allocations: 12.02 kB / 0.5954 GB, free: 12.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004846/0.5176, allocations: 166.3 kB / 0.5955 GB, free: 12.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0029/0.5205, allocations: 1.269 MB / 0.5968 GB, free: 11.04 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001774/0.5207, allocations: 190 kB / 0.597 GB, free: 10.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002357/0.5209, allocations: 118.8 kB / 0.5971 GB, free: 10.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00305/0.524, allocations: 1.807 MB / 0.5988 GB, free: 9.426 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.21e-05/0.524, allocations: 7.844 kB / 0.5988 GB, free: 9.418 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001386/0.5242, allocations: 49.55 kB / 0.5989 GB, free: 9.402 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000117/0.5243, allocations: 69.17 kB / 0.599 GB, free: 9.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002477/0.5268, allocations: 1.404 MB / 0.6003 GB, free: 8.395 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008145/0.5349, allocations: 6.174 MB / 0.6064 GB, free: 2.605 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002739/0.5377, allocations: 1.164 MB / 0.6075 GB, free: 1.418 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.256e-05/0.5378, allocations: 12.7 kB / 0.6075 GB, free: 1.406 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001518/0.5393, allocations: 0.8002 MB / 0.6083 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of pre-optimization done (n=87): time 3.547e-06/0.5393, allocations: 0 / 0.6083 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of matching and sorting (n=92): time 0.009516/0.5488, allocations: 4.68 MB / 0.6129 GB, free: 11.75 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.549, allocations: 157.2 kB / 0.613 GB, free: 11.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009344/0.5499, allocations: 0.6875 MB / 0.6137 GB, free: 10.88 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.082e-05/0.55, allocations: 61.62 kB / 0.6137 GB, free: 10.81 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005102/0.5505, allocations: 0.534 MB / 0.6143 GB, free: 10.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002717/0.5508, allocations: 307.7 kB / 0.6146 GB, free: 9.961 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.618e-05/0.5509, allocations: 24 kB / 0.6146 GB, free: 9.938 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002152/0.5511, allocations: 411.7 kB / 0.615 GB, free: 9.527 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008453/0.552, allocations: 0.5648 MB / 0.6155 GB, free: 8.961 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001038/0.553, allocations: 0.8784 MB / 0.6164 GB, free: 7.949 MB / 426.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.004406/0.5574, allocations: 2.05 MB / 0.6184 GB, free: 5.863 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.5574, allocations: 0 / 0.6184 GB, free: 5.863 MB / 426.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.004005/0.5615, allocations: 2.246 MB / 0.6206 GB, free: 3.586 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001556/0.563, allocations: 3.801 MB / 0.6243 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.5631, allocations: 11.95 kB / 0.6243 GB, free: 15.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002159/0.5652, allocations: 0.893 MB / 0.6252 GB, free: 14.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006809/0.5659, allocations: 171.7 kB / 0.6253 GB, free: 14.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003374/0.5693, allocations: 3.395 MB / 0.6287 GB, free: 10.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009676/0.5703, allocations: 103.8 kB / 0.6288 GB, free: 10.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.5704, allocations: 79.88 kB / 0.6288 GB, free: 10.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.5705, allocations: 4 kB / 0.6288 GB, free: 10.65 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003735/0.5742, allocations: 2.3 MB / 0.6311 GB, free: 8.316 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/0.5742, allocations: 8 kB / 0.6311 GB, free: 8.309 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001939/0.5762, allocations: 0.8506 MB / 0.6319 GB, free: 7.445 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000614/0.5768, allocations: 171.7 kB / 0.6321 GB, free: 7.277 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003311/0.5801, allocations: 3.353 MB / 0.6354 GB, free: 3.762 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009089/0.5811, allocations: 79.84 kB / 0.6354 GB, free: 3.684 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001731/0.5813, allocations: 76.14 kB / 0.6355 GB, free: 3.609 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,$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 () * 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%) 1} * Non-linear torn systems: 1 {2 30} Notification: Performance of prepare postOptimizeDAE: time 0.001117/0.5824, allocations: 0.5085 MB / 0.636 GB, free: 3.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003193/0.5827, allocations: 102.8 kB / 0.6361 GB, free: 2.988 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00313/0.5858, allocations: 1.451 MB / 0.6375 GB, free: 1.504 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.468e-05/0.5859, allocations: 23.97 kB / 0.6375 GB, free: 1.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.5859, allocations: 4 kB / 0.6375 GB, free: 1.477 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.5859, allocations: 3.984 kB / 0.6375 GB, free: 1.473 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005542/0.5915, allocations: 2.819 MB / 0.6403 GB, free: 14.56 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.5915, allocations: 4 kB / 0.6403 GB, free: 14.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007808/0.5923, allocations: 159.8 kB / 0.6405 GB, free: 14.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001527/0.5925, allocations: 41.7 kB / 0.6405 GB, free: 14.35 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-05/0.5926, allocations: 31.92 kB / 0.6405 GB, free: 14.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002029/0.5946, allocations: 2.676 MB / 0.6431 GB, free: 11.38 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.5946, allocations: 0 / 0.6431 GB, free: 11.38 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004418/0.599, allocations: 2.232 MB / 0.6453 GB, free: 9.082 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006977/0.5998, allocations: 295.8 kB / 0.6456 GB, free: 8.773 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003201/0.6001, allocations: 95.89 kB / 0.6457 GB, free: 8.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009218/0.601, allocations: 115.9 kB / 0.6458 GB, free: 8.566 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/0.6012, allocations: 64.86 kB / 0.6459 GB, free: 8.504 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.806e-05/0.6013, allocations: 27.97 kB / 0.6459 GB, free: 8.477 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009758/0.6023, allocations: 0.5263 MB / 0.6464 GB, free: 7.953 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.6023, allocations: 0 / 0.6464 GB, free: 7.953 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002215/0.6045, allocations: 480 kB / 0.6469 GB, free: 7.484 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 (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.0005379/0.605, allocations: 243.6 kB / 0.6471 GB, free: 7.238 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005029/0.6101, allocations: 2.93 MB / 0.65 GB, free: 4.266 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.6101, allocations: 0 / 0.65 GB, free: 4.266 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001689/0.6118, allocations: 0.8662 MB / 0.6508 GB, free: 3.371 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001225/0.613, allocations: 235.1 kB / 0.651 GB, free: 3.145 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00556/0.6186, allocations: 3.219 MB / 0.6542 GB, free: 15.89 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001124/0.6198, allocations: 1.242 MB / 0.6554 GB, free: 14.62 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001149/0.6209, allocations: 315.8 kB / 0.6557 GB, free: 14.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002736/0.6212, allocations: 67.42 kB / 0.6557 GB, free: 14.24 MB / 474.7 MB Notification: Performance of SimCode: time 1.402e-06/0.6212, allocations: 4 kB / 0.6558 GB, free: 14.23 MB / 474.7 MB Notification: Performance of Templates: time 0.1972/0.8185, allocations: 18.51 MB / 0.6738 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)