Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009982/0.0009983, allocations: 182.7 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.503/1.503, allocations: 194.3 MB / 208.4 MB, free: 6.707 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001622/0.001622, allocations: 112.7 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1536/0.1536, allocations: 37.91 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.506e-05/3.523e-05, allocations: 0 / 397.5 MB, free: 1.043 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.2987, allocations: 53.21 MB / 450.8 MB, free: 13.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3326/0.6313, allocations: 94.26 MB / 0.5322 GB, free: 87.77 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002923/0.6317, allocations: 89.69 kB / 0.5323 GB, free: 87.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03031/0.662, allocations: 11.38 MB / 0.5434 GB, free: 84.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.6621, allocations: 0 / 0.5434 GB, free: 84.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.461e-05/0.6621, allocations: 7.438 kB / 0.5434 GB, free: 84.5 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.0009025/0.663, allocations: 0.6266 MB / 0.5441 GB, free: 83.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.663, allocations: 7.812 kB / 0.5441 GB, free: 83.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.971e-05/0.6631, allocations: 46.34 kB / 0.5441 GB, free: 83.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009892/0.6641, allocations: 0.55 MB / 0.5446 GB, free: 83.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.43e-05/0.6642, allocations: 65.77 kB / 0.5447 GB, free: 83.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.624e-05/0.6643, allocations: 35.22 kB / 0.5447 GB, free: 83.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005481/0.6649, allocations: 421.8 kB / 0.5451 GB, free: 83.13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.6649, allocations: 3.953 kB / 0.5452 GB, free: 83.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.532e-05/0.6649, allocations: 15.94 kB / 0.5452 GB, free: 83.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.6649, allocations: 11.88 kB / 0.5452 GB, free: 83.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003961/0.6653, allocations: 248.4 kB / 0.5454 GB, free: 83.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001743/0.6671, allocations: 1.867 MB / 0.5472 GB, free: 81.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002057/0.6673, allocations: 173.3 kB / 0.5474 GB, free: 81.21 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.234e-05/0.6674, allocations: 77.66 kB / 0.5475 GB, free: 81.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.6675, allocations: 0 / 0.5475 GB, free: 81.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.6675, allocations: 46.36 kB / 0.5475 GB, free: 81.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=18): time 1.253e-06/0.6675, allocations: 0 / 0.5475 GB, free: 81.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=20): time 0.001076/0.6686, allocations: 0.8326 MB / 0.5483 GB, free: 80.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.329e-05/0.6686, allocations: 106.8 kB / 0.5484 GB, free: 80.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002249/0.6689, allocations: 278.6 kB / 0.5487 GB, free: 79.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.6689, allocations: 29.7 kB / 0.5487 GB, free: 79.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.3e-05/0.669, allocations: 251.6 kB / 0.549 GB, free: 79.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.059e-05/0.669, allocations: 70.91 kB / 0.549 GB, free: 79.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.234e-05/0.669, allocations: 8 kB / 0.549 GB, free: 79.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.096e-05/0.6691, allocations: 338.8 kB / 0.5494 GB, free: 79.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.6692, allocations: 71.98 kB / 0.5494 GB, free: 79.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.6694, allocations: 204 kB / 0.5496 GB, free: 78.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000136/0.6695, allocations: 104.8 kB / 0.5497 GB, free: 78.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.6695, allocations: 7.938 kB / 0.5497 GB, free: 78.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003668/0.6699, allocations: 321.3 kB / 0.55 GB, free: 78.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.6699, allocations: 8 kB / 0.5501 GB, free: 78.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.6699, allocations: 4 kB / 0.5501 GB, free: 78.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.6699, allocations: 4 kB / 0.5501 GB, free: 78.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002808/0.6702, allocations: 83.84 kB / 0.5501 GB, free: 78.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.6703, allocations: 7.984 kB / 0.5502 GB, free: 78.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/0.6704, allocations: 16 kB / 0.5502 GB, free: 78.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/0.6706, allocations: 20.16 kB / 0.5502 GB, free: 78.24 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001512/0.6708, allocations: 128.8 kB / 0.5503 GB, free: 78.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001802/0.671, allocations: 31.62 kB / 0.5503 GB, free: 78.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006325/0.6717, allocations: 192.5 kB / 0.5505 GB, free: 77.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.6717, allocations: 4 kB / 0.5505 GB, free: 77.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.6717, allocations: 0 / 0.5505 GB, free: 77.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.6717, allocations: 3.984 kB / 0.5505 GB, free: 77.87 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001493/0.6732, allocations: 0.6294 MB / 0.5511 GB, free: 77.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.6733, allocations: 0 / 0.5511 GB, free: 77.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005222/0.6738, allocations: 55.84 kB / 0.5512 GB, free: 77.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.846e-06/0.6738, allocations: 0 / 0.5512 GB, free: 77.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.18e-05/0.6739, allocations: 8 kB / 0.5512 GB, free: 77.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.6739, allocations: 0 / 0.5512 GB, free: 77.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.676e-06/0.6739, allocations: 4 kB / 0.5512 GB, free: 77.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007667/0.6747, allocations: 477.3 kB / 0.5517 GB, free: 76.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.6748, allocations: 104.8 kB / 0.5518 GB, free: 76.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.442e-05/0.6749, allocations: 11.95 kB / 0.5518 GB, free: 76.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003726/0.6753, allocations: 12 kB / 0.5518 GB, free: 76.47 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.014e-05/0.6754, allocations: 15.97 kB / 0.5518 GB, free: 76.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.6754, allocations: 12 kB / 0.5518 GB, free: 76.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002821/0.6757, allocations: 210.2 kB / 0.552 GB, free: 76.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6757, allocations: 0 / 0.552 GB, free: 76.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007797/0.6765, allocations: 84 kB / 0.5521 GB, free: 76.15 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.motor.phi_el,machine.motor.w_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002263/0.6767, allocations: 123 kB / 0.5522 GB, free: 76.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004753/0.6772, allocations: 204.6 kB / 0.5524 GB, free: 75.83 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.6773, allocations: 0 / 0.5524 GB, free: 75.83 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.6774, allocations: 75.88 kB / 0.5525 GB, free: 75.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008049/0.6783, allocations: 91.05 kB / 0.5526 GB, free: 75.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/0.6801, allocations: 0.6743 MB / 0.5532 GB, free: 74.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/0.6804, allocations: 0.8265 MB / 0.554 GB, free: 74.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003432/0.6808, allocations: 51.25 kB / 0.5541 GB, free: 74.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.833e-05/0.6809, allocations: 31.44 kB / 0.5541 GB, free: 74.02 MB / 378.7 MB Notification: Performance of SimCode: time 1.704e-06/0.6809, allocations: 4 kB / 0.5541 GB, free: 74.02 MB / 378.7 MB Notification: Performance of Templates: time 0.009924/0.6908, allocations: 3.495 MB / 0.5575 GB, free: 70.55 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)