Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/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_master_PowerSystems.Examples.AC3ph.Drives.SM_ctrl") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002538/0.002542, allocations: 364.4 kB / 17.21 MB, free: 4.953 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.79/3.79, allocations: 388.9 MB / 406.8 MB, free: 12 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003527/0.003527, allocations: 233.2 kB / 452.2 MB, free: 14.6 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.7462/0.7462, allocations: 76.01 MB / 0.56 GB, free: 177.7 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004663/0.0004665, allocations: 8 kB / 0.6222 GB, free: 114.3 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09274/0.09323, allocations: 53.23 MB / 0.6742 GB, free: 60.96 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4813/0.5746, allocations: 116.1 MB / 0.7876 GB, free: 77.3 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000304/0.575, allocations: 103 kB / 0.7877 GB, free: 77.29 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1291/0.7041, allocations: 34.5 MB / 0.8214 GB, free: 56.14 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.7041, allocations: 0 / 0.8214 GB, free: 56.14 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.772e-05/0.7042, allocations: 31.94 kB / 0.8214 GB, free: 56.11 MB / 442.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.004846/0.7091, allocations: 1.672 MB / 0.8231 GB, free: 54.45 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.7092, allocations: 12.03 kB / 0.8231 GB, free: 54.44 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008139/0.71, allocations: 162.8 kB / 0.8232 GB, free: 54.28 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004075/0.7141, allocations: 1.139 MB / 0.8243 GB, free: 53.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002078/0.7143, allocations: 191.6 kB / 0.8245 GB, free: 53.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003993/0.7147, allocations: 117.2 kB / 0.8246 GB, free: 53.1 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004949/0.7197, allocations: 1.81 MB / 0.8264 GB, free: 51.72 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.741e-05/0.7198, allocations: 7.906 kB / 0.8264 GB, free: 51.71 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002006/0.72, allocations: 53.22 kB / 0.8265 GB, free: 51.7 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001635/0.7202, allocations: 75.84 kB / 0.8265 GB, free: 51.63 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004269/0.7245, allocations: 1.398 MB / 0.8279 GB, free: 50.68 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01086/0.7354, allocations: 6.178 MB / 0.8339 GB, free: 45.57 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00503/0.7404, allocations: 1.17 MB / 0.8351 GB, free: 44.67 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0023/0.7428, allocations: 0.6495 MB / 0.8357 GB, free: 44.2 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.739e-05/0.7429, allocations: 8.656 kB / 0.8357 GB, free: 44.2 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002449/0.7453, allocations: 0.8019 MB / 0.8365 GB, free: 43.57 MB / 442.7 MB Notification: Performance of pre-optimization done (n=87): time 3.927e-06/0.7453, allocations: 3.938 kB / 0.8365 GB, free: 43.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=92): time 0.01562/0.761, allocations: 4.625 MB / 0.841 GB, free: 39.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.338e-05/0.7611, allocations: 161.1 kB / 0.8412 GB, free: 39.02 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001242/0.7624, allocations: 0.7703 MB / 0.8419 GB, free: 38.24 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001631/0.7625, allocations: 57.73 kB / 0.842 GB, free: 38.18 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004474/0.763, allocations: 0.5379 MB / 0.8425 GB, free: 37.63 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003005/0.7633, allocations: 311.7 kB / 0.8428 GB, free: 37.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.987e-05/0.7634, allocations: 28 kB / 0.8428 GB, free: 37.29 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.7636, allocations: 407.6 kB / 0.8432 GB, free: 36.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001325/0.7649, allocations: 0.5608 MB / 0.8438 GB, free: 36.33 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/0.7663, allocations: 0.8862 MB / 0.8446 GB, free: 35.3 MB / 442.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.00731/0.7737, allocations: 2.068 MB / 0.8467 GB, free: 33.21 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.7737, allocations: 4 kB / 0.8467 GB, free: 33.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.006174/0.7799, allocations: 2.289 MB / 0.8489 GB, free: 30.88 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002888/0.7802, allocations: 426.8 kB / 0.8493 GB, free: 30.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.072e-05/0.7803, allocations: 19.95 kB / 0.8493 GB, free: 30.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003574/0.7838, allocations: 0.8933 MB / 0.8502 GB, free: 29.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.7851, allocations: 175.7 kB / 0.8504 GB, free: 29.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00464/0.7898, allocations: 3.493 MB / 0.8538 GB, free: 25.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.7913, allocations: 95.8 kB / 0.8539 GB, free: 25.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/0.7915, allocations: 79.92 kB / 0.8539 GB, free: 25.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.598e-06/0.7916, allocations: 4 kB / 0.8539 GB, free: 25.4 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005482/0.797, allocations: 2.311 MB / 0.8562 GB, free: 23.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-05/0.7971, allocations: 12 kB / 0.8562 GB, free: 23.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003116/0.8002, allocations: 0.8672 MB / 0.8571 GB, free: 22.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/0.8013, allocations: 171.7 kB / 0.8572 GB, free: 21.99 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004058/0.8054, allocations: 3.44 MB / 0.8606 GB, free: 18.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.8068, allocations: 79.94 kB / 0.8607 GB, free: 18.31 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001646/0.807, allocations: 79.88 kB / 0.8607 GB, free: 18.23 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 (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.001143/0.8082, allocations: 0.5247 MB / 0.8612 GB, free: 17.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000255/0.8085, allocations: 94.88 kB / 0.8613 GB, free: 17.61 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004957/0.8134, allocations: 1.463 MB / 0.8628 GB, free: 16.11 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.087e-05/0.8135, allocations: 16 kB / 0.8628 GB, free: 16.09 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.8135, allocations: 4 kB / 0.8628 GB, free: 16.09 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.8135, allocations: 3.984 kB / 0.8628 GB, free: 16.08 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007575/0.8211, allocations: 2.865 MB / 0.8656 GB, free: 13.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.824e-06/0.8212, allocations: 0 / 0.8656 GB, free: 13.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001367/0.8225, allocations: 159.8 kB / 0.8657 GB, free: 12.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002392/0.8228, allocations: 57.69 kB / 0.8658 GB, free: 12.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/0.8229, allocations: 23.98 kB / 0.8658 GB, free: 12.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001933/0.8249, allocations: 2.758 MB / 0.8685 GB, free: 9.852 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.8249, allocations: 0 / 0.8685 GB, free: 9.852 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007163/0.8321, allocations: 2.228 MB / 0.8707 GB, free: 7.574 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006443/0.8327, allocations: 287.8 kB / 0.871 GB, free: 7.273 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003447/0.8331, allocations: 91.89 kB / 0.8711 GB, free: 7.184 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/0.8346, allocations: 123.9 kB / 0.8712 GB, free: 7.062 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002044/0.8348, allocations: 52.92 kB / 0.8712 GB, free: 7.012 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.8349, allocations: 31.97 kB / 0.8712 GB, free: 6.98 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000962/0.8359, allocations: 0.5263 MB / 0.8718 GB, free: 6.461 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.8359, allocations: 0 / 0.8718 GB, free: 6.461 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002172/0.8381, allocations: 475.9 kB / 0.8722 GB, free: 5.996 MB / 442.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.0005172/0.8386, allocations: 246.1 kB / 0.8725 GB, free: 5.754 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006874/0.8455, allocations: 2.94 MB / 0.8753 GB, free: 2.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.8456, allocations: 0.5 kB / 0.8753 GB, free: 2.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00252/0.8481, allocations: 0.8737 MB / 0.8762 GB, free: 1.871 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001947/0.8501, allocations: 254.3 kB / 0.8764 GB, free: 1.621 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007291/0.8574, allocations: 3.212 MB / 0.8796 GB, free: 14.38 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001224/0.8587, allocations: 1.25 MB / 0.8808 GB, free: 13.1 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001761/0.8604, allocations: 311.8 kB / 0.8811 GB, free: 12.79 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004037/0.8609, allocations: 67.42 kB / 0.8811 GB, free: 12.72 MB / 458.7 MB Notification: Performance of SimCode: time 1.203e-06/0.8609, allocations: 0 / 0.8811 GB, free: 12.72 MB / 458.7 MB Notification: Performance of Templates: time 0.04969/0.9106, allocations: 18.62 MB / 0.8993 GB, free: 10.27 MB / 474.7 MB