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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_cpp_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.3+maint.om/package.mo): time 0.001621/0.00162, allocations: 183.8 kB / 15.76 MB, free: 6.359 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.078/2.078, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001193/0.001193, allocations: 86.88 kB / 270.2 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2818/0.2818, allocations: 38.07 MB / 356.6 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006428/0.0006429, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1352, allocations: 56.33 MB / 479.1 MB, free: 1.957 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5083/0.6436, allocations: 102 MB / 0.5675 GB, free: 13.72 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003403/0.644, allocations: 90.89 kB / 0.5676 GB, free: 13.67 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09152/0.7355, allocations: 19.35 MB / 0.5865 GB, free: 13.57 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.7356, allocations: 0 / 0.5865 GB, free: 13.57 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.501e-05/0.7356, allocations: 20 kB / 0.5865 GB, free: 13.55 MB / 394.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.00347/0.7391, allocations: 0.9551 MB / 0.5874 GB, free: 12.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/0.7392, allocations: 12.02 kB / 0.5874 GB, free: 12.57 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003783/0.7396, allocations: 95.5 kB / 0.5875 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00173/0.7413, allocations: 155 kB / 0.5877 GB, free: 12.35 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001834/0.7432, allocations: 0.5361 MB / 0.5882 GB, free: 11.86 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.348e-05/0.7433, allocations: 41.62 kB / 0.5882 GB, free: 11.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001606/0.7435, allocations: 46.75 kB / 0.5883 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00226/0.7458, allocations: 0.6749 MB / 0.5889 GB, free: 11.28 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.179e-05/0.7459, allocations: 7.906 kB / 0.589 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/0.746, allocations: 25.33 kB / 0.589 GB, free: 11.26 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.538e-05/0.7461, allocations: 27.8 kB / 0.589 GB, free: 11.24 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002586/0.7487, allocations: 0.6159 MB / 0.5896 GB, free: 10.8 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006766/0.7555, allocations: 2.759 MB / 0.5923 GB, free: 8.426 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002627/0.7582, allocations: 0.6608 MB / 0.5929 GB, free: 7.887 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.256e-05/0.7583, allocations: 4.328 kB / 0.593 GB, free: 7.883 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001081/0.7594, allocations: 307 kB / 0.5932 GB, free: 7.629 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 3.106e-06/0.7594, allocations: 0 / 0.5932 GB, free: 7.629 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.003245/0.7627, allocations: 0.7926 MB / 0.594 GB, free: 6.973 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.7628, allocations: 136.5 kB / 0.5941 GB, free: 6.809 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001185/0.764, allocations: 443.3 kB / 0.5946 GB, free: 6.453 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001309/0.7642, allocations: 36.08 kB / 0.5946 GB, free: 6.418 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003266/0.7645, allocations: 338.4 kB / 0.5949 GB, free: 6.164 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002145/0.7647, allocations: 148.2 kB / 0.5951 GB, free: 6.039 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.665e-05/0.7648, allocations: 7.25 kB / 0.5951 GB, free: 6.039 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.765, allocations: 329.5 kB / 0.5954 GB, free: 5.715 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009043/0.7659, allocations: 202.2 kB / 0.5956 GB, free: 5.574 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009748/0.7669, allocations: 317 kB / 0.5959 GB, free: 5.277 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009465/0.7678, allocations: 258 kB / 0.5961 GB, free: 5.094 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.7679, allocations: 0 / 0.5961 GB, free: 5.094 MB / 394.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002995/0.7709, allocations: 0.751 MB / 0.5969 GB, free: 4.496 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006644/0.7716, allocations: 1.336 MB / 0.5982 GB, free: 3.074 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/0.7716, allocations: 7.984 kB / 0.5982 GB, free: 3.066 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009995/0.7726, allocations: 163.4 kB / 0.5983 GB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007752/0.7734, allocations: 95.72 kB / 0.5984 GB, free: 2.852 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001442/0.7749, allocations: 0.8112 MB / 0.5992 GB, free: 2.129 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001009/0.7759, allocations: 87.11 kB / 0.5993 GB, free: 2.051 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.13e-05/0.776, allocations: 15.62 kB / 0.5993 GB, free: 2.039 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.776, allocations: 4 kB / 0.5993 GB, free: 2.035 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002631/0.7787, allocations: 0.6424 MB / 0.5999 GB, free: 1.555 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.7787, allocations: 4 kB / 0.6 GB, free: 1.551 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005452/0.7793, allocations: 123.7 kB / 0.6001 GB, free: 1.461 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007663/0.7801, allocations: 95.75 kB / 0.6002 GB, free: 1.371 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003957/0.7841, allocations: 2.236 MB / 0.6023 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006542/0.7848, allocations: 62.22 kB / 0.6024 GB, free: 15.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.739e-05/0.7848, allocations: 15.94 kB / 0.6024 GB, free: 15.41 MB / 410.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.0005795/0.7854, allocations: 302.8 kB / 0.6027 GB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002053/0.7856, allocations: 55.34 kB / 0.6028 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00208/0.7877, allocations: 0.5266 MB / 0.6033 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.448e-05/0.7878, allocations: 4 kB / 0.6033 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.7878, allocations: 3.984 kB / 0.6033 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/0.7878, allocations: 4 kB / 0.6033 GB, free: 14.69 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00341/0.7913, allocations: 1.187 MB / 0.6044 GB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.7913, allocations: 0 / 0.6044 GB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009005/0.7922, allocations: 95.19 kB / 0.6045 GB, free: 13.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001844/0.7924, allocations: 34.98 kB / 0.6046 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.476e-05/0.7925, allocations: 14.61 kB / 0.6046 GB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0015/0.794, allocations: 1.356 MB / 0.6059 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.7941, allocations: 4.062 kB / 0.6059 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003083/0.7972, allocations: 0.9022 MB / 0.6068 GB, free: 11.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004262/0.7976, allocations: 172.3 kB / 0.607 GB, free: 11.31 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/0.7978, allocations: 10.62 kB / 0.607 GB, free: 11.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007513/0.7985, allocations: 43.27 kB / 0.607 GB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001822/0.7987, allocations: 42.02 kB / 0.607 GB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.237e-05/0.7988, allocations: 11.94 kB / 0.6071 GB, free: 11.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009439/0.7997, allocations: 364.9 kB / 0.6074 GB, free: 10.95 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7998, allocations: 0 / 0.6074 GB, free: 10.95 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001326/0.8011, allocations: 255 kB / 0.6077 GB, free: 10.72 MB / 410.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.003635/0.8048, allocations: 1.599 MB / 0.6092 GB, free: 9.293 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003489/0.8083, allocations: 1.003 MB / 0.6102 GB, free: 8.461 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/0.8083, allocations: 4 kB / 0.6102 GB, free: 8.457 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.8095, allocations: 350.8 kB / 0.6105 GB, free: 8.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.8106, allocations: 110.3 kB / 0.6106 GB, free: 8.074 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01346/0.8241, allocations: 6.031 MB / 0.6165 GB, free: 2.398 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007204/0.8249, allocations: 0.9099 MB / 0.6174 GB, free: 1.457 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005758/0.8255, allocations: 207.4 kB / 0.6176 GB, free: 1.254 MB / 410.7 MB Notification: Performance of SimCode: time 1.343e-06/0.8255, allocations: 0 / 0.6176 GB, free: 1.254 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.045/3.87, allocations: 11.86 MB / 0.6292 GB, free: 5.383 MB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)