Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerPlantTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",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.001608/0.001608, allocations: 182.7 kB / 15.76 MB, free: 6.363 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.111/2.111, 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.001066/0.001065, allocations: 86.89 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.3081/0.3081, allocations: 38.06 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005114/0.0005115, allocations: 8 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.117, allocations: 56.34 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5199/0.6369, allocations: 103.6 MB / 0.5691 GB, free: 12.08 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003446/0.6374, allocations: 90.45 kB / 0.5692 GB, free: 12.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09916/0.7365, allocations: 22.66 MB / 0.5913 GB, free: 9.125 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.7366, allocations: 0 / 0.5913 GB, free: 9.125 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.63e-05/0.7367, allocations: 15.94 kB / 0.5913 GB, free: 9.109 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003673/0.7404, allocations: 1.068 MB / 0.5924 GB, free: 8.047 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.588e-05/0.7405, allocations: 12.03 kB / 0.5924 GB, free: 8.035 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003943/0.7409, allocations: 103.6 kB / 0.5925 GB, free: 7.961 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001725/0.7426, allocations: 182.7 kB / 0.5926 GB, free: 7.781 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002164/0.7448, allocations: 0.6113 MB / 0.5932 GB, free: 7.234 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.944e-05/0.7449, allocations: 43.31 kB / 0.5933 GB, free: 7.211 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001958/0.7451, allocations: 66.11 kB / 0.5933 GB, free: 7.168 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002397/0.7475, allocations: 0.7724 MB / 0.5941 GB, free: 6.578 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.001e-05/0.7476, allocations: 0 / 0.5941 GB, free: 6.578 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001079/0.7477, allocations: 27.27 kB / 0.5941 GB, free: 6.566 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.646e-05/0.7478, allocations: 32.31 kB / 0.5942 GB, free: 6.539 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002506/0.7503, allocations: 0.673 MB / 0.5948 GB, free: 6.066 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00761/0.758, allocations: 2.968 MB / 0.5977 GB, free: 3.609 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003052/0.7611, allocations: 0.7783 MB / 0.5985 GB, free: 2.988 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.827e-05/0.7613, allocations: 16.34 kB / 0.5985 GB, free: 2.977 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.515e-05/0.7613, allocations: 38.62 kB / 0.5985 GB, free: 2.934 MB / 394.7 MB Notification: Performance of pre-optimization done (n=50): time 3.998e-06/0.7613, allocations: 0 / 0.5985 GB, free: 2.934 MB / 394.7 MB Notification: Performance of matching and sorting (n=50): time 0.003265/0.7646, allocations: 0.785 MB / 0.5993 GB, free: 2.336 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.56e-05/0.7648, allocations: 107.2 kB / 0.5994 GB, free: 2.207 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.7661, allocations: 0.519 MB / 0.5999 GB, free: 1.789 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001424/0.7663, allocations: 37.11 kB / 0.5999 GB, free: 1.754 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003248/0.7666, allocations: 374.4 kB / 0.6003 GB, free: 1.488 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002374/0.7669, allocations: 179 kB / 0.6005 GB, free: 1.336 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.335e-05/0.7669, allocations: 10.62 kB / 0.6005 GB, free: 1.336 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.7671, allocations: 339.9 kB / 0.6008 GB, free: 1.004 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009628/0.7681, allocations: 229 kB / 0.601 GB, free: 0.8477 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/0.7692, allocations: 374.4 kB / 0.6014 GB, free: 0.5117 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/0.7703, allocations: 274.8 kB / 0.6016 GB, free: 340 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.7703, allocations: 0 / 0.6016 GB, free: 340 kB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003099/0.7734, allocations: 0.7853 MB / 0.6024 GB, free: 15.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007244/0.7742, allocations: 1.397 MB / 0.6038 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.856e-05/0.7742, allocations: 4 kB / 0.6038 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008879/0.7751, allocations: 151.9 kB / 0.6039 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/0.7764, allocations: 143.8 kB / 0.6041 GB, free: 13.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001304/0.7777, allocations: 0.7364 MB / 0.6048 GB, free: 13.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.7789, allocations: 96.27 kB / 0.6049 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.88e-05/0.779, allocations: 26.31 kB / 0.6049 GB, free: 13.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.779, allocations: 8.062 kB / 0.6049 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002493/0.7815, allocations: 0.6656 MB / 0.6055 GB, free: 12.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.7816, allocations: 4 kB / 0.6056 GB, free: 12.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004489/0.782, allocations: 102.9 kB / 0.6056 GB, free: 12.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/0.7832, allocations: 139.6 kB / 0.6058 GB, free: 12.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003248/0.7865, allocations: 2.027 MB / 0.6078 GB, free: 10.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007019/0.7872, allocations: 69 kB / 0.6078 GB, free: 10.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.003e-05/0.7873, allocations: 26.56 kB / 0.6079 GB, free: 10.64 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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: 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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0006504/0.788, allocations: 302.1 kB / 0.6081 GB, free: 10.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002523/0.7882, allocations: 67.16 kB / 0.6082 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002281/0.7905, allocations: 0.6217 MB / 0.6088 GB, free: 9.867 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.7906, allocations: 4 kB / 0.6088 GB, free: 9.863 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.7906, allocations: 112 / 0.6088 GB, free: 9.863 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.7906, allocations: 11.92 kB / 0.6088 GB, free: 9.852 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003782/0.7944, allocations: 1.352 MB / 0.6101 GB, free: 8.805 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.7945, allocations: 0 / 0.6101 GB, free: 8.805 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0012/0.7957, allocations: 115.5 kB / 0.6103 GB, free: 8.695 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.375e-05/0.7957, allocations: 4 kB / 0.6103 GB, free: 8.691 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.987e-05/0.7958, allocations: 21.67 kB / 0.6103 GB, free: 8.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.7958, allocations: 0 / 0.6103 GB, free: 8.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.7958, allocations: 4 kB / 0.6103 GB, free: 8.676 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003283/0.7991, allocations: 1.002 MB / 0.6113 GB, free: 7.895 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004657/0.7996, allocations: 192.3 kB / 0.6114 GB, free: 7.715 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000133/0.7998, allocations: 11.69 kB / 0.6115 GB, free: 7.711 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008202/0.8006, allocations: 51.83 kB / 0.6115 GB, free: 7.668 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.8008, allocations: 40.62 kB / 0.6115 GB, free: 7.633 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.174e-05/0.8009, allocations: 15.7 kB / 0.6116 GB, free: 7.621 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00108/0.802, allocations: 422.7 kB / 0.612 GB, free: 7.301 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.802, allocations: 0 / 0.612 GB, free: 7.301 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001415/0.8034, allocations: 272.1 kB / 0.6122 GB, free: 7.062 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * 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 (51): * Single equations (assignments): 50 * 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.0039/0.8073, allocations: 1.635 MB / 0.6138 GB, free: 5.527 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003824/0.8112, allocations: 1.017 MB / 0.6148 GB, free: 4.504 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.8112, allocations: 0 / 0.6148 GB, free: 4.504 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001121/0.8124, allocations: 286.4 kB / 0.6151 GB, free: 4.227 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.8136, allocations: 139.6 kB / 0.6152 GB, free: 4.094 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01608/0.8297, allocations: 6.979 MB / 0.622 GB, free: 12.97 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008116/0.8305, allocations: 0.9576 MB / 0.623 GB, free: 11.99 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007326/0.8313, allocations: 263.3 kB / 0.6232 GB, free: 11.73 MB / 426.7 MB Notification: Performance of SimCode: time 1.182e-06/0.8313, allocations: 0 / 0.6232 GB, free: 11.73 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.758/3.589, allocations: 12.83 MB / 0.6358 GB, free: 14.88 MB / 442.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)