Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.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.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001988/0.001987, allocations: 179.9 kB / 17.4 MB, free: 4.293 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.499/1.499, allocations: 194.5 MB / 212.6 MB, free: 2.938 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.001608/0.001608, allocations: 122.8 kB / 257.9 MB, free: 4.25 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1962/0.1962, allocations: 38 MB / 341.1 MB, free: 1.188 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003825/0.0003823, allocations: 12 kB / 405 MB, free: 68.5 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09033/0.09073, allocations: 53.24 MB / 458.3 MB, free: 15.25 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2993/0.39, allocations: 95.34 MB / 0.5406 GB, free: 15.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.3903, allocations: 92.77 kB / 0.5407 GB, free: 15.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03202/0.4223, allocations: 12.22 MB / 0.5526 GB, free: 5.156 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.4224, allocations: 0 / 0.5526 GB, free: 5.156 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.697e-05/0.4224, allocations: 8 kB / 0.5526 GB, free: 5.148 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001173/0.4236, allocations: 0.6894 MB / 0.5533 GB, free: 4.441 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.4236, allocations: 12.03 kB / 0.5533 GB, free: 4.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005065/0.4241, allocations: 80.33 kB / 0.5534 GB, free: 4.352 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009972/0.4252, allocations: 0.5381 MB / 0.5539 GB, free: 3.848 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.951e-05/0.4252, allocations: 30.81 kB / 0.554 GB, free: 3.832 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.173e-05/0.4253, allocations: 40.3 kB / 0.554 GB, free: 3.805 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007476/0.426, allocations: 0.6107 MB / 0.5546 GB, free: 3.273 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.4261, allocations: 7.938 kB / 0.5546 GB, free: 3.266 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.663e-05/0.4261, allocations: 20.88 kB / 0.5546 GB, free: 3.258 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.911e-05/0.4262, allocations: 28.92 kB / 0.5547 GB, free: 3.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006312/0.4268, allocations: 445.2 kB / 0.5551 GB, free: 2.918 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002988/0.4298, allocations: 2.872 MB / 0.5579 GB, free: 200 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003104/0.4301, allocations: 218.2 kB / 0.5581 GB, free: 16 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002282/0.4304, allocations: 153.4 kB / 0.5582 GB, free: 15.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.156e-05/0.4304, allocations: 11.92 kB / 0.5582 GB, free: 15.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.322e-05/0.4305, allocations: 41.69 kB / 0.5583 GB, free: 15.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 3.126e-06/0.4305, allocations: 0 / 0.5583 GB, free: 15.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.001481/0.432, allocations: 0.9659 MB / 0.5592 GB, free: 15.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.985e-05/0.432, allocations: 89.17 kB / 0.5593 GB, free: 14.92 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003198/0.4324, allocations: 317.6 kB / 0.5596 GB, free: 14.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.76e-05/0.4324, allocations: 35.39 kB / 0.5597 GB, free: 14.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001648/0.4326, allocations: 266.1 kB / 0.5599 GB, free: 14.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.4327, allocations: 109.7 kB / 0.56 GB, free: 14.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.225e-05/0.4327, allocations: 6.812 kB / 0.56 GB, free: 14.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.4329, allocations: 349.2 kB / 0.5603 GB, free: 13.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000233/0.4331, allocations: 142.5 kB / 0.5605 GB, free: 13.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000375/0.4335, allocations: 349.8 kB / 0.5608 GB, free: 13.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006456/0.4341, allocations: 0.5316 MB / 0.5613 GB, free: 12.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.4341, allocations: 0 / 0.5613 GB, free: 12.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008171/0.435, allocations: 0.5279 MB / 0.5619 GB, free: 12.56 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.435, allocations: 11.98 kB / 0.5619 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.435, allocations: 8 kB / 0.5619 GB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.435, allocations: 8 kB / 0.5619 GB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003845/0.4354, allocations: 115.5 kB / 0.562 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/0.4355, allocations: 11.94 kB / 0.562 GB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002259/0.4357, allocations: 30.11 kB / 0.562 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.868e-05/0.4357, allocations: 23.19 kB / 0.5621 GB, free: 12.37 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (57): * Single equations (assignments): 56 * Array equations: 1 * 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.0002186/0.436, allocations: 217.3 kB / 0.5623 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.684e-05/0.436, allocations: 35.56 kB / 0.5623 GB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005371/0.4366, allocations: 353.8 kB / 0.5626 GB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.767e-05/0.4366, allocations: 8 kB / 0.5626 GB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.4366, allocations: 8 kB / 0.5626 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.4366, allocations: 3.984 kB / 0.5627 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001254/0.4379, allocations: 0.8724 MB / 0.5635 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4379, allocations: 0 / 0.5635 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002881/0.4382, allocations: 67.45 kB / 0.5636 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.4382, allocations: 0 / 0.5636 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.405e-05/0.4382, allocations: 11.22 kB / 0.5636 GB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.4383, allocations: 11.98 kB / 0.5636 GB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.4383, allocations: 0 / 0.5636 GB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006968/0.439, allocations: 0.585 MB / 0.5642 GB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.346e-05/0.4391, allocations: 120 kB / 0.5643 GB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.159e-05/0.4391, allocations: 3.375 kB / 0.5643 GB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/0.4393, allocations: 15.48 kB / 0.5643 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.087e-05/0.4394, allocations: 23.22 kB / 0.5643 GB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.4394, allocations: 8 kB / 0.5643 GB, free: 10.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002058/0.4396, allocations: 221.5 kB / 0.5645 GB, free: 10.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4396, allocations: 0 / 0.5645 GB, free: 10.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004461/0.4401, allocations: 106 kB / 0.5646 GB, free: 10.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (29): * Single equations (assignments): 27 * Array equations: 1 * 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.0001619/0.4402, allocations: 120.2 kB / 0.5647 GB, free: 9.992 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005273/0.4408, allocations: 367.2 kB / 0.5651 GB, free: 9.719 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4408, allocations: 3.938 kB / 0.5651 GB, free: 9.715 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001922/0.441, allocations: 154.6 kB / 0.5653 GB, free: 9.605 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004741/0.4414, allocations: 56.31 kB / 0.5653 GB, free: 9.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/0.4431, allocations: 1.22 MB / 0.5665 GB, free: 8.395 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004513/0.4435, allocations: 0.8633 MB / 0.5673 GB, free: 7.516 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003383/0.4439, allocations: 119.2 kB / 0.5675 GB, free: 7.398 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.443e-05/0.444, allocations: 33.69 kB / 0.5675 GB, free: 7.367 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.444, allocations: 0 / 0.5675 GB, free: 7.367 MB / 378.7 MB Notification: Performance of Templates: time 0.006651/0.4506, allocations: 2.991 MB / 0.5704 GB, free: 4.387 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & ./PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)