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.001455/0.001458, allocations: 184.1 kB / 13.2 MB, free: 2.117 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.005/2.005, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.001045/0.001045, allocations: 86.84 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2626/0.2626, allocations: 37.97 MB / 353.1 MB, free: 3.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.119e-05/3.123e-05, allocations: 4 kB / 416.8 MB, free: 41.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1029, allocations: 56.32 MB / 473.1 MB, free: 0.918 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5156/0.6186, allocations: 122 MB / 0.5812 GB, free: 13.68 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003585/0.619, allocations: 99.92 kB / 0.5813 GB, free: 13.58 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1535/0.7725, allocations: 35.46 MB / 0.6159 GB, free: 9.801 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.7726, allocations: 0 / 0.6159 GB, free: 9.801 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001139/0.7727, allocations: 35.94 kB / 0.6159 GB, free: 9.766 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.00518/0.7779, allocations: 1.589 MB / 0.6175 GB, free: 8.094 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.539e-05/0.778, allocations: 12.03 kB / 0.6175 GB, free: 8.082 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001005/0.779, allocations: 162.3 kB / 0.6177 GB, free: 7.922 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00542/0.7845, allocations: 1.275 MB / 0.6189 GB, free: 6.605 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000283/0.7848, allocations: 199.3 kB / 0.6191 GB, free: 6.391 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004608/0.7853, allocations: 123.9 kB / 0.6192 GB, free: 6.27 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004486/0.7898, allocations: 1.71 MB / 0.6209 GB, free: 4.445 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.707e-05/0.7899, allocations: 7.938 kB / 0.6209 GB, free: 4.438 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000216/0.7901, allocations: 51.98 kB / 0.6209 GB, free: 4.387 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001993/0.7903, allocations: 69.98 kB / 0.621 GB, free: 4.32 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003629/0.7939, allocations: 1.257 MB / 0.6222 GB, free: 3.059 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01437/0.8083, allocations: 6.388 MB / 0.6285 GB, free: 12.41 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002374/0.8108, allocations: 0.8495 MB / 0.6293 GB, free: 11.53 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001437/0.8122, allocations: 0.5406 MB / 0.6298 GB, free: 10.98 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.035e-05/0.8123, allocations: 17.41 kB / 0.6299 GB, free: 10.97 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001631/0.814, allocations: 0.6822 MB / 0.6305 GB, free: 10.27 MB / 474.7 MB Notification: Performance of pre-optimization done (n=88): time 4.038e-06/0.814, allocations: 0 / 0.6305 GB, free: 10.27 MB / 474.7 MB Notification: Performance of matching and sorting (n=92): time 0.007685/0.8217, allocations: 2.785 MB / 0.6332 GB, free: 7.398 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.8219, allocations: 161.2 kB / 0.6334 GB, free: 7.211 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001477/0.8234, allocations: 0.7074 MB / 0.6341 GB, free: 6.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002042/0.8236, allocations: 53.69 kB / 0.6341 GB, free: 6.441 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005907/0.8242, allocations: 0.5677 MB / 0.6347 GB, free: 5.867 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000461/0.8247, allocations: 311.6 kB / 0.635 GB, free: 5.559 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.8248, allocations: 24 kB / 0.635 GB, free: 5.535 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.825, allocations: 358.8 kB / 0.6354 GB, free: 5.176 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001367/0.8264, allocations: 0.5337 MB / 0.6359 GB, free: 4.641 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001632/0.828, allocations: 0.8732 MB / 0.6367 GB, free: 3.625 MB / 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.007882/0.8359, allocations: 2.011 MB / 0.6387 GB, free: 1.578 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/0.8359, allocations: 0 / 0.6387 GB, free: 1.578 MB / 474.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.3127/1.149, allocations: 2.102 MB / 0.6407 GB, free: 128 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001088/1.15, allocations: 3.973 MB / 0.6446 GB, free: 123.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.559e-05/1.15, allocations: 13.62 kB / 0.6446 GB, free: 123.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004175/1.154, allocations: 0.881 MB / 0.6455 GB, free: 123.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/1.155, allocations: 178.8 kB / 0.6457 GB, free: 123.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005443/1.161, allocations: 3.459 MB / 0.649 GB, free: 122 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/1.163, allocations: 95 kB / 0.6491 GB, free: 122 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003001/1.163, allocations: 78.08 kB / 0.6492 GB, free: 122 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/1.163, allocations: 2.969 kB / 0.6492 GB, free: 122 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006395/1.169, allocations: 2.275 MB / 0.6514 GB, free: 121.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.217e-05/1.17, allocations: 10.86 kB / 0.6514 GB, free: 121.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00359/1.173, allocations: 0.8711 MB / 0.6523 GB, free: 121.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/1.175, allocations: 172.8 kB / 0.6525 GB, free: 121.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004751/1.179, allocations: 3.427 MB / 0.6558 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/1.181, allocations: 80.55 kB / 0.6559 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000222/1.181, allocations: 77.64 kB / 0.656 GB, free: 119.9 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,$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 () * 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.0005052/1.181, allocations: 211.7 kB / 0.6562 GB, free: 119.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003563/1.182, allocations: 102.6 kB / 0.6563 GB, free: 119.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003252/1.185, allocations: 1.223 MB / 0.6575 GB, free: 119.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.377e-05/1.185, allocations: 20.78 kB / 0.6575 GB, free: 119.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/1.185, allocations: 1.344 kB / 0.6575 GB, free: 119.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.63e-05/1.185, allocations: 5.453 kB / 0.6575 GB, free: 119.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006376/1.192, allocations: 2.628 MB / 0.66 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/1.192, allocations: 0 / 0.66 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001477/1.193, allocations: 153.1 kB / 0.6602 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002645/1.193, allocations: 56.28 kB / 0.6602 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001461/1.194, allocations: 32.08 kB / 0.6603 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002072/1.196, allocations: 2.754 MB / 0.663 GB, free: 116.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/1.196, allocations: 4.344 kB / 0.663 GB, free: 116.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004561/1.2, allocations: 1.917 MB / 0.6648 GB, free: 116.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008408/1.201, allocations: 290.7 kB / 0.6651 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003812/1.202, allocations: 99.5 kB / 0.6652 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001591/1.203, allocations: 115.7 kB / 0.6653 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002419/1.203, allocations: 62.64 kB / 0.6654 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/1.204, allocations: 32.45 kB / 0.6654 GB, free: 116 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001135/1.205, allocations: 0.5365 MB / 0.6659 GB, free: 115.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.205, allocations: 3.219 kB / 0.6659 GB, free: 115.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002577/1.207, allocations: 484.7 kB / 0.6664 GB, free: 115.7 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]) * 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.0006543/1.208, allocations: 245 kB / 0.6666 GB, free: 115.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006812/1.215, allocations: 2.791 MB / 0.6694 GB, free: 114.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.215, allocations: 1.719 kB / 0.6694 GB, free: 114.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001771/1.217, allocations: 0.7523 MB / 0.6701 GB, free: 113.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001943/1.219, allocations: 253.3 kB / 0.6703 GB, free: 113.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005961/1.225, allocations: 2.213 MB / 0.6725 GB, free: 112.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/1.226, allocations: 1.259 MB / 0.6737 GB, free: 112.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005675/1.226, allocations: 76.44 kB / 0.6738 GB, free: 112.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.292e-06/1.226, allocations: 0 / 0.6738 GB, free: 112.1 MB / 474.7 MB Notification: Performance of Templates: time 0.04203/1.268, allocations: 25.3 MB / 0.6985 GB, free: 109.8 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)