Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001093/0.001093, allocations: 179.6 kB / 16.38 MB, free: 5.762 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.203/1.203, allocations: 194.5 MB / 211.6 MB, free: 2.957 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.001588/0.001588, allocations: 123.9 kB / 256.9 MB, free: 4.344 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1608/0.1608, allocations: 38 MB / 340.1 MB, free: 1.336 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003637/0.0003638, allocations: 12 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08672/0.08711, allocations: 53.22 MB / 457.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2915/0.3787, allocations: 95.92 MB / 0.5401 GB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/0.379, allocations: 90.64 kB / 0.5401 GB, free: 15.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04758/0.4266, allocations: 18.54 MB / 0.5583 GB, free: 220 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4267, allocations: 0 / 0.5583 GB, free: 220 kB / 362.7 MB Notification: Performance of Transformations before backend: time 4.846e-05/0.4267, allocations: 16 kB / 0.5583 GB, free: 204 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001912/0.4286, allocations: 0.9275 MB / 0.5592 GB, free: 15.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.4287, allocations: 16 kB / 0.5592 GB, free: 15.24 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001368/0.4288, allocations: 87.83 kB / 0.5593 GB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009471/0.4298, allocations: 155.1 kB / 0.5594 GB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009211/0.4307, allocations: 0.4939 MB / 0.5599 GB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.4308, allocations: 35.56 kB / 0.5599 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.784e-05/0.4309, allocations: 54.3 kB / 0.56 GB, free: 14.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/0.432, allocations: 0.6408 MB / 0.5606 GB, free: 14.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.432, allocations: 0 / 0.5606 GB, free: 14.01 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.836e-05/0.4321, allocations: 22.69 kB / 0.5606 GB, free: 14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.099e-05/0.4321, allocations: 26.42 kB / 0.5607 GB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.4334, allocations: 0.6009 MB / 0.5612 GB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00344/0.4368, allocations: 2.515 MB / 0.5637 GB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001377/0.4382, allocations: 0.6371 MB / 0.5643 GB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.016e-05/0.4383, allocations: 4 kB / 0.5643 GB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005798/0.4389, allocations: 306.5 kB / 0.5646 GB, free: 10.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 3.447e-06/0.4389, allocations: 4.266 kB / 0.5646 GB, free: 10.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.001733/0.4406, allocations: 0.7683 MB / 0.5654 GB, free: 9.977 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.89e-05/0.4407, allocations: 135.6 kB / 0.5655 GB, free: 9.816 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006207/0.4414, allocations: 428.5 kB / 0.5659 GB, free: 9.477 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.295e-05/0.4414, allocations: 35.95 kB / 0.566 GB, free: 9.441 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002183/0.4416, allocations: 291.2 kB / 0.5662 GB, free: 9.238 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.4418, allocations: 132 kB / 0.5664 GB, free: 9.125 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.396e-05/0.4418, allocations: 11.5 kB / 0.5664 GB, free: 9.121 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.442, allocations: 361.5 kB / 0.5667 GB, free: 8.781 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004161/0.4424, allocations: 195.1 kB / 0.5669 GB, free: 8.645 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000469/0.4429, allocations: 306.9 kB / 0.5672 GB, free: 8.363 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004482/0.4433, allocations: 238.5 kB / 0.5674 GB, free: 8.191 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.4433, allocations: 0 / 0.5674 GB, free: 8.191 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001463/0.4448, allocations: 0.7538 MB / 0.5682 GB, free: 7.582 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005171/0.4453, allocations: 1.169 MB / 0.5693 GB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.4453, allocations: 0 / 0.5693 GB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005372/0.4459, allocations: 164 kB / 0.5695 GB, free: 6.211 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003638/0.4463, allocations: 87.45 kB / 0.5695 GB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007587/0.447, allocations: 0.7828 MB / 0.5703 GB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004611/0.4475, allocations: 86.36 kB / 0.5704 GB, free: 5.348 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.473e-05/0.4476, allocations: 15.31 kB / 0.5704 GB, free: 5.336 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.516e-06/0.4476, allocations: 4 kB / 0.5704 GB, free: 5.332 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001136/0.4487, allocations: 0.6026 MB / 0.571 GB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4487, allocations: 4 kB / 0.571 GB, free: 4.879 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002806/0.449, allocations: 113 kB / 0.5711 GB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003482/0.4494, allocations: 87.14 kB / 0.5712 GB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002065/0.4514, allocations: 2.187 MB / 0.5733 GB, free: 2.805 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004634/0.4519, allocations: 78.3 kB / 0.5734 GB, free: 2.734 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.467e-05/0.452, allocations: 19.31 kB / 0.5734 GB, free: 2.719 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 41 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003561/0.4523, allocations: 284.2 kB / 0.5737 GB, free: 2.477 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.908e-05/0.4524, allocations: 51.34 kB / 0.5737 GB, free: 2.426 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00111/0.4536, allocations: 0.5283 MB / 0.5742 GB, free: 2.035 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.4536, allocations: 8 kB / 0.5743 GB, free: 2.027 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.4536, allocations: 0 / 0.5743 GB, free: 2.027 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.4536, allocations: 11.98 kB / 0.5743 GB, free: 2.016 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001699/0.4553, allocations: 1.145 MB / 0.5754 GB, free: 1.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.4553, allocations: 0 / 0.5754 GB, free: 1.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004397/0.4558, allocations: 91.12 kB / 0.5755 GB, free: 1.004 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001015/0.4559, allocations: 32.14 kB / 0.5755 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.497e-05/0.4559, allocations: 14.86 kB / 0.5755 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009288/0.4569, allocations: 1.355 MB / 0.5768 GB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4569, allocations: 4.031 kB / 0.5768 GB, free: 15.56 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001514/0.4584, allocations: 0.8743 MB / 0.5777 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000222/0.4586, allocations: 171.9 kB / 0.5779 GB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.202e-05/0.4587, allocations: 9.875 kB / 0.5779 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004037/0.4591, allocations: 49.95 kB / 0.5779 GB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.673e-05/0.4592, allocations: 38.75 kB / 0.578 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.463e-05/0.4593, allocations: 8 kB / 0.578 GB, free: 14.6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004585/0.4597, allocations: 334.2 kB / 0.5783 GB, free: 14.34 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4597, allocations: 4 kB / 0.5783 GB, free: 14.34 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000784/0.4605, allocations: 246.6 kB / 0.5785 GB, free: 14.12 MB / 394.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 (39): * Single equations (assignments): 35 * 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.001821/0.4623, allocations: 1.58 MB / 0.5801 GB, free: 12.71 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001756/0.4641, allocations: 0.9918 MB / 0.581 GB, free: 11.88 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.4641, allocations: 0 / 0.581 GB, free: 11.88 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005665/0.4647, allocations: 349.7 kB / 0.5814 GB, free: 11.58 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005195/0.4652, allocations: 99.23 kB / 0.5815 GB, free: 11.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006802/0.4721, allocations: 5.465 MB / 0.5868 GB, free: 6.164 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005178/0.4726, allocations: 0.8984 MB / 0.5877 GB, free: 5.234 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003853/0.473, allocations: 100.1 kB / 0.5878 GB, free: 5.133 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003004/0.4733, allocations: 191.4 kB / 0.588 GB, free: 4.945 MB / 394.7 MB Notification: Performance of SimCode: time 1.583e-06/0.4733, allocations: 0 / 0.588 GB, free: 4.945 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02623/0.4996, allocations: 11.52 MB / 0.5992 GB, free: 9.441 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002372/0.4999, allocations: 229.9 kB / 0.5994 GB, free: 9.184 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.166/2.666, allocations: 0 / 0.5994 GB, free: 9.184 MB / 410.7 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)