Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.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_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002567/0.002571, allocations: 364.2 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.874/3.874, allocations: 388.9 MB / 406.8 MB, free: 12.02 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.003553/0.003553, allocations: 237.6 kB / 452.2 MB, free: 14.61 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.7508/0.7508, allocations: 76.01 MB / 0.56 GB, free: 177.6 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004715/0.0004717, allocations: 12 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09483/0.09532, allocations: 53.24 MB / 0.6742 GB, free: 60.83 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4795/0.5749, allocations: 112.1 MB / 0.7837 GB, free: 79.29 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003153/0.5753, allocations: 103.7 kB / 0.7838 GB, free: 79.27 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1189/0.6942, allocations: 30.32 MB / 0.8134 GB, free: 63.59 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.6943, allocations: 0 / 0.8134 GB, free: 63.59 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.614e-05/0.6943, allocations: 23.94 kB / 0.8134 GB, free: 63.57 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: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.003534/0.6979, allocations: 1.247 MB / 0.8147 GB, free: 62.34 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.6979, allocations: 8.031 kB / 0.8147 GB, free: 62.33 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007327/0.6987, allocations: 130.6 kB / 0.8148 GB, free: 62.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002462/0.7012, allocations: 0.8573 MB / 0.8156 GB, free: 61.48 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.051e-05/0.7013, allocations: 63.12 kB / 0.8157 GB, free: 61.44 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002795/0.7016, allocations: 101.5 kB / 0.8158 GB, free: 61.37 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002595/0.7042, allocations: 1.133 MB / 0.8169 GB, free: 60.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.738e-05/0.7042, allocations: 3.938 kB / 0.8169 GB, free: 60.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/0.7044, allocations: 37.17 kB / 0.8169 GB, free: 60.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001485/0.7045, allocations: 61.05 kB / 0.817 GB, free: 60.45 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002366/0.7069, allocations: 0.9206 MB / 0.8179 GB, free: 59.83 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008127/0.7151, allocations: 4.41 MB / 0.8222 GB, free: 56.05 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001517/0.7166, allocations: 0.6088 MB / 0.8228 GB, free: 55.6 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009262/0.7176, allocations: 371 kB / 0.8231 GB, free: 55.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.786e-05/0.7177, allocations: 8.562 kB / 0.8231 GB, free: 55.33 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.7177, allocations: 46.88 kB / 0.8232 GB, free: 55.28 MB / 442.7 MB Notification: Performance of pre-optimization done (n=57): time 3.807e-06/0.7177, allocations: 0 / 0.8232 GB, free: 55.28 MB / 442.7 MB Notification: Performance of matching and sorting (n=62): time 0.006859/0.7246, allocations: 2.856 MB / 0.826 GB, free: 52.91 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.734e-05/0.7247, allocations: 133.1 kB / 0.8261 GB, free: 52.75 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009706/0.7257, allocations: 0.6312 MB / 0.8267 GB, free: 52.26 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.156e-05/0.7258, allocations: 36.27 kB / 0.8268 GB, free: 52.23 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002977/0.7261, allocations: 466.2 kB / 0.8272 GB, free: 51.89 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002016/0.7263, allocations: 221.4 kB / 0.8274 GB, free: 51.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.832e-05/0.7264, allocations: 15.88 kB / 0.8274 GB, free: 51.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.7265, allocations: 383.4 kB / 0.8278 GB, free: 51.34 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007199/0.7272, allocations: 275.4 kB / 0.8281 GB, free: 51.16 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008078/0.728, allocations: 0.5078 MB / 0.8286 GB, free: 50.67 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004269/0.7323, allocations: 0.8289 MB / 0.8294 GB, free: 50 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.7324, allocations: 4 kB / 0.8294 GB, free: 50 MB / 442.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004706/0.7371, allocations: 1.504 MB / 0.8308 GB, free: 48.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001509/0.7373, allocations: 293 kB / 0.8311 GB, free: 48.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.7373, allocations: 15.88 kB / 0.8311 GB, free: 48.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002844/0.7401, allocations: 0.4923 MB / 0.8316 GB, free: 47.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009016/0.7411, allocations: 127.4 kB / 0.8317 GB, free: 47.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01343/0.7545, allocations: 7.704 MB / 0.8393 GB, free: 40.28 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000999/0.7555, allocations: 44.08 kB / 0.8393 GB, free: 40.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.766e-05/0.7556, allocations: 32 kB / 0.8393 GB, free: 40.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.247e-06/0.7557, allocations: 5.094 kB / 0.8393 GB, free: 40.2 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003874/0.7595, allocations: 1.31 MB / 0.8406 GB, free: 38.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.7596, allocations: 4 kB / 0.8406 GB, free: 38.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002568/0.7622, allocations: 470.5 kB / 0.8411 GB, free: 38.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008731/0.7631, allocations: 131.8 kB / 0.8412 GB, free: 38.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01176/0.7748, allocations: 7.471 MB / 0.8485 GB, free: 30.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009257/0.7758, allocations: 35.92 kB / 0.8485 GB, free: 30.33 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.726e-05/0.7759, allocations: 32 kB / 0.8485 GB, free: 30.3 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: 32 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * 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%) 3} * Non-linear torn systems: 1 {4 24} Notification: Performance of prepare postOptimizeDAE: time 0.0007907/0.7767, allocations: 401.5 kB / 0.8489 GB, free: 29.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/0.7769, allocations: 82.91 kB / 0.849 GB, free: 29.82 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002008/0.7789, allocations: 0.8608 MB / 0.8499 GB, free: 28.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.7789, allocations: 8 kB / 0.8499 GB, free: 28.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.779, allocations: 0 / 0.8499 GB, free: 28.91 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.779, allocations: 3.984 kB / 0.8499 GB, free: 28.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003822/0.7828, allocations: 1.862 MB / 0.8517 GB, free: 26.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.7829, allocations: 0 / 0.8517 GB, free: 26.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001287/0.7842, allocations: 135.8 kB / 0.8518 GB, free: 26.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002402/0.7844, allocations: 53.72 kB / 0.8519 GB, free: 26.75 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.426e-05/0.7845, allocations: 20 kB / 0.8519 GB, free: 26.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001955/0.7865, allocations: 2.762 MB / 0.8546 GB, free: 23.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.7865, allocations: 0 / 0.8546 GB, free: 23.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002816/0.7893, allocations: 1.335 MB / 0.8559 GB, free: 22.32 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003947/0.7897, allocations: 196.2 kB / 0.8561 GB, free: 22.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001487/0.7899, allocations: 23.98 kB / 0.8561 GB, free: 22.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006943/0.7906, allocations: 27.89 kB / 0.8561 GB, free: 22.06 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.7908, allocations: 44.5 kB / 0.8562 GB, free: 22.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-05/0.7908, allocations: 16 kB / 0.8562 GB, free: 22 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007347/0.7916, allocations: 443 kB / 0.8566 GB, free: 21.57 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.7916, allocations: 0 / 0.8566 GB, free: 21.57 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002023/0.7936, allocations: 404 kB / 0.857 GB, free: 21.18 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0003192/0.7939, allocations: 161 kB / 0.8571 GB, free: 21.02 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004767/0.7987, allocations: 2.163 MB / 0.8592 GB, free: 18.79 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.7988, allocations: 0 / 0.8592 GB, free: 18.79 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.7999, allocations: 0.5643 MB / 0.8598 GB, free: 18.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001798/0.8017, allocations: 201.1 kB / 0.86 GB, free: 18 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004634/0.8063, allocations: 2.512 MB / 0.8624 GB, free: 15.45 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007431/0.8071, allocations: 1.127 MB / 0.8635 GB, free: 14.29 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001187/0.8083, allocations: 202.3 kB / 0.8637 GB, free: 14.09 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002585/0.8086, allocations: 59.42 kB / 0.8638 GB, free: 14.03 MB / 442.7 MB Notification: Performance of SimCode: time 1.333e-06/0.8086, allocations: 0 / 0.8638 GB, free: 14.03 MB / 442.7 MB Notification: Performance of Templates: time 0.03743/0.846, allocations: 15.74 MB / 0.8792 GB, free: 14.41 MB / 458.7 MB