Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.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.PowerPlantTest3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",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.0008617/0.0008617, allocations: 84.17 kB / 16.31 MB, free: 6.453 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.0009075/0.0009078, allocations: 176.3 kB / 17.21 MB, free: 6.328 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.532/1.532, allocations: 223.2 MB / 241.2 MB, free: 14.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2032/0.2032, allocations: 38.1 MB / 330.4 MB, free: 8.609 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003186/0.0003187, allocations: 8 kB / 400.2 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1226, allocations: 59.16 MB / 459.3 MB, free: 7.277 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.007283/0.1299, allocations: 5.738 MB / 465.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005063/0.135, allocations: 2.736 MB / 467.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008684/0.1359, allocations: 39.75 kB / 467.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005823/0.1365, allocations: 123 kB / 468 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001251/0.1378, allocations: 389.9 kB / 468.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00134/0.1391, allocations: 426.3 kB / 468.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001456/0.1406, allocations: 1.186 MB / 470 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001249/0.1419, allocations: 0.7135 MB / 470.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005666/0.1424, allocations: 354.3 kB / 471 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005169/0.143, allocations: 386.2 kB / 471.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.665e-05/0.143, allocations: 28 kB / 471.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000634/0.1437, allocations: 271.3 kB / 471.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003104/0.144, allocations: 195.2 kB / 471.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001484/0.1442, allocations: 161.3 kB / 472 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001014/0.1452, allocations: 0.904 MB / 472.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1452, allocations: 0 / 472.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1452, allocations: 0 / 472.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.036e-06/0.1452, allocations: 0 / 472.9 MB, free: 9.578 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.002104/0.1473, allocations: 1.068 MB / 474 MB, free: 8.461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.1474, allocations: 8.031 kB / 474 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001388/0.1475, allocations: 110.5 kB / 474.1 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00115/0.1487, allocations: 210.6 kB / 474.3 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.1497, allocations: 0.5843 MB / 474.9 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.356e-05/0.1498, allocations: 61.14 kB / 475 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.1499, allocations: 68 kB / 475 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/0.1515, allocations: 0.8857 MB / 475.9 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.1516, allocations: 7.906 kB / 475.9 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.477e-05/0.1517, allocations: 24 kB / 476 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-05/0.1517, allocations: 41.3 kB / 476 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001479/0.1532, allocations: 0.7975 MB / 476.8 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004796/0.158, allocations: 3.269 MB / 480.1 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001674/0.1597, allocations: 0.9921 MB / 481 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005905/0.1603, allocations: 323.2 kB / 481.4 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.277e-05/0.1604, allocations: 16.53 kB / 481.4 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.74e-05/0.1604, allocations: 43.12 kB / 481.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=59): time 3.387e-06/0.1605, allocations: 4 kB / 481.4 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of matching and sorting (n=63): time 0.005347/0.1658, allocations: 2.603 MB / 484 MB, free: 14.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.981e-05/0.1659, allocations: 115.3 kB / 484.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007899/0.1667, allocations: 0.5783 MB / 484.7 MB, free: 13.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.641e-05/0.1668, allocations: 37.7 kB / 484.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000275/0.167, allocations: 364.2 kB / 485.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001883/0.1672, allocations: 224.6 kB / 485.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.508e-05/0.1673, allocations: 16 kB / 485.3 MB, free: 12.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.1675, allocations: 386.7 kB / 485.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005443/0.168, allocations: 277.8 kB / 486 MB, free: 12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006692/0.1687, allocations: 425.8 kB / 486.4 MB, free: 11.53 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006519/0.1694, allocations: 322.1 kB / 486.7 MB, free: 11.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1694, allocations: 0 / 486.7 MB, free: 11.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001648/0.171, allocations: 0.8617 MB / 487.6 MB, free: 10.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001357/0.1712, allocations: 197.4 kB / 487.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.1712, allocations: 4 kB / 487.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002426/0.1714, allocations: 68.8 kB / 487.9 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007178/0.1722, allocations: 179.8 kB / 488 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001727/0.1739, allocations: 1.621 MB / 489.7 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004975/0.1744, allocations: 63.89 kB / 489.7 MB, free: 8.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.733e-05/0.1745, allocations: 24 kB / 489.7 MB, free: 8.004 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.845e-06/0.1745, allocations: 4 kB / 489.7 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00144/0.1759, allocations: 0.7365 MB / 490.5 MB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.176, allocations: 4.031 kB / 490.5 MB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001886/0.1762, allocations: 64.75 kB / 490.5 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006681/0.1768, allocations: 175.8 kB / 490.7 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001588/0.1784, allocations: 1.62 MB / 492.3 MB, free: 5.262 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004997/0.1789, allocations: 51.95 kB / 492.4 MB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.64e-05/0.179, allocations: 27.98 kB / 492.4 MB, free: 5.184 MB / 366.1 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.0005353/0.1796, allocations: 328.8 kB / 492.7 MB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.1797, allocations: 75.06 kB / 492.8 MB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002187/0.1819, allocations: 0.8036 MB / 493.6 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.1819, allocations: 4 kB / 493.6 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.1819, allocations: 4 kB / 493.6 MB, free: 3.949 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/0.182, allocations: 3.984 kB / 493.6 MB, free: 3.945 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004428/0.1864, allocations: 2.189 MB / 495.8 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.1864, allocations: 7.938 kB / 495.8 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005694/0.187, allocations: 140.4 kB / 496 MB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002021/0.1872, allocations: 56.81 kB / 496 MB, free: 1.414 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.057e-05/0.1873, allocations: 23.98 kB / 496 MB, free: 1.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001604/0.1889, allocations: 1.573 MB / 497.6 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.241e-05/0.1889, allocations: 15.92 kB / 497.6 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002416/0.1913, allocations: 1.361 MB / 499 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003938/0.1917, allocations: 200.2 kB / 499.2 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.196e-05/0.1918, allocations: 27.98 kB / 499.2 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004731/0.1923, allocations: 59.91 kB / 499.3 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/0.1925, allocations: 71.75 kB / 499.3 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.745e-05/0.1926, allocations: 24 kB / 499.4 MB, free: 13.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006979/0.1933, allocations: 419 kB / 499.8 MB, free: 13.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1933, allocations: 0 / 499.8 MB, free: 13.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001186/0.1945, allocations: 252 kB / 0.4883 GB, free: 13.17 MB / 382.1 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.002729/0.1972, allocations: 1.918 MB / 0.4902 GB, free: 11.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002672/0.1999, allocations: 1.282 MB / 0.4914 GB, free: 9.832 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.247e-06/0.1999, allocations: 4 kB / 0.4914 GB, free: 9.828 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.201, allocations: 0.5074 MB / 0.4919 GB, free: 9.309 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.2021, allocations: 161.3 kB / 0.4921 GB, free: 9.152 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009431/0.2115, allocations: 4.955 MB / 0.4969 GB, free: 4.012 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009402/0.2125, allocations: 0.9822 MB / 0.4979 GB, free: 3.004 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006464/0.2132, allocations: 148.8 kB / 0.498 GB, free: 2.855 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004912/0.2137, allocations: 279.3 kB / 0.4983 GB, free: 2.582 MB / 382.1 MB Notification: Performance of SimCode: time 1.252e-06/0.2137, allocations: 0 / 0.4983 GB, free: 2.582 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3071/0.5209, allocations: 14.48 MB / 0.5124 GB, free: 51.11 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/0.5211, allocations: 231.4 kB / 0.5126 GB, free: 50.87 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.144/2.665, allocations: 0 / 0.5126 GB, free: 50.87 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3_res.mat does not exist to compare? outputFormat=mat