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.001347/0.001347, allocations: 179.8 kB / 17.4 MB, free: 4.301 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.45/1.45, allocations: 194.5 MB / 212.6 MB, free: 2.949 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.001631/0.001631, allocations: 105.2 kB / 257.9 MB, free: 4.27 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1818/0.1818, allocations: 38.01 MB / 341.1 MB, free: 1.207 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003699/0.0003701, allocations: 11.98 kB / 405 MB, free: 68.5 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1017, allocations: 53.23 MB / 458.3 MB, free: 15.25 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3818/0.4835, allocations: 94.38 MB / 0.5397 GB, free: 496 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/0.4838, allocations: 100.5 kB / 0.5398 GB, free: 444 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02878/0.5126, allocations: 11.35 MB / 0.5509 GB, free: 6.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5127, allocations: 0 / 0.5509 GB, free: 6.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.544e-05/0.5127, allocations: 12 kB / 0.5509 GB, free: 6.758 MB / 362.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.0011/0.5138, allocations: 0.666 MB / 0.5515 GB, free: 6.066 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.5138, allocations: 15.95 kB / 0.5516 GB, free: 6.051 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.514, allocations: 44.47 kB / 0.5516 GB, free: 6.008 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008512/0.5148, allocations: 467.7 kB / 0.552 GB, free: 5.574 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.031e-05/0.5149, allocations: 57.39 kB / 0.5521 GB, free: 5.527 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.163e-05/0.515, allocations: 42.92 kB / 0.5521 GB, free: 5.496 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006674/0.5157, allocations: 438 kB / 0.5526 GB, free: 5.133 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.5157, allocations: 3.938 kB / 0.5526 GB, free: 5.129 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.346e-05/0.5157, allocations: 18.48 kB / 0.5526 GB, free: 5.121 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.5158, allocations: 12 kB / 0.5526 GB, free: 5.109 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004719/0.5162, allocations: 270.8 kB / 0.5528 GB, free: 4.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002099/0.5184, allocations: 1.867 MB / 0.5547 GB, free: 3.203 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003122/0.5187, allocations: 185.4 kB / 0.5548 GB, free: 3.035 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001315/0.5188, allocations: 80.09 kB / 0.5549 GB, free: 2.973 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.5189, allocations: 4 kB / 0.5549 GB, free: 2.969 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.53e-05/0.5189, allocations: 41.88 kB / 0.555 GB, free: 2.922 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 2.284e-06/0.5189, allocations: 0 / 0.555 GB, free: 2.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.001473/0.5204, allocations: 0.9426 MB / 0.5559 GB, free: 2.027 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.382e-05/0.5205, allocations: 107.1 kB / 0.556 GB, free: 1.898 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002813/0.5207, allocations: 309 kB / 0.5563 GB, free: 1.648 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.5208, allocations: 29.52 kB / 0.5563 GB, free: 1.617 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.5209, allocations: 242.9 kB / 0.5565 GB, free: 1.426 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.728e-05/0.521, allocations: 67.98 kB / 0.5566 GB, free: 1.367 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.183e-05/0.521, allocations: 10.25 kB / 0.5566 GB, free: 1.363 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.5211, allocations: 351.5 kB / 0.557 GB, free: 1.023 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.5213, allocations: 76.89 kB / 0.557 GB, free: 0.9727 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002127/0.5215, allocations: 209 kB / 0.5572 GB, free: 0.7422 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003797/0.5219, allocations: 302.8 kB / 0.5575 GB, free: 468 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.5219, allocations: 0 / 0.5575 GB, free: 468 kB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005141/0.5224, allocations: 345.5 kB / 0.5578 GB, free: 192 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.5225, allocations: 4 kB / 0.5578 GB, free: 188 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.5225, allocations: 8.5 kB / 0.5579 GB, free: 180 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.5225, allocations: 12 kB / 0.5579 GB, free: 168 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002852/0.5228, allocations: 75.89 kB / 0.5579 GB, free: 92 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.561e-05/0.5228, allocations: 15.92 kB / 0.558 GB, free: 76 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000179/0.523, allocations: 18.81 kB / 0.558 GB, free: 64 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.58e-05/0.523, allocations: 22.23 kB / 0.558 GB, free: 44 kB / 362.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 () * Number of clocked 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.000219/0.5233, allocations: 174.3 kB / 0.5582 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.195e-05/0.5233, allocations: 31.62 kB / 0.5582 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000428/0.5238, allocations: 211.2 kB / 0.5584 GB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.5238, allocations: 7.938 kB / 0.5584 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-05/0.5238, allocations: 3.938 kB / 0.5584 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.5238, allocations: 4 kB / 0.5584 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009994/0.5248, allocations: 0.6444 MB / 0.559 GB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.5248, allocations: 4 kB / 0.559 GB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002402/0.5251, allocations: 49.16 kB / 0.5591 GB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.5251, allocations: 0 / 0.5591 GB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.5251, allocations: 7.125 kB / 0.5591 GB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.5251, allocations: 3.938 kB / 0.5591 GB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.5252, allocations: 4 kB / 0.5591 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006016/0.5258, allocations: 467.6 kB / 0.5595 GB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.856e-05/0.5259, allocations: 105.7 kB / 0.5596 GB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.015e-05/0.5259, allocations: 10.94 kB / 0.5597 GB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/0.5261, allocations: 7.047 kB / 0.5597 GB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.476e-05/0.5261, allocations: 22.41 kB / 0.5597 GB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.5262, allocations: 4.75 kB / 0.5597 GB, free: 14.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002098/0.5264, allocations: 215.6 kB / 0.5599 GB, free: 14.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5264, allocations: 0 / 0.5599 GB, free: 14.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004171/0.5268, allocations: 79.5 kB / 0.56 GB, free: 14.25 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 () * Number of clocked 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.0001943/0.527, allocations: 123.4 kB / 0.5601 GB, free: 14.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000473/0.5275, allocations: 212.2 kB / 0.5603 GB, free: 13.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5275, allocations: 4 kB / 0.5603 GB, free: 13.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001689/0.5277, allocations: 86.5 kB / 0.5604 GB, free: 13.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006416/0.5283, allocations: 95.64 kB / 0.5605 GB, free: 13.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001553/0.5299, allocations: 1.125 MB / 0.5616 GB, free: 12.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/0.5303, allocations: 0.8133 MB / 0.5624 GB, free: 11.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00021/0.5305, allocations: 51.25 kB / 0.5624 GB, free: 11.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.563e-05/0.5306, allocations: 33.69 kB / 0.5624 GB, free: 11.8 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.5306, allocations: 0 / 0.5624 GB, free: 11.8 MB / 378.7 MB Notification: Performance of Templates: time 0.007141/0.5377, allocations: 3.493 MB / 0.5659 GB, free: 8.32 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)