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.0008609/0.0008609, allocations: 95.36 kB / 16.3 MB, free: 5.621 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.000869/0.0008691, allocations: 182.1 kB / 17.2 MB, free: 5.555 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.249/1.249, allocations: 223.2 MB / 241.1 MB, free: 14.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1637/0.1637, allocations: 38.08 MB / 330.3 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004065/0.0004066, allocations: 9.5 kB / 400.1 MB, free: 34.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1231, allocations: 59.16 MB / 459.2 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.005825/0.1289, allocations: 5.012 MB / 464.2 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003949/0.1329, allocations: 2.192 MB / 466.4 MB, free: 100 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006363/0.1336, allocations: 31.81 kB / 466.4 MB, free: 68 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005005/0.1341, allocations: 99.28 kB / 466.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000877/0.135, allocations: 314.8 kB / 466.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.1362, allocations: 394.7 kB / 467.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009793/0.1372, allocations: 0.5747 MB / 467.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001026/0.1382, allocations: 0.6159 MB / 468.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004677/0.1387, allocations: 294.8 kB / 468.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003756/0.1391, allocations: 270.6 kB / 469 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.027e-05/0.1391, allocations: 24 kB / 469 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004318/0.1396, allocations: 151.7 kB / 469.2 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002507/0.1398, allocations: 151.4 kB / 469.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001565/0.14, allocations: 153.3 kB / 469.5 MB, free: 13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007547/0.1408, allocations: 0.7754 MB / 470.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1408, allocations: 0 / 470.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.1408, allocations: 0 / 470.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.1408, allocations: 0 / 470.2 MB, free: 12.23 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.001871/0.1427, allocations: 1.001 MB / 471.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.1427, allocations: 8.031 kB / 471.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001385/0.1429, allocations: 102.5 kB / 471.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000958/0.1438, allocations: 166.9 kB / 471.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.1449, allocations: 0.557 MB / 472.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.88e-05/0.1449, allocations: 53.27 kB / 472.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.85e-05/0.145, allocations: 67.84 kB / 472.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/0.1463, allocations: 0.7522 MB / 472.9 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.1464, allocations: 0 / 472.9 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.848e-05/0.1464, allocations: 28 kB / 473 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.75e-05/0.1465, allocations: 33.25 kB / 473 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001292/0.1478, allocations: 0.6492 MB / 473.6 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004111/0.1519, allocations: 2.914 MB / 476.5 MB, free: 5.645 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.1534, allocations: 0.7609 MB / 477.3 MB, free: 4.852 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.224e-05/0.1535, allocations: 4.5 kB / 477.3 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/0.1535, allocations: 46.98 kB / 477.4 MB, free: 4.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.215e-06/0.1535, allocations: 0 / 477.4 MB, free: 4.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.001502/0.155, allocations: 0.7293 MB / 478.1 MB, free: 4.055 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.002e-05/0.1551, allocations: 111.2 kB / 478.2 MB, free: 3.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007531/0.1559, allocations: 0.5822 MB / 478.8 MB, free: 3.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.166e-05/0.1559, allocations: 33.7 kB / 478.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002534/0.1562, allocations: 348.4 kB / 479.2 MB, free: 2.945 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.1563, allocations: 185.4 kB / 479.3 MB, free: 2.762 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.581e-05/0.1564, allocations: 8 kB / 479.3 MB, free: 2.754 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.1565, allocations: 382.7 kB / 479.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004275/0.157, allocations: 217 kB / 479.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005155/0.1575, allocations: 344.5 kB / 480.3 MB, free: 1.773 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004774/0.158, allocations: 252.7 kB / 480.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.158, allocations: 4 kB / 480.5 MB, free: 1.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001622/0.1596, allocations: 0.8159 MB / 481.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005433/0.1602, allocations: 1.41 MB / 482.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.1602, allocations: 4 kB / 482.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000437/0.1606, allocations: 136.8 kB / 482.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005302/0.1612, allocations: 131.8 kB / 483 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0028/0.164, allocations: 2.296 MB / 485.3 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000501/0.1645, allocations: 83.81 kB / 485.4 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.176e-05/0.1646, allocations: 24 kB / 485.4 MB, free: 12.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.446e-06/0.1646, allocations: 4.062 kB / 485.4 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001181/0.1658, allocations: 0.6237 MB / 486 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.1658, allocations: 4 kB / 486 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002633/0.1661, allocations: 109.1 kB / 486.1 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000506/0.1666, allocations: 127.8 kB / 486.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001819/0.1684, allocations: 2.05 MB / 488.3 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004385/0.1688, allocations: 87.36 kB / 488.4 MB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.1689, allocations: 20 kB / 488.4 MB, free: 9.211 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.000342/0.1692, allocations: 301 kB / 488.7 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.624e-05/0.1693, allocations: 67.16 kB / 488.8 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00111/0.1705, allocations: 0.5772 MB / 489.4 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.1705, allocations: 4 kB / 489.4 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.1705, allocations: 0 / 489.4 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.568e-05/0.1705, allocations: 7.953 kB / 489.4 MB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001906/0.1724, allocations: 1.33 MB / 490.7 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1724, allocations: 0 / 490.7 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005279/0.173, allocations: 115.9 kB / 490.8 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.173, allocations: 4 kB / 490.8 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.829e-05/0.173, allocations: 15.98 kB / 490.8 MB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.173, allocations: 7.891 kB / 490.8 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.173, allocations: 0 / 490.8 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.1745, allocations: 0.9382 MB / 491.8 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002275/0.1748, allocations: 192.1 kB / 492 MB, free: 5.551 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.213e-05/0.1749, allocations: 15.95 kB / 492 MB, free: 5.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003625/0.1752, allocations: 43.95 kB / 492 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.415e-05/0.1753, allocations: 36.39 kB / 492.1 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.285e-05/0.1754, allocations: 15.98 kB / 492.1 MB, free: 5.441 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005694/0.1759, allocations: 423.1 kB / 492.5 MB, free: 5.031 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1759, allocations: 3.938 kB / 492.5 MB, free: 5.027 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008841/0.1768, allocations: 263.2 kB / 492.8 MB, free: 4.77 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.00185/0.1787, allocations: 1.576 MB / 494.3 MB, free: 3.156 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001862/0.1806, allocations: 1.1 MB / 495.4 MB, free: 2.035 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1806, allocations: 0 / 495.4 MB, free: 2.035 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004719/0.1811, allocations: 270.5 kB / 495.7 MB, free: 1.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005961/0.1817, allocations: 123.9 kB / 495.8 MB, free: 1.652 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008362/0.19, allocations: 6.845 MB / 0.4909 GB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000642/0.1907, allocations: 0.9615 MB / 0.4918 GB, free: 9.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004425/0.1912, allocations: 124.6 kB / 0.4919 GB, free: 9.555 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003375/0.1915, allocations: 247.4 kB / 0.4922 GB, free: 9.312 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.1915, allocations: 0 / 0.4922 GB, free: 9.312 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2141/0.4057, allocations: 13.87 MB / 0.5057 GB, free: 52.62 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001327/0.4058, allocations: 225.8 kB / 0.5059 GB, free: 52.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/2.251, allocations: 0 / 0.5059 GB, free: 52.38 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