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.001498/0.001502, allocations: 181.8 kB / 15.76 MB, free: 6.344 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.045/2.045, allocations: 205.4 MB / 221.9 MB, free: 13.61 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.001124/0.001123, allocations: 98.73 kB / 270.2 MB, free: 13.14 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3035/0.3035, allocations: 38.06 MB / 356.6 MB, free: 0.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004488/0.0004488, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.111, allocations: 56.33 MB / 479 MB, free: 2.027 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5209/0.6319, allocations: 118.2 MB / 0.5832 GB, free: 13.88 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003467/0.6324, allocations: 102.8 kB / 0.5833 GB, free: 13.82 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.133/0.7654, allocations: 31.3 MB / 0.6139 GB, free: 3.234 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.7655, allocations: 0 / 0.6139 GB, free: 3.234 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.788e-05/0.7656, allocations: 28 kB / 0.6139 GB, free: 3.207 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.003932/0.7695, allocations: 1.274 MB / 0.6152 GB, free: 1.949 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.7696, allocations: 8.031 kB / 0.6152 GB, free: 1.941 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007635/0.7704, allocations: 134.6 kB / 0.6153 GB, free: 1.809 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003472/0.7738, allocations: 1.001 MB / 0.6163 GB, free: 0.9844 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.998e-05/0.774, allocations: 59.19 kB / 0.6163 GB, free: 0.9531 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003092/0.7743, allocations: 109 kB / 0.6165 GB, free: 0.875 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002835/0.7771, allocations: 1.155 MB / 0.6176 GB, free: 15.99 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.953e-05/0.7772, allocations: 3.188 kB / 0.6176 GB, free: 15.99 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001367/0.7774, allocations: 32.31 kB / 0.6176 GB, free: 15.98 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001726/0.7776, allocations: 68.86 kB / 0.6177 GB, free: 15.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002586/0.7802, allocations: 0.9323 MB / 0.6186 GB, free: 15.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009384/0.7896, allocations: 4.648 MB / 0.6231 GB, free: 11.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001712/0.7913, allocations: 0.6073 MB / 0.6237 GB, free: 10.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.938e-05/0.7914, allocations: 13.08 kB / 0.6237 GB, free: 10.83 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.123e-05/0.7915, allocations: 46.94 kB / 0.6238 GB, free: 10.78 MB / 426.7 MB Notification: Performance of pre-optimization done (n=58): time 3.557e-06/0.7915, allocations: 0 / 0.6238 GB, free: 10.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=62): time 0.008078/0.7996, allocations: 2.567 MB / 0.6263 GB, free: 8.594 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.16e-05/0.7997, allocations: 144.1 kB / 0.6264 GB, free: 8.426 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001111/0.8008, allocations: 0.5769 MB / 0.627 GB, free: 7.973 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.739e-05/0.8009, allocations: 40.58 kB / 0.627 GB, free: 7.938 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003937/0.8013, allocations: 0.4964 MB / 0.6275 GB, free: 7.555 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002548/0.8016, allocations: 222.6 kB / 0.6277 GB, free: 7.363 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.696e-05/0.8017, allocations: 15.62 kB / 0.6277 GB, free: 7.359 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.8019, allocations: 340.6 kB / 0.6281 GB, free: 7.031 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008517/0.8027, allocations: 274.1 kB / 0.6283 GB, free: 6.852 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.8038, allocations: 0.5216 MB / 0.6288 GB, free: 6.219 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004482/0.8083, allocations: 0.8186 MB / 0.6296 GB, free: 5.387 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.8083, allocations: 7.938 kB / 0.6296 GB, free: 5.379 MB / 426.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004953/0.8133, allocations: 1.44 MB / 0.631 GB, free: 3.879 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001251/0.8145, allocations: 2.964 MB / 0.6339 GB, free: 0.6875 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.543e-05/0.8146, allocations: 11.95 kB / 0.634 GB, free: 0.6758 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003068/0.8177, allocations: 0.4898 MB / 0.6344 GB, free: 184 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/0.8187, allocations: 135.8 kB / 0.6346 GB, free: 48 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005797/0.8246, allocations: 4.046 MB / 0.6385 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.8257, allocations: 47.88 kB / 0.6386 GB, free: 11.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-05/0.8258, allocations: 28.22 kB / 0.6386 GB, free: 11.63 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.8258, allocations: 8 kB / 0.6386 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004549/0.8304, allocations: 1.314 MB / 0.6399 GB, free: 10.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.837e-05/0.8305, allocations: 4 kB / 0.6399 GB, free: 10.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00272/0.8332, allocations: 450.4 kB / 0.6403 GB, free: 9.805 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.8343, allocations: 139.8 kB / 0.6404 GB, free: 9.668 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01473/0.8491, allocations: 7.538 MB / 0.6478 GB, free: 1.707 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007691/0.8499, allocations: 39.86 kB / 0.6478 GB, free: 1.668 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.85, allocations: 36 kB / 0.6479 GB, free: 1.633 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: 34 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 66 * 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%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {4 24} Notification: Performance of prepare postOptimizeDAE: time 0.000927/0.851, allocations: 397 kB / 0.6483 GB, free: 1.234 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002652/0.8512, allocations: 82.97 kB / 0.6483 GB, free: 1.152 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002356/0.8536, allocations: 0.8455 MB / 0.6492 GB, free: 280 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.404e-05/0.8537, allocations: 8 kB / 0.6492 GB, free: 272 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.8537, allocations: 4 kB / 0.6492 GB, free: 268 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.8537, allocations: 3.984 kB / 0.6492 GB, free: 264 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004768/0.8585, allocations: 1.853 MB / 0.651 GB, free: 14.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.924e-06/0.8585, allocations: 0 / 0.651 GB, free: 14.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00136/0.8599, allocations: 143.7 kB / 0.6511 GB, free: 14.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002094/0.8601, allocations: 41.7 kB / 0.6512 GB, free: 14.12 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.771e-05/0.8602, allocations: 12 kB / 0.6512 GB, free: 14.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002525/0.8628, allocations: 2.673 MB / 0.6538 GB, free: 11.17 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.8628, allocations: 7.922 kB / 0.6538 GB, free: 11.16 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003316/0.8661, allocations: 1.378 MB / 0.6551 GB, free: 9.703 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005288/0.8667, allocations: 208.1 kB / 0.6553 GB, free: 9.48 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.8669, allocations: 16 kB / 0.6553 GB, free: 9.465 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007148/0.8676, allocations: 31.97 kB / 0.6554 GB, free: 9.434 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/0.8678, allocations: 44.44 kB / 0.6554 GB, free: 9.391 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.946e-05/0.8678, allocations: 19.95 kB / 0.6554 GB, free: 9.371 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009292/0.8688, allocations: 467 kB / 0.6559 GB, free: 8.922 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.8688, allocations: 0 / 0.6559 GB, free: 8.922 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00219/0.871, allocations: 372 kB / 0.6562 GB, free: 8.559 MB / 458.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 62 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004171/0.8715, allocations: 170.1 kB / 0.6564 GB, free: 8.387 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005824/0.8773, allocations: 1.987 MB / 0.6583 GB, free: 6.328 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/0.8774, allocations: 4.188 kB / 0.6583 GB, free: 6.324 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001337/0.8787, allocations: 0.5589 MB / 0.6589 GB, free: 5.742 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001687/0.8804, allocations: 199 kB / 0.6591 GB, free: 5.547 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005948/0.8864, allocations: 2.638 MB / 0.6617 GB, free: 2.859 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/0.8875, allocations: 1.119 MB / 0.6628 GB, free: 1.711 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004057/0.8879, allocations: 59.42 kB / 0.6628 GB, free: 1.652 MB / 458.7 MB Notification: Performance of SimCode: time 8.71e-07/0.8879, allocations: 7.938 kB / 0.6628 GB, free: 1.645 MB / 458.7 MB Notification: Performance of Templates: time 0.04211/0.93, allocations: 21.39 MB / 0.6837 GB, free: 12.24 MB / 490.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)