Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.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.PowerPlantTest3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",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.002228/0.002228, allocations: 184.7 kB / 13.19 MB, free: 2.125 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.122/2.122, allocations: 205.2 MB / 218.9 MB, free: 9.133 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.001066, allocations: 90.78 kB / 267.1 MB, free: 9.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2969/0.2969, allocations: 37.97 MB / 353.1 MB, free: 3.047 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.06e-05/4.066e-05, allocations: 0 / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1446, allocations: 56.32 MB / 473.2 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4967/0.6414, allocations: 105.4 MB / 0.565 GB, free: 14.18 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003661/0.6418, allocations: 87.94 kB / 0.5651 GB, free: 14.1 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1236/0.7654, allocations: 28.26 MB / 0.5927 GB, free: 1.613 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.7655, allocations: 3.938 kB / 0.5927 GB, free: 1.609 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001038/0.7656, allocations: 31.92 kB / 0.5927 GB, free: 1.578 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.003227/0.7688, allocations: 0.9989 MB / 0.5937 GB, free: 0.5352 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.519e-05/0.7689, allocations: 12.03 kB / 0.5937 GB, free: 0.5234 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003448/0.7692, allocations: 114.5 kB / 0.5938 GB, free: 412 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00232/0.7716, allocations: 214.6 kB / 0.5941 GB, free: 196 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002063/0.7737, allocations: 0.6089 MB / 0.5946 GB, free: 15.54 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.816e-05/0.7738, allocations: 53.31 kB / 0.5947 GB, free: 15.49 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002095/0.774, allocations: 67.91 kB / 0.5948 GB, free: 15.42 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002307/0.7764, allocations: 0.8156 MB / 0.5956 GB, free: 14.56 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.31e-05/0.7765, allocations: 11.89 kB / 0.5956 GB, free: 14.55 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001143/0.7766, allocations: 27.94 kB / 0.5956 GB, free: 14.52 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001707/0.7768, allocations: 49.28 kB / 0.5956 GB, free: 14.48 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002083/0.7789, allocations: 0.6923 MB / 0.5963 GB, free: 13.79 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009217/0.7881, allocations: 3.272 MB / 0.5995 GB, free: 10.39 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002136/0.7903, allocations: 0.8603 MB / 0.6004 GB, free: 9.449 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007287/0.7911, allocations: 259.4 kB / 0.6006 GB, free: 9.191 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.332e-05/0.7912, allocations: 12.55 kB / 0.6006 GB, free: 9.18 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.318e-05/0.7913, allocations: 55.05 kB / 0.6007 GB, free: 9.113 MB / 442.7 MB Notification: Performance of pre-optimization done (n=59): time 3.387e-06/0.7913, allocations: 0 / 0.6007 GB, free: 9.113 MB / 442.7 MB Notification: Performance of matching and sorting (n=63): time 0.005378/0.7967, allocations: 1.953 MB / 0.6026 GB, free: 7.074 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.85e-05/0.7968, allocations: 107.4 kB / 0.6027 GB, free: 6.941 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001004/0.7978, allocations: 0.4956 MB / 0.6032 GB, free: 6.438 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001269/0.798, allocations: 37.7 kB / 0.6032 GB, free: 6.395 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000352/0.7983, allocations: 390.6 kB / 0.6036 GB, free: 6.012 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002991/0.7986, allocations: 220.8 kB / 0.6038 GB, free: 5.793 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-05/0.7987, allocations: 15.94 kB / 0.6038 GB, free: 5.777 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.7989, allocations: 346.7 kB / 0.6041 GB, free: 5.43 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006846/0.7996, allocations: 217.5 kB / 0.6043 GB, free: 5.215 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007832/0.8004, allocations: 367.7 kB / 0.6047 GB, free: 4.805 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007629/0.8012, allocations: 279.2 kB / 0.6049 GB, free: 4.535 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.8012, allocations: 0 / 0.6049 GB, free: 4.535 MB / 442.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002083/0.8033, allocations: 0.6986 MB / 0.6056 GB, free: 3.824 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007149/0.804, allocations: 1.49 MB / 0.6071 GB, free: 2.223 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/0.8041, allocations: 4 kB / 0.6071 GB, free: 2.219 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004464/0.8045, allocations: 60.81 kB / 0.6071 GB, free: 2.156 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001548/0.8061, allocations: 183.8 kB / 0.6073 GB, free: 1.977 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002507/0.8086, allocations: 1.624 MB / 0.6089 GB, free: 216 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001081/0.8097, allocations: 59.88 kB / 0.609 GB, free: 156 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.731e-05/0.8098, allocations: 28 kB / 0.609 GB, free: 128 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.8099, allocations: 4 kB / 0.609 GB, free: 124 kB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002046/0.8119, allocations: 0.6502 MB / 0.6096 GB, free: 15.46 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.812, allocations: 4 kB / 0.6096 GB, free: 15.46 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003175/0.8123, allocations: 57.31 kB / 0.6097 GB, free: 15.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001434/0.8137, allocations: 179.7 kB / 0.6099 GB, free: 15.22 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002487/0.8163, allocations: 1.627 MB / 0.6115 GB, free: 13.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007626/0.8171, allocations: 51.94 kB / 0.6115 GB, free: 13.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.939e-05/0.8172, allocations: 28 kB / 0.6115 GB, free: 13.39 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 79 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002787/0.8174, allocations: 148.7 kB / 0.6117 GB, free: 13.23 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002518/0.8177, allocations: 67.16 kB / 0.6117 GB, free: 13.17 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002203/0.8199, allocations: 0.6904 MB / 0.6124 GB, free: 12.46 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/0.82, allocations: 8 kB / 0.6124 GB, free: 12.45 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.82, allocations: 0 / 0.6124 GB, free: 12.45 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.82, allocations: 7.938 kB / 0.6124 GB, free: 12.45 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006641/0.8267, allocations: 2.09 MB / 0.6145 GB, free: 10.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.076e-05/0.8267, allocations: 4 kB / 0.6145 GB, free: 10.22 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001225/0.828, allocations: 135.8 kB / 0.6146 GB, free: 10.09 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003569/0.8284, allocations: 61.12 kB / 0.6147 GB, free: 10.02 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.158e-05/0.8285, allocations: 20 kB / 0.6147 GB, free: 10 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002153/0.8306, allocations: 1.573 MB / 0.6162 GB, free: 8.301 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.071e-05/0.8307, allocations: 11.94 kB / 0.6162 GB, free: 8.289 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003352/0.8341, allocations: 1.495 MB / 0.6177 GB, free: 6.539 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005382/0.8346, allocations: 204.1 kB / 0.6179 GB, free: 6.32 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.8348, allocations: 27.98 kB / 0.6179 GB, free: 6.293 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009147/0.8357, allocations: 51.95 kB / 0.618 GB, free: 6.242 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002023/0.836, allocations: 71.77 kB / 0.618 GB, free: 6.172 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.195e-05/0.836, allocations: 24 kB / 0.618 GB, free: 6.148 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007596/0.8368, allocations: 391.2 kB / 0.6184 GB, free: 5.773 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.8368, allocations: 4 kB / 0.6184 GB, free: 5.77 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001527/0.8384, allocations: 268 kB / 0.6187 GB, free: 5.508 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 7 (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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 61 * 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: 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004122/0.8425, allocations: 3.855 MB / 0.6224 GB, free: 1.445 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003112/0.8457, allocations: 1.138 MB / 0.6236 GB, free: 292 kB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.779e-06/0.8457, allocations: 0 / 0.6236 GB, free: 292 kB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001173/0.8469, allocations: 443.9 kB / 0.624 GB, free: 15.84 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001366/0.8483, allocations: 150.8 kB / 0.6241 GB, free: 15.69 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004721/0.853, allocations: 1.539 MB / 0.6256 GB, free: 14.02 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008209/0.8539, allocations: 1.002 MB / 0.6266 GB, free: 12.99 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000787/0.8547, allocations: 283.3 kB / 0.6269 GB, free: 12.71 MB / 474.7 MB Notification: Performance of SimCode: time 1.403e-06/0.8547, allocations: 0 / 0.6269 GB, free: 12.71 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.234/4.089, allocations: 15.62 MB / 0.6421 GB, free: 134.3 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1)