Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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.HydroPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",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.0009777/0.0009777, allocations: 94.91 kB / 16.65 MB, free: 6.27 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.001096/0.001096, allocations: 180.4 kB / 17.56 MB, free: 5.883 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.3/1.3, allocations: 223.3 MB / 241.6 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1657/0.1657, allocations: 38.1 MB / 330.8 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003151/0.0003153, allocations: 8.594 kB / 400.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09956/0.09989, allocations: 59.17 MB / 460 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.005459/0.1054, allocations: 5.125 MB / 465.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003311/0.1087, allocations: 2.226 MB / 467.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00046/0.1092, allocations: 23.88 kB / 467.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004308/0.1097, allocations: 95.28 kB / 467.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007027/0.1104, allocations: 298.6 kB / 467.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007981/0.1112, allocations: 374 kB / 468.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.1122, allocations: 0.9944 MB / 469.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001068/0.1133, allocations: 0.6363 MB / 469.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003828/0.1137, allocations: 270.6 kB / 470 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003827/0.1141, allocations: 306.5 kB / 470.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.462e-05/0.1142, allocations: 24 kB / 470.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000556/0.1147, allocations: 375.1 kB / 470.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.1149, allocations: 139.4 kB / 470.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000252/0.1152, allocations: 300 kB / 471.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008227/0.116, allocations: 0.868 MB / 472 MB, free: 10.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.116, allocations: 4 kB / 472 MB, free: 10.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.116, allocations: 4 kB / 472 MB, free: 10.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.116, allocations: 0 / 472 MB, free: 10.86 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001815/0.1178, allocations: 0.9139 MB / 472.9 MB, free: 9.895 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.1179, allocations: 8.031 kB / 472.9 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001228/0.118, allocations: 98.7 kB / 473 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008675/0.1189, allocations: 151.9 kB / 473.2 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007735/0.1197, allocations: 0.5092 MB / 473.7 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.031e-05/0.1197, allocations: 37.38 kB / 473.7 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.723e-05/0.1198, allocations: 52.36 kB / 473.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001134/0.121, allocations: 0.6942 MB / 474.4 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.121, allocations: 0 / 474.4 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.427e-05/0.1211, allocations: 27.98 kB / 474.5 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-05/0.1211, allocations: 21 kB / 474.5 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.1224, allocations: 0.6362 MB / 475.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00324/0.1256, allocations: 2.704 MB / 477.8 MB, free: 4.738 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.1269, allocations: 0.6417 MB / 478.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004892/0.1274, allocations: 230.2 kB / 478.7 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.604e-05/0.1275, allocations: 8.359 kB / 478.7 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006006/0.1281, allocations: 318 kB / 479 MB, free: 3.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.874e-06/0.1281, allocations: 0 / 479 MB, free: 3.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.001749/0.1299, allocations: 0.7993 MB / 479.8 MB, free: 2.664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.938e-05/0.1299, allocations: 132.5 kB / 479.9 MB, free: 2.504 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006313/0.1306, allocations: 0.4982 MB / 480.4 MB, free: 1.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.98e-05/0.1306, allocations: 33.7 kB / 480.5 MB, free: 1.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.1308, allocations: 299.9 kB / 480.8 MB, free: 1.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.1309, allocations: 138 kB / 480.9 MB, free: 1.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.66e-05/0.131, allocations: 49.69 kB / 481 MB, free: 1.465 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1312, allocations: 362.8 kB / 481.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004578/0.1316, allocations: 205 kB / 481.5 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005228/0.1321, allocations: 339.2 kB / 481.8 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009954/0.1332, allocations: 0.549 MB / 482.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1332, allocations: 0 / 482.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001699/0.1349, allocations: 0.835 MB / 483.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001198/0.135, allocations: 214.7 kB / 483.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.135, allocations: 0 / 483.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004485/0.1355, allocations: 152.8 kB / 483.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003625/0.1359, allocations: 95.88 kB / 483.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002896/0.1388, allocations: 2.481 MB / 486.2 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004655/0.1392, allocations: 91.45 kB / 486.2 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.63e-05/0.1393, allocations: 16 kB / 486.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.013e-06/0.1393, allocations: 6.344 kB / 486.3 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001269/0.1406, allocations: 0.6425 MB / 486.9 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1406, allocations: 4 kB / 486.9 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003181/0.1409, allocations: 126 kB / 487 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003416/0.1413, allocations: 96.14 kB / 487.1 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002098/0.1434, allocations: 2.252 MB / 489.4 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004301/0.1438, allocations: 83.48 kB / 489.5 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.495e-05/0.1439, allocations: 23.94 kB / 489.5 MB, free: 8.469 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * 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,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002943/0.1442, allocations: 281 kB / 489.8 MB, free: 8.184 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.06e-05/0.1442, allocations: 59.27 kB / 489.8 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001156/0.1454, allocations: 0.5471 MB / 490.4 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.1454, allocations: 4 kB / 490.4 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.1454, allocations: 0 / 490.4 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.1454, allocations: 4 kB / 490.4 MB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001762/0.1472, allocations: 1.209 MB / 491.6 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.1472, allocations: 0 / 491.6 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004384/0.1477, allocations: 91.94 kB / 491.7 MB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.068e-05/0.1478, allocations: 32.78 kB / 491.7 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.242e-05/0.1478, allocations: 19.98 kB / 491.7 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009134/0.1487, allocations: 1.347 MB / 493.1 MB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1487, allocations: 4 kB / 493.1 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.1504, allocations: 0.884 MB / 494 MB, free: 3.746 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000177/0.1506, allocations: 180.2 kB / 494.1 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.948e-05/0.1506, allocations: 12 kB / 494.1 MB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004026/0.151, allocations: 51.94 kB / 494.2 MB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.684e-05/0.1512, allocations: 35.95 kB / 494.2 MB, free: 3.453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/0.1512, allocations: 8 kB / 494.2 MB, free: 3.445 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004754/0.1517, allocations: 358.8 kB / 494.6 MB, free: 3.098 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1517, allocations: 4 kB / 494.6 MB, free: 3.094 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008255/0.1525, allocations: 247.4 kB / 494.8 MB, free: 2.852 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001847/0.1544, allocations: 1.45 MB / 496.3 MB, free: 1.367 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001971/0.1563, allocations: 1.177 MB / 497.5 MB, free: 144 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.1564, allocations: 0 / 497.5 MB, free: 144 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006088/0.157, allocations: 363 kB / 497.8 MB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007151/0.1577, allocations: 116.1 kB / 497.9 MB, free: 15.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009124/0.1668, allocations: 5.951 MB / 0.4921 GB, free: 9.516 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000438/0.1673, allocations: 0.8979 MB / 0.493 GB, free: 8.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003577/0.1677, allocations: 108.3 kB / 0.4931 GB, free: 8.484 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002645/0.168, allocations: 191.4 kB / 0.4932 GB, free: 8.297 MB / 382.1 MB Notification: Performance of SimCode: time 8.01e-07/0.168, allocations: 0 / 0.4932 GB, free: 8.297 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2113/0.3793, allocations: 12.82 MB / 0.5058 GB, free: 53.62 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000148/0.3795, allocations: 244.1 kB / 0.506 GB, free: 53.37 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.968/2.348, allocations: 2.531 kB / 0.506 GB, free: 53.37 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches