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.0008605/0.0008605, allocations: 92.91 kB / 16.65 MB, free: 6.535 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.001071/0.001071, allocations: 176.5 kB / 17.56 MB, free: 6.18 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.259/1.259, allocations: 223.2 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1681/0.1681, allocations: 38.09 MB / 330.8 MB, free: 8.523 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003504/0.0003504, allocations: 8 kB / 400.8 MB, free: 34.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1033, allocations: 59.18 MB / 460 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.006747/0.1101, allocations: 6.065 MB / 466 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004924/0.115, allocations: 2.868 MB / 468.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009211/0.116, allocations: 43.75 kB / 469 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005362/0.1165, allocations: 107.1 kB / 469.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001132/0.1177, allocations: 426.2 kB / 469.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.1189, allocations: 0.5059 MB / 470 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001317/0.1202, allocations: 1.393 MB / 471.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001309/0.1215, allocations: 0.8527 MB / 472.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004724/0.122, allocations: 346.2 kB / 472.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004654/0.1225, allocations: 405.9 kB / 473 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.265e-05/0.1225, allocations: 28 kB / 473 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008672/0.1234, allocations: 0.5807 MB / 473.6 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001858/0.1236, allocations: 191.3 kB / 473.8 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003059/0.1239, allocations: 379.4 kB / 474.1 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.125, allocations: 1.183 MB / 475.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.125, allocations: 0 / 475.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.125, allocations: 0 / 475.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.125, allocations: 3.938 kB / 475.3 MB, free: 7.484 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.002011/0.127, allocations: 1.06 MB / 476.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.1271, allocations: 12.03 kB / 476.4 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001312/0.1272, allocations: 110.7 kB / 476.5 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001183/0.1284, allocations: 207.6 kB / 476.7 MB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009301/0.1293, allocations: 0.6046 MB / 477.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.994e-05/0.1294, allocations: 49.67 kB / 477.4 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.1295, allocations: 76.28 kB / 477.4 MB, free: 5.277 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/0.131, allocations: 0.8976 MB / 478.3 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.573e-05/0.131, allocations: 7.938 kB / 478.3 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.463e-05/0.1311, allocations: 28 kB / 478.4 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.976e-05/0.1312, allocations: 37.3 kB / 478.4 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/0.1326, allocations: 0.8014 MB / 479.2 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004312/0.1369, allocations: 3.288 MB / 482.5 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/0.1386, allocations: 0.9916 MB / 483.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005708/0.1392, allocations: 319.3 kB / 483.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.061e-05/0.1392, allocations: 12.55 kB / 483.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/0.1393, allocations: 43.12 kB / 483.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 2.264e-06/0.1393, allocations: 3.938 kB / 483.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.004877/0.1442, allocations: 2.611 MB / 486.5 MB, free: 11.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.815e-05/0.1443, allocations: 111.4 kB / 486.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008125/0.1451, allocations: 0.5861 MB / 487.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.804e-05/0.1451, allocations: 41.7 kB / 487.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003104/0.1455, allocations: 364.2 kB / 487.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001785/0.1456, allocations: 220.8 kB / 487.8 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.601e-05/0.1457, allocations: 61.69 kB / 487.8 MB, free: 10.47 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.1459, allocations: 382.7 kB / 488.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005682/0.1465, allocations: 285.8 kB / 488.5 MB, free: 9.805 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006555/0.1471, allocations: 429.8 kB / 488.9 MB, free: 9.328 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/0.1484, allocations: 0.7201 MB / 489.6 MB, free: 8.551 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1485, allocations: 0 / 489.6 MB, free: 8.551 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001624/0.1501, allocations: 0.854 MB / 490.5 MB, free: 7.688 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001456/0.1502, allocations: 205.4 kB / 490.7 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.1503, allocations: 4 kB / 490.7 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002763/0.1505, allocations: 64.75 kB / 490.7 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007278/0.1513, allocations: 179.8 kB / 490.9 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.1529, allocations: 1.629 MB / 492.5 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004812/0.1534, allocations: 67.95 kB / 492.6 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.755e-05/0.1534, allocations: 24 kB / 492.6 MB, free: 5.332 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.695e-06/0.1534, allocations: 4 kB / 492.6 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001373/0.1548, allocations: 0.7437 MB / 493.4 MB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1548, allocations: 4 kB / 493.4 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001945/0.155, allocations: 65.23 kB / 493.5 MB, free: 4.512 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006633/0.1557, allocations: 171.8 kB / 493.6 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001404/0.1571, allocations: 1.619 MB / 495.2 MB, free: 2.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000455/0.1576, allocations: 56.02 kB / 495.3 MB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.265e-05/0.1576, allocations: 27.98 kB / 495.3 MB, free: 2.504 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003784/0.158, allocations: 328.8 kB / 495.6 MB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.1581, allocations: 71.16 kB / 495.7 MB, free: 2.102 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001587/0.1597, allocations: 0.7958 MB / 496.5 MB, free: 1.297 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.1598, allocations: 11.94 kB / 496.5 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1598, allocations: 8 kB / 496.5 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.1598, allocations: 7.922 kB / 496.5 MB, free: 1.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003764/0.1635, allocations: 2.197 MB / 498.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.1636, allocations: 8 kB / 498.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005526/0.1641, allocations: 136.3 kB / 498.9 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001899/0.1643, allocations: 56.81 kB / 498.9 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.583e-05/0.1644, allocations: 20 kB / 498.9 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001262/0.1657, allocations: 1.584 MB / 0.4888 GB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/0.1657, allocations: 8 kB / 0.4888 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002087/0.1678, allocations: 1.365 MB / 0.4901 GB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002342/0.168, allocations: 204.1 kB / 0.4903 GB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.837e-05/0.1681, allocations: 23.98 kB / 0.4904 GB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004683/0.1686, allocations: 55.89 kB / 0.4904 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.1687, allocations: 71.8 kB / 0.4905 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.813e-05/0.1688, allocations: 24 kB / 0.4905 GB, free: 11.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005622/0.1693, allocations: 419 kB / 0.4909 GB, free: 10.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1693, allocations: 4 kB / 0.4909 GB, free: 10.72 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009842/0.1703, allocations: 256 kB / 0.4911 GB, free: 10.47 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002381/0.1727, allocations: 1.92 MB / 0.493 GB, free: 8.438 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00231/0.175, allocations: 1.301 MB / 0.4943 GB, free: 7.117 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.1751, allocations: 0 / 0.4943 GB, free: 7.117 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008688/0.1759, allocations: 0.5118 MB / 0.4948 GB, free: 6.594 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00139/0.1773, allocations: 170 kB / 0.495 GB, free: 6.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1902/0.3676, allocations: 7.343 MB / 0.5021 GB, free: 52.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006764/0.3683, allocations: 0.9823 MB / 0.5031 GB, free: 52.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006804/0.369, allocations: 142.2 kB / 0.5032 GB, free: 52.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000425/0.3694, allocations: 280.8 kB / 0.5035 GB, free: 52.09 MB / 382.1 MB Notification: Performance of SimCode: time 9.51e-07/0.3694, allocations: 0 / 0.5035 GB, free: 52.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0291/0.3985, allocations: 14.72 MB / 0.5179 GB, free: 48.46 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001445/0.3987, allocations: 236.9 kB / 0.5181 GB, free: 48.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.981/2.379, allocations: 0 / 0.5181 GB, free: 48.21 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/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) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches