Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 86.45 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 184.9 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 223.3 MB / 241.2 MB, free: 276 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1926/0.1926, allocations: 38.1 MB / 330.4 MB, free: 8.922 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003448/0.0003449, allocations: 11.94 kB / 400.2 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1097, allocations: 59.17 MB / 459.3 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.005557/0.1153, allocations: 5.097 MB / 464.4 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00335/0.1187, allocations: 2.219 MB / 466.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005398/0.1192, allocations: 31.81 kB / 466.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004323/0.1197, allocations: 111 kB / 466.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000728/0.1204, allocations: 282.4 kB / 467.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009818/0.1214, allocations: 378.6 kB / 467.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001083/0.1225, allocations: 0.9911 MB / 468.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009991/0.1235, allocations: 0.612 MB / 469 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004564/0.124, allocations: 298.6 kB / 469.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004212/0.1244, allocations: 326.4 kB / 469.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.178e-05/0.1245, allocations: 24 kB / 469.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003868/0.1249, allocations: 155.6 kB / 469.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.1251, allocations: 147.4 kB / 470 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000148/0.1252, allocations: 153.3 kB / 470.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007578/0.126, allocations: 0.787 MB / 470.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.126, allocations: 4 kB / 470.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.126, allocations: 0 / 470.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.809e-06/0.126, allocations: 4 kB / 470.9 MB, free: 11.63 MB / 350.1 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.001912/0.1279, allocations: 0.9855 MB / 471.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.128, allocations: 8.031 kB / 471.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001455/0.1281, allocations: 102.5 kB / 472 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008579/0.129, allocations: 154.9 kB / 472.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009468/0.13, allocations: 0.557 MB / 472.7 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.51e-05/0.13, allocations: 57.19 kB / 472.8 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.1301, allocations: 63.91 kB / 472.8 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.1316, allocations: 0.7678 MB / 473.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.337e-05/0.1316, allocations: 0 / 473.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.086e-05/0.1317, allocations: 23.98 kB / 473.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.924e-05/0.1317, allocations: 33.3 kB / 473.7 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.1329, allocations: 0.6414 MB / 474.3 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004017/0.137, allocations: 2.934 MB / 477.2 MB, free: 5.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.1383, allocations: 0.7213 MB / 478 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004387/0.1388, allocations: 243 kB / 478.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.829e-05/0.1388, allocations: 4.438 kB / 478.2 MB, free: 4.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.878e-05/0.1389, allocations: 43.03 kB / 478.2 MB, free: 3.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.414e-06/0.1389, allocations: 0 / 478.2 MB, free: 3.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.00146/0.1403, allocations: 0.7331 MB / 479 MB, free: 3.262 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.478e-05/0.1404, allocations: 111.3 kB / 479.1 MB, free: 3.129 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007397/0.1412, allocations: 0.5784 MB / 479.7 MB, free: 2.543 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.107e-05/0.1412, allocations: 41.64 kB / 479.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002576/0.1415, allocations: 348.4 kB / 480 MB, free: 2.148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.1416, allocations: 181.4 kB / 480.2 MB, free: 1.969 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.695e-05/0.1417, allocations: 8 kB / 480.2 MB, free: 1.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.1418, allocations: 374.8 kB / 480.6 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004312/0.1423, allocations: 217 kB / 480.8 MB, free: 1.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005047/0.1428, allocations: 348.5 kB / 481.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00049/0.1433, allocations: 256.7 kB / 481.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.1433, allocations: 0 / 481.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001607/0.1449, allocations: 0.8278 MB / 482.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000127/0.1451, allocations: 194.3 kB / 482.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.1451, allocations: 4 kB / 482.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004547/0.1455, allocations: 140.6 kB / 482.6 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000529/0.1461, allocations: 139.8 kB / 482.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002692/0.1488, allocations: 2.245 MB / 484.9 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004345/0.1492, allocations: 87.41 kB / 485 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-05/0.1493, allocations: 20 kB / 485 MB, free: 12.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.596e-06/0.1493, allocations: 4 kB / 485 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001167/0.1505, allocations: 0.6276 MB / 485.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.1505, allocations: 4 kB / 485.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002506/0.1507, allocations: 96.84 kB / 485.8 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005057/0.1513, allocations: 140.2 kB / 485.9 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0019/0.1532, allocations: 2.015 MB / 487.9 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004106/0.1536, allocations: 83.34 kB / 488 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.865e-05/0.1536, allocations: 23.98 kB / 488 MB, free: 9.758 MB / 366.1 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 (60): * Single equations (assignments): 59 * 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.0003868/0.154, allocations: 301 kB / 488.3 MB, free: 9.453 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.1541, allocations: 71.11 kB / 488.4 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/0.1553, allocations: 0.5772 MB / 489 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.1553, allocations: 12.12 kB / 489 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.1553, allocations: 0 / 489 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.1553, allocations: 12.02 kB / 489 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001942/0.1573, allocations: 1.337 MB / 490.3 MB, free: 7.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1573, allocations: 0 / 490.3 MB, free: 7.383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005227/0.1578, allocations: 115.8 kB / 490.4 MB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.1578, allocations: 8 kB / 490.5 MB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.785e-05/0.1579, allocations: 12 kB / 490.5 MB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.1579, allocations: 0 / 490.5 MB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1579, allocations: 4 kB / 490.5 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/0.1594, allocations: 0.9286 MB / 491.4 MB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002164/0.1596, allocations: 196.1 kB / 491.6 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.959e-05/0.1597, allocations: 12 kB / 491.6 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003442/0.16, allocations: 39.97 kB / 491.6 MB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.937e-05/0.1601, allocations: 40.41 kB / 491.7 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.142e-05/0.1601, allocations: 12 kB / 491.7 MB, free: 5.988 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005616/0.1607, allocations: 419 kB / 492.1 MB, free: 5.582 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.1607, allocations: 0 / 492.1 MB, free: 5.582 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008955/0.1616, allocations: 267.2 kB / 492.4 MB, free: 5.32 MB / 366.1 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 (50): * Single equations (assignments): 49 * 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.001717/0.1634, allocations: 1.489 MB / 493.8 MB, free: 3.797 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001886/0.1653, allocations: 1.092 MB / 494.9 MB, free: 2.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1653, allocations: 12 kB / 495 MB, free: 2.668 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004638/0.1657, allocations: 262.4 kB / 495.2 MB, free: 2.414 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006982/0.1664, allocations: 135.4 kB / 495.3 MB, free: 2.289 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007588/0.174, allocations: 4.641 MB / 500 MB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005064/0.1746, allocations: 0.946 MB / 0.4892 GB, free: 12.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004474/0.175, allocations: 116.6 kB / 0.4893 GB, free: 12.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003652/0.1754, allocations: 251.3 kB / 0.4895 GB, free: 12.2 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1754, allocations: 3.938 kB / 0.4895 GB, free: 12.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2476/0.4231, allocations: 13.89 MB / 0.5031 GB, free: 53.27 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001725/0.4233, allocations: 229.8 kB / 0.5033 GB, free: 53.03 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.204/2.628, allocations: 0 / 0.5033 GB, free: 53.03 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1_res.mat does not exist to compare? outputFormat=mat