Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00123/0.00123, allocations: 173 kB / 16.76 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.618/1.618, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007467/0.0007467, allocations: 85.03 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1861/0.1861, allocations: 38.08 MB / 357.6 MB, free: 1.719 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004147/0.0004148, allocations: 15.94 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3807/0.3811, allocations: 56.32 MB / 480.3 MB, free: 9.203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1772/0.5583, allocations: 118.3 MB / 0.5845 GB, free: 56 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003516/0.5587, allocations: 100 kB / 0.5846 GB, free: 15.95 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08647/0.6452, allocations: 31.15 MB / 0.615 GB, free: 488 kB / 442.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.6453, allocations: 0 / 0.615 GB, free: 488 kB / 442.7 MB Notification: Performance of Transformations before backend: time 7.998e-05/0.6454, allocations: 20 kB / 0.615 GB, free: 468 kB / 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.002789/0.6482, allocations: 1.259 MB / 0.6163 GB, free: 15.14 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.6482, allocations: 8.031 kB / 0.6163 GB, free: 15.13 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005116/0.6487, allocations: 139.5 kB / 0.6164 GB, free: 14.99 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001918/0.6507, allocations: 0.9027 MB / 0.6173 GB, free: 14.05 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.422e-05/0.6507, allocations: 70.36 kB / 0.6173 GB, free: 13.98 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000214/0.651, allocations: 88.47 kB / 0.6174 GB, free: 13.89 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002076/0.653, allocations: 1.168 MB / 0.6186 GB, free: 12.66 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.527e-05/0.6531, allocations: 3.938 kB / 0.6186 GB, free: 12.66 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.848e-05/0.6532, allocations: 35.98 kB / 0.6186 GB, free: 12.62 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000128/0.6533, allocations: 65.98 kB / 0.6187 GB, free: 12.55 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001718/0.6551, allocations: 0.9329 MB / 0.6196 GB, free: 11.62 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006885/0.662, allocations: 4.64 MB / 0.6241 GB, free: 6.75 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.6632, allocations: 0.613 MB / 0.6247 GB, free: 6.105 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006747/0.6639, allocations: 392.1 kB / 0.6251 GB, free: 5.715 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.583e-05/0.6639, allocations: 4.562 kB / 0.6251 GB, free: 5.711 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.037e-05/0.664, allocations: 47.06 kB / 0.6251 GB, free: 5.652 MB / 458.7 MB Notification: Performance of pre-optimization done (n=58): time 3.948e-06/0.664, allocations: 0 / 0.6251 GB, free: 5.652 MB / 458.7 MB Notification: Performance of matching and sorting (n=62): time 0.005683/0.6697, allocations: 2.619 MB / 0.6277 GB, free: 2.918 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.6698, allocations: 141.1 kB / 0.6278 GB, free: 2.75 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009645/0.6708, allocations: 0.6567 MB / 0.6285 GB, free: 2.086 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.142e-05/0.6709, allocations: 41.7 kB / 0.6285 GB, free: 2.039 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003915/0.6713, allocations: 486.9 kB / 0.629 GB, free: 1.555 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001997/0.6715, allocations: 216.8 kB / 0.6292 GB, free: 1.34 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.54e-05/0.6715, allocations: 20 kB / 0.6292 GB, free: 1.32 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002212/0.6718, allocations: 390.7 kB / 0.6296 GB, free: 0.9297 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005052/0.6723, allocations: 277.9 kB / 0.6298 GB, free: 0.6562 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007268/0.673, allocations: 0.5274 MB / 0.6304 GB, free: 20 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003775/0.6768, allocations: 1.553 MB / 0.6319 GB, free: 14.35 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.6768, allocations: 8 kB / 0.6319 GB, free: 14.34 MB / 474.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003289/0.6801, allocations: 1.526 MB / 0.6334 GB, free: 12.76 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003847/0.6805, allocations: 315.9 kB / 0.6337 GB, free: 12.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.987e-05/0.6806, allocations: 8 kB / 0.6337 GB, free: 12.33 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001784/0.6824, allocations: 0.4928 MB / 0.6342 GB, free: 11.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005617/0.6829, allocations: 139.7 kB / 0.6343 GB, free: 11.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01105/0.694, allocations: 7.792 MB / 0.6419 GB, free: 3.48 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008368/0.6949, allocations: 47.89 kB / 0.6419 GB, free: 3.434 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.969e-05/0.695, allocations: 35.98 kB / 0.642 GB, free: 3.398 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.695, allocations: 9.812 kB / 0.642 GB, free: 3.391 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002839/0.6978, allocations: 1.333 MB / 0.6433 GB, free: 2.008 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.6979, allocations: 8 kB / 0.6433 GB, free: 2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001521/0.6994, allocations: 458.4 kB / 0.6437 GB, free: 1.543 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004967/0.6999, allocations: 131.8 kB / 0.6439 GB, free: 1.414 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3013/1.001, allocations: 7.477 MB / 0.6512 GB, free: 128.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009454/1.002, allocations: 39.08 kB / 0.6512 GB, free: 128.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.901e-05/1.002, allocations: 35.39 kB / 0.6512 GB, free: 128.2 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 () * Number of clocked 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.0008925/1.003, allocations: 395.8 kB / 0.6516 GB, free: 128 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002006/1.003, allocations: 82.09 kB / 0.6517 GB, free: 128 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/1.005, allocations: 0.8677 MB / 0.6525 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/1.005, allocations: 6.625 kB / 0.6525 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/1.005, allocations: 5.188 kB / 0.6526 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/1.005, allocations: 4.109 kB / 0.6526 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003632/1.009, allocations: 1.877 MB / 0.6544 GB, free: 127.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/1.009, allocations: 1.469 kB / 0.6544 GB, free: 127.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007842/1.01, allocations: 132.2 kB / 0.6545 GB, free: 127.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002387/1.01, allocations: 59.62 kB / 0.6546 GB, free: 127.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.994e-05/1.01, allocations: 17.47 kB / 0.6546 GB, free: 127.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002085/1.012, allocations: 2.761 MB / 0.6573 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/1.012, allocations: 2.172 kB / 0.6573 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002603/1.015, allocations: 1.35 MB / 0.6586 GB, free: 124.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000415/1.015, allocations: 211.2 kB / 0.6588 GB, free: 124.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.74e-05/1.015, allocations: 15.06 kB / 0.6588 GB, free: 124.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000417/1.016, allocations: 29.34 kB / 0.6589 GB, free: 124.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000137/1.016, allocations: 43.25 kB / 0.6589 GB, free: 124.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.86e-05/1.016, allocations: 16.5 kB / 0.6589 GB, free: 124.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0009134/1.017, allocations: 459.5 kB / 0.6593 GB, free: 124.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.7e-07/1.017, allocations: 1.344 kB / 0.6593 GB, free: 124.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002313/1.019, allocations: 405.6 kB / 0.6597 GB, free: 124.2 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 () * 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.0004149/1.02, allocations: 165.4 kB / 0.6599 GB, free: 124.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004645/1.024, allocations: 2.245 MB / 0.6621 GB, free: 123.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/1.024, allocations: 2.156 kB / 0.6621 GB, free: 123.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009598/1.025, allocations: 0.563 MB / 0.6626 GB, free: 123.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001382/1.027, allocations: 217.6 kB / 0.6628 GB, free: 123.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004434/1.031, allocations: 2.636 MB / 0.6654 GB, free: 122.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009661/1.032, allocations: 1.118 MB / 0.6665 GB, free: 121.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002459/1.032, allocations: 59.34 kB / 0.6666 GB, free: 121.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.303e-06/1.032, allocations: 0 / 0.6666 GB, free: 121.3 MB / 474.7 MB Notification: Performance of Templates: time 0.03605/1.068, allocations: 22.73 MB / 0.6888 GB, free: 119.4 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)