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.001474/0.001479, allocations: 183.5 kB / 15.76 MB, free: 6.344 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.063/2.063, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001158/0.001158, allocations: 90.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2701/0.2701, allocations: 38.06 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004825/0.0004825, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1185, allocations: 56.34 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5215/0.64, allocations: 105.5 MB / 0.5709 GB, free: 10.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003286/0.6404, allocations: 91.2 kB / 0.571 GB, free: 10.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1151/0.7555, allocations: 28.39 MB / 0.5987 GB, free: 2.836 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.7556, allocations: 4 kB / 0.5987 GB, free: 2.832 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.776e-05/0.7557, allocations: 20 kB / 0.5987 GB, free: 2.812 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.003413/0.7591, allocations: 1.133 MB / 0.5998 GB, free: 1.691 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.7591, allocations: 8.031 kB / 0.5998 GB, free: 1.684 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002159/0.7594, allocations: 109.3 kB / 0.6 GB, free: 1.605 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002088/0.7615, allocations: 210.3 kB / 0.6002 GB, free: 1.402 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001808/0.7633, allocations: 0.6407 MB / 0.6008 GB, free: 0.832 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.306e-05/0.7634, allocations: 53.17 kB / 0.6008 GB, free: 0.7969 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001846/0.7636, allocations: 71.91 kB / 0.6009 GB, free: 0.75 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002394/0.766, allocations: 0.8778 MB / 0.6018 GB, free: 84 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.813e-05/0.766, allocations: 3.953 kB / 0.6018 GB, free: 80 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001078/0.7662, allocations: 26.81 kB / 0.6018 GB, free: 72 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001482/0.7663, allocations: 40.17 kB / 0.6018 GB, free: 36 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002505/0.7688, allocations: 0.7908 MB / 0.6026 GB, free: 15.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007418/0.7763, allocations: 3.274 MB / 0.6058 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002861/0.7792, allocations: 0.9907 MB / 0.6068 GB, free: 11.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.389e-05/0.7793, allocations: 8.625 kB / 0.6068 GB, free: 11.94 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.7793, allocations: 34.69 kB / 0.6068 GB, free: 11.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=59): time 3.045e-06/0.7793, allocations: 0 / 0.6068 GB, free: 11.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=63): time 0.008327/0.7877, allocations: 2.611 MB / 0.6093 GB, free: 9.773 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.686e-05/0.7878, allocations: 111.4 kB / 0.6095 GB, free: 9.641 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/0.789, allocations: 0.5175 MB / 0.61 GB, free: 9.223 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.723e-05/0.7891, allocations: 32.64 kB / 0.61 GB, free: 9.191 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003259/0.7894, allocations: 388.9 kB / 0.6104 GB, free: 8.914 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002633/0.7897, allocations: 227.2 kB / 0.6106 GB, free: 8.719 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.206e-05/0.7898, allocations: 10.88 kB / 0.6106 GB, free: 8.719 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.7899, allocations: 345.2 kB / 0.6109 GB, free: 8.383 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009937/0.7909, allocations: 271.3 kB / 0.6112 GB, free: 8.203 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001158/0.7921, allocations: 429.7 kB / 0.6116 GB, free: 7.828 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/0.7933, allocations: 320.8 kB / 0.6119 GB, free: 7.625 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.7933, allocations: 4 kB / 0.6119 GB, free: 7.621 MB / 410.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00282/0.7961, allocations: 0.8072 MB / 0.6127 GB, free: 6.945 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007224/0.7969, allocations: 1.487 MB / 0.6141 GB, free: 5.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.7969, allocations: 4 kB / 0.6141 GB, free: 5.336 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004382/0.7973, allocations: 60.81 kB / 0.6142 GB, free: 5.273 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001476/0.7988, allocations: 187.7 kB / 0.6144 GB, free: 5.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002498/0.8013, allocations: 1.64 MB / 0.616 GB, free: 3.309 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.8024, allocations: 55.95 kB / 0.616 GB, free: 3.254 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.806e-05/0.8025, allocations: 31.98 kB / 0.6161 GB, free: 3.223 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.8025, allocations: 4 kB / 0.6161 GB, free: 3.219 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002523/0.805, allocations: 0.7321 MB / 0.6168 GB, free: 2.484 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.8051, allocations: 11.95 kB / 0.6168 GB, free: 2.473 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003206/0.8054, allocations: 57.25 kB / 0.6168 GB, free: 2.414 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/0.8068, allocations: 175.8 kB / 0.617 GB, free: 2.242 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002476/0.8093, allocations: 1.658 MB / 0.6186 GB, free: 468 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007136/0.81, allocations: 48.03 kB / 0.6187 GB, free: 420 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.539e-05/0.8101, allocations: 27.98 kB / 0.6187 GB, free: 392 kB / 410.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 () * Number of clocked 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.0007035/0.8108, allocations: 324.9 kB / 0.619 GB, free: 56 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002558/0.8111, allocations: 67.33 kB / 0.6191 GB, free: 15.98 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002849/0.8139, allocations: 0.7957 MB / 0.6199 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/0.814, allocations: 8 kB / 0.6199 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.814, allocations: 0 / 0.6199 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.68e-05/0.814, allocations: 11.77 kB / 0.6199 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00728/0.8213, allocations: 2.187 MB / 0.622 GB, free: 12.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.587e-05/0.8214, allocations: 4 kB / 0.622 GB, free: 12.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.8226, allocations: 135.8 kB / 0.6221 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000353/0.8229, allocations: 61.16 kB / 0.6222 GB, free: 12.63 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.334e-05/0.823, allocations: 24 kB / 0.6222 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00226/0.8253, allocations: 1.608 MB / 0.6238 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.015e-05/0.8253, allocations: 7.938 kB / 0.6238 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004351/0.8297, allocations: 1.647 MB / 0.6254 GB, free: 8.953 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004948/0.8302, allocations: 204.2 kB / 0.6256 GB, free: 8.734 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001417/0.8304, allocations: 20 kB / 0.6256 GB, free: 8.715 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008732/0.8313, allocations: 59.95 kB / 0.6257 GB, free: 8.656 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001995/0.8315, allocations: 67.77 kB / 0.6258 GB, free: 8.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.047e-05/0.8316, allocations: 24 kB / 0.6258 GB, free: 8.566 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001033/0.8326, allocations: 423 kB / 0.6262 GB, free: 8.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.8326, allocations: 0 / 0.6262 GB, free: 8.16 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001535/0.8342, allocations: 271.9 kB / 0.6264 GB, free: 7.895 MB / 426.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 () * Number of clocked 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.005583/0.8398, allocations: 4.007 MB / 0.6303 GB, free: 3.68 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004239/0.8441, allocations: 1.294 MB / 0.6316 GB, free: 2.363 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.405e-05/0.8441, allocations: 8.125 kB / 0.6316 GB, free: 2.355 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001593/0.8457, allocations: 487.7 kB / 0.6321 GB, free: 1.867 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.8471, allocations: 155.5 kB / 0.6322 GB, free: 1.711 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01493/0.862, allocations: 7.402 MB / 0.6395 GB, free: 10.09 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009323/0.863, allocations: 1.002 MB / 0.6404 GB, free: 9.059 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007926/0.8638, allocations: 283.3 kB / 0.6407 GB, free: 8.781 MB / 442.7 MB Notification: Performance of SimCode: time 1.393e-06/0.8638, allocations: 4 kB / 0.6407 GB, free: 8.777 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.914/3.778, allocations: 15.63 MB / 0.656 GB, free: 9.133 MB / 458.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)