Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.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_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001533/0.001533, allocations: 186 kB / 13.19 MB, free: 2.125 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.121/2.121, allocations: 205.2 MB / 218.9 MB, free: 9.215 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.001082/0.001082, allocations: 88.75 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.2611/0.2611, allocations: 37.97 MB / 353.1 MB, free: 3.066 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.046e-05/3.055e-05, allocations: 4 kB / 416.8 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1186, allocations: 56.3 MB / 473.1 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5109/0.6296, allocations: 118.1 MB / 0.5774 GB, free: 1.605 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003583/0.63, allocations: 99.88 kB / 0.5775 GB, free: 1.508 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1422/0.7723, allocations: 31.29 MB / 0.608 GB, free: 1.906 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.7723, allocations: 4 kB / 0.608 GB, free: 1.902 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001104/0.7725, allocations: 27.94 kB / 0.608 GB, free: 1.875 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.004258/0.7767, allocations: 1.166 MB / 0.6092 GB, free: 0.6602 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/0.7768, allocations: 8.031 kB / 0.6092 GB, free: 0.6523 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001078/0.7779, allocations: 134.6 kB / 0.6093 GB, free: 0.5195 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003952/0.7819, allocations: 0.9864 MB / 0.6103 GB, free: 15.49 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.853e-05/0.782, allocations: 65.98 kB / 0.6103 GB, free: 15.43 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003711/0.7824, allocations: 95.86 kB / 0.6104 GB, free: 15.34 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003249/0.7857, allocations: 1.129 MB / 0.6115 GB, free: 14.14 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.057e-05/0.7858, allocations: 4 kB / 0.6115 GB, free: 14.13 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001463/0.7859, allocations: 32 kB / 0.6116 GB, free: 14.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001913/0.7862, allocations: 61.97 kB / 0.6116 GB, free: 14.04 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002725/0.7889, allocations: 0.8745 MB / 0.6125 GB, free: 13.16 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01096/0.7999, allocations: 4.652 MB / 0.617 GB, free: 8.277 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/0.8016, allocations: 0.5553 MB / 0.6176 GB, free: 7.695 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001008/0.8026, allocations: 372.5 kB / 0.6179 GB, free: 7.32 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.514e-05/0.8027, allocations: 8.5 kB / 0.6179 GB, free: 7.312 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.8028, allocations: 43.12 kB / 0.618 GB, free: 7.258 MB / 458.7 MB Notification: Performance of pre-optimization done (n=58): time 4.478e-06/0.8028, allocations: 0 / 0.618 GB, free: 7.258 MB / 458.7 MB Notification: Performance of matching and sorting (n=62): time 0.005493/0.8083, allocations: 1.969 MB / 0.6199 GB, free: 5.211 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.8085, allocations: 137.1 kB / 0.62 GB, free: 5.047 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001236/0.8097, allocations: 0.5702 MB / 0.6206 GB, free: 4.473 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001499/0.8099, allocations: 45.73 kB / 0.6206 GB, free: 4.422 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004518/0.8103, allocations: 0.4934 MB / 0.6211 GB, free: 3.922 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002936/0.8106, allocations: 220.8 kB / 0.6213 GB, free: 3.703 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.503e-05/0.8107, allocations: 16 kB / 0.6213 GB, free: 3.688 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.8109, allocations: 342.8 kB / 0.6217 GB, free: 3.344 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007506/0.8117, allocations: 261.9 kB / 0.6219 GB, free: 3.09 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009341/0.8126, allocations: 0.4924 MB / 0.6224 GB, free: 2.488 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004429/0.8171, allocations: 0.7879 MB / 0.6232 GB, free: 1.68 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/0.8171, allocations: 0 / 0.6232 GB, free: 1.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004897/0.822, allocations: 1.386 MB / 0.6245 GB, free: 248 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001315/0.8234, allocations: 2.962 MB / 0.6274 GB, free: 13.05 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.193e-05/0.8235, allocations: 12 kB / 0.6274 GB, free: 13.04 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003101/0.8266, allocations: 480.7 kB / 0.6279 GB, free: 12.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/0.8277, allocations: 139.7 kB / 0.628 GB, free: 12.42 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005821/0.8336, allocations: 4.081 MB / 0.632 GB, free: 8.047 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/0.8347, allocations: 39.98 kB / 0.632 GB, free: 8.008 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.8348, allocations: 39.92 kB / 0.6321 GB, free: 7.969 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.8349, allocations: 4 kB / 0.6321 GB, free: 7.965 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004445/0.8393, allocations: 1.294 MB / 0.6333 GB, free: 6.621 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-05/0.8394, allocations: 4 kB / 0.6333 GB, free: 6.617 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002831/0.8422, allocations: 470.5 kB / 0.6338 GB, free: 6.148 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.8433, allocations: 135.8 kB / 0.6339 GB, free: 6.016 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3316/1.175, allocations: 7.413 MB / 0.6412 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007903/1.176, allocations: 40.88 kB / 0.6412 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.788e-05/1.176, allocations: 36.47 kB / 0.6412 GB, free: 128.6 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: 34 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 65 * 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.0002814/1.176, allocations: 151.8 kB / 0.6414 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002699/1.177, allocations: 80.23 kB / 0.6415 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00225/1.179, allocations: 0.8222 MB / 0.6423 GB, free: 128.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.369e-05/1.179, allocations: 11.31 kB / 0.6423 GB, free: 128.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/1.179, allocations: 1.344 kB / 0.6423 GB, free: 128.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/1.179, allocations: 4.938 kB / 0.6423 GB, free: 128.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004324/1.183, allocations: 1.825 MB / 0.6441 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/1.183, allocations: 2 kB / 0.6441 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001372/1.185, allocations: 133.3 kB / 0.6442 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002606/1.185, allocations: 56.67 kB / 0.6442 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.246e-05/1.185, allocations: 17.19 kB / 0.6443 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002126/1.187, allocations: 2.753 MB / 0.6469 GB, free: 125.3 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/1.187, allocations: 3.469 kB / 0.647 GB, free: 125.3 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002823/1.19, allocations: 1.322 MB / 0.6482 GB, free: 124.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004893/1.191, allocations: 206.3 kB / 0.6484 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001579/1.191, allocations: 16.81 kB / 0.6485 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007189/1.191, allocations: 37.55 kB / 0.6485 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/1.192, allocations: 45.94 kB / 0.6485 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.491e-05/1.192, allocations: 18.44 kB / 0.6486 GB, free: 124.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008677/1.193, allocations: 454.5 kB / 0.649 GB, free: 124.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.193, allocations: 0 / 0.649 GB, free: 124.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002047/1.195, allocations: 380.5 kB / 0.6493 GB, free: 124.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 1 (system.initime) * Number of discrete 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.0003492/1.195, allocations: 165 kB / 0.6495 GB, free: 124.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005303/1.2, allocations: 1.932 MB / 0.6514 GB, free: 124 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/1.2, allocations: 0.9375 kB / 0.6514 GB, free: 124 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001187/1.202, allocations: 0.535 MB / 0.6519 GB, free: 123.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001706/1.203, allocations: 203.4 kB / 0.6521 GB, free: 123.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004706/1.208, allocations: 1.713 MB / 0.6538 GB, free: 123.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009837/1.209, allocations: 1.124 MB / 0.6549 GB, free: 122.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004081/1.21, allocations: 60.95 kB / 0.6549 GB, free: 122.6 MB / 474.7 MB Notification: Performance of SimCode: time 1.102e-06/1.21, allocations: 0 / 0.6549 GB, free: 122.6 MB / 474.7 MB Notification: Performance of Templates: time 0.041/1.251, allocations: 21.37 MB / 0.6758 GB, free: 121.9 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)