Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00101/0.00101, allocations: 173.5 kB / 16.76 MB, free: 4.93 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.362/1.362, allocations: 205.4 MB / 222.9 MB, free: 8.93 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.0008997/0.0008997, allocations: 90.34 kB / 271.3 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2155/0.2155, allocations: 38.07 MB / 357.6 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003465/0.0003466, allocations: 12 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2433, allocations: 56.32 MB / 480.3 MB, free: 9.203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.115/0.3583, allocations: 102 MB / 0.5687 GB, free: 324 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.3586, allocations: 91.95 kB / 0.5687 GB, free: 232 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04674/0.4053, allocations: 19.41 MB / 0.5877 GB, free: 12.65 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4054, allocations: 0 / 0.5877 GB, free: 12.65 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.586e-05/0.4054, allocations: 16 kB / 0.5877 GB, free: 12.63 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001744/0.4072, allocations: 0.9475 MB / 0.5886 GB, free: 11.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.4072, allocations: 12.03 kB / 0.5886 GB, free: 11.61 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008911/0.4081, allocations: 160 kB / 0.5888 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008982/0.409, allocations: 0.5452 MB / 0.5893 GB, free: 10.87 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.474e-05/0.4091, allocations: 33.38 kB / 0.5894 GB, free: 10.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.797e-05/0.4092, allocations: 60.22 kB / 0.5894 GB, free: 10.78 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.4104, allocations: 0.6831 MB / 0.5901 GB, free: 10.06 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.4104, allocations: 192 / 0.5901 GB, free: 10.06 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.487e-05/0.4105, allocations: 23.94 kB / 0.5901 GB, free: 10.04 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.105e-05/0.4105, allocations: 28.98 kB / 0.5901 GB, free: 10.01 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/0.4118, allocations: 0.6206 MB / 0.5907 GB, free: 9.387 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003671/0.4155, allocations: 2.755 MB / 0.5934 GB, free: 6.488 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.4167, allocations: 0.6286 MB / 0.594 GB, free: 5.824 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004555/0.4172, allocations: 222.2 kB / 0.5943 GB, free: 5.602 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.935e-05/0.4173, allocations: 12.31 kB / 0.5943 GB, free: 5.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005928/0.4179, allocations: 315.6 kB / 0.5946 GB, free: 5.262 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 2.745e-06/0.4179, allocations: 0 / 0.5946 GB, free: 5.262 MB / 426.7 MB Notification: Performance of matching and sorting (n=41): time 0.001746/0.4196, allocations: 0.78 MB / 0.5953 GB, free: 4.453 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.495e-05/0.4197, allocations: 144.7 kB / 0.5955 GB, free: 4.281 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006799/0.4204, allocations: 0.4941 MB / 0.596 GB, free: 3.777 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.032e-05/0.4205, allocations: 33.7 kB / 0.596 GB, free: 3.738 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002181/0.4207, allocations: 304.1 kB / 0.5963 GB, free: 3.434 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.4208, allocations: 141.9 kB / 0.5964 GB, free: 3.293 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.4208, allocations: 12 kB / 0.5964 GB, free: 3.281 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.421, allocations: 370.8 kB / 0.5968 GB, free: 2.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004542/0.4214, allocations: 197 kB / 0.597 GB, free: 2.719 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005429/0.422, allocations: 323.2 kB / 0.5973 GB, free: 2.352 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009479/0.423, allocations: 0.5372 MB / 0.5978 GB, free: 1.762 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.423, allocations: 3.938 kB / 0.5978 GB, free: 1.758 MB / 426.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001698/0.4247, allocations: 0.8114 MB / 0.5986 GB, free: 0.9297 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001325/0.4248, allocations: 222.8 kB / 0.5988 GB, free: 0.6562 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.4248, allocations: 8 kB / 0.5988 GB, free: 0.6484 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005187/0.4254, allocations: 156.8 kB / 0.599 GB, free: 0.4922 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003647/0.4257, allocations: 99.88 kB / 0.5991 GB, free: 404 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003064/0.4288, allocations: 2.474 MB / 0.6015 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004761/0.4293, allocations: 91.38 kB / 0.6016 GB, free: 13.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.653e-05/0.4294, allocations: 16 kB / 0.6016 GB, free: 13.69 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.542e-06/0.4294, allocations: 4 kB / 0.6016 GB, free: 13.68 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001333/0.4307, allocations: 0.6389 MB / 0.6022 GB, free: 13.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.4307, allocations: 4 kB / 0.6022 GB, free: 13.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003449/0.4311, allocations: 137 kB / 0.6023 GB, free: 12.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003462/0.4314, allocations: 91.88 kB / 0.6024 GB, free: 12.81 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002294/0.4337, allocations: 2.233 MB / 0.6046 GB, free: 10.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004945/0.4342, allocations: 79.55 kB / 0.6047 GB, free: 10.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.4343, allocations: 20 kB / 0.6047 GB, free: 10.34 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0003782/0.4347, allocations: 292.7 kB / 0.605 GB, free: 10.05 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.379e-05/0.4348, allocations: 55.34 kB / 0.605 GB, free: 9.992 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00113/0.4359, allocations: 0.5265 MB / 0.6055 GB, free: 9.453 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.443e-06/0.4359, allocations: 8 kB / 0.6056 GB, free: 9.445 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.4359, allocations: 3.938 kB / 0.6056 GB, free: 9.441 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.4359, allocations: 3.984 kB / 0.6056 GB, free: 9.438 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001787/0.4377, allocations: 1.175 MB / 0.6067 GB, free: 8.203 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.4377, allocations: 4 kB / 0.6067 GB, free: 8.199 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00046/0.4382, allocations: 95.88 kB / 0.6068 GB, free: 8.105 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001015/0.4383, allocations: 36.78 kB / 0.6068 GB, free: 8.066 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.53e-05/0.4384, allocations: 11.98 kB / 0.6069 GB, free: 8.055 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000905/0.4393, allocations: 1.347 MB / 0.6082 GB, free: 6.57 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.4393, allocations: 7.969 kB / 0.6082 GB, free: 6.562 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001562/0.4409, allocations: 0.8727 MB / 0.609 GB, free: 5.664 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001869/0.4411, allocations: 176.3 kB / 0.6092 GB, free: 5.473 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.451e-05/0.4411, allocations: 15.94 kB / 0.6092 GB, free: 5.457 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003876/0.4415, allocations: 51.95 kB / 0.6093 GB, free: 5.406 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.372e-05/0.4416, allocations: 35.88 kB / 0.6093 GB, free: 5.371 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.007e-05/0.4417, allocations: 23.94 kB / 0.6093 GB, free: 5.348 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005267/0.4422, allocations: 354.8 kB / 0.6097 GB, free: 5.004 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4422, allocations: 0 / 0.6097 GB, free: 5.004 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008631/0.4431, allocations: 267.4 kB / 0.6099 GB, free: 4.742 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001657/0.4433, allocations: 123.1 kB / 0.61 GB, free: 4.613 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002023/0.4453, allocations: 1.149 MB / 0.6112 GB, free: 3.414 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4453, allocations: 0 / 0.6112 GB, free: 3.414 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006392/0.446, allocations: 354.9 kB / 0.6115 GB, free: 3.055 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000706/0.4467, allocations: 107 kB / 0.6116 GB, free: 2.953 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002159/0.4488, allocations: 1.52 MB / 0.6131 GB, free: 1.387 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004693/0.4493, allocations: 0.8984 MB / 0.614 GB, free: 472 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.4495, allocations: 39.44 kB / 0.614 GB, free: 432 kB / 442.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4495, allocations: 0 / 0.614 GB, free: 432 kB / 442.7 MB Notification: Performance of Templates: time 0.01194/0.4614, allocations: 9.565 MB / 0.6233 GB, free: 6.852 MB / 458.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)