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.0008462/0.0008463, allocations: 92.25 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.0009693/0.0009694, allocations: 173.3 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.241/1.241, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1662/0.1662, allocations: 38.09 MB / 330.8 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002712/0.0002712, allocations: 9.531 kB / 400.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09427/0.09456, allocations: 59.17 MB / 460 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.006221/0.1008, allocations: 5.398 MB / 465.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003712/0.1046, allocations: 2.316 MB / 467.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004939/0.1051, allocations: 35.81 kB / 467.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004272/0.1055, allocations: 103.1 kB / 467.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007291/0.1063, allocations: 298.6 kB / 468.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009789/0.1073, allocations: 462.6 kB / 468.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001048/0.1083, allocations: 1.124 MB / 469.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009956/0.1093, allocations: 0.7121 MB / 470.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003941/0.1097, allocations: 298.5 kB / 470.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003885/0.1101, allocations: 334.2 kB / 471 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.574e-05/0.1102, allocations: 24 kB / 471 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005772/0.1108, allocations: 379.1 kB / 471.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000171/0.111, allocations: 147.3 kB / 471.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000293/0.1113, allocations: 339.6 kB / 471.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000919/0.1122, allocations: 0.9964 MB / 472.9 MB, free: 9.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1122, allocations: 8 kB / 472.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1122, allocations: 0 / 472.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.906e-06/0.1122, allocations: 3.938 kB / 472.9 MB, free: 9.953 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.001701/0.1139, allocations: 0.9817 MB / 473.9 MB, free: 8.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.114, allocations: 8.031 kB / 473.9 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001132/0.1141, allocations: 102.7 kB / 474 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008239/0.1149, allocations: 163.8 kB / 474.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008471/0.1158, allocations: 0.5773 MB / 474.7 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.158e-05/0.1159, allocations: 45.69 kB / 474.8 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.116, allocations: 64.38 kB / 474.8 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.1173, allocations: 0.7757 MB / 475.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.1173, allocations: 3.938 kB / 475.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.838e-05/0.1174, allocations: 27.94 kB / 475.6 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.257e-05/0.1174, allocations: 29.31 kB / 475.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.1186, allocations: 0.6453 MB / 476.3 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003925/0.1226, allocations: 2.926 MB / 479.2 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.124, allocations: 0.7307 MB / 480 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004708/0.1245, allocations: 243 kB / 480.2 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.306e-05/0.1246, allocations: 12.42 kB / 480.2 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/0.1246, allocations: 39 kB / 480.3 MB, free: 2.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.474e-06/0.1246, allocations: 8 kB / 480.3 MB, free: 2.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.001516/0.1262, allocations: 0.725 MB / 481 MB, free: 1.547 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.228e-05/0.1262, allocations: 119.4 kB / 481.1 MB, free: 1.406 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007916/0.127, allocations: 0.5821 MB / 481.7 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.964e-05/0.1271, allocations: 33.7 kB / 481.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002598/0.1274, allocations: 348.5 kB / 482.1 MB, free: 440 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.1275, allocations: 177.4 kB / 482.2 MB, free: 260 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.495e-05/0.1276, allocations: 57.64 kB / 482.3 MB, free: 196 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.1277, allocations: 382.9 kB / 482.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004452/0.1282, allocations: 213 kB / 482.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005326/0.1287, allocations: 352.5 kB / 483.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.1298, allocations: 0.5762 MB / 483.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.1298, allocations: 0 / 483.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001829/0.1317, allocations: 0.8276 MB / 484.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001207/0.1318, allocations: 188 kB / 484.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.659e-06/0.1318, allocations: 4 kB / 484.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003939/0.1322, allocations: 132.6 kB / 484.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005281/0.1327, allocations: 127.9 kB / 485.1 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002785/0.1355, allocations: 2.253 MB / 487.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004943/0.1361, allocations: 87.25 kB / 487.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.216e-05/0.1361, allocations: 23.98 kB / 487.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.824e-06/0.1361, allocations: 10.44 kB / 487.4 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001253/0.1374, allocations: 0.6277 MB / 488.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.1374, allocations: 4 kB / 488.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002573/0.1377, allocations: 97.44 kB / 488.2 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00052/0.1382, allocations: 139.8 kB / 488.3 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001947/0.1402, allocations: 2.023 MB / 490.3 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004609/0.1406, allocations: 87.41 kB / 490.4 MB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.827e-05/0.1407, allocations: 23.98 kB / 490.4 MB, free: 7.598 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 (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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003536/0.141, allocations: 300.9 kB / 490.7 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.948e-05/0.1411, allocations: 71.16 kB / 490.8 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/0.1423, allocations: 0.581 MB / 491.4 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.1423, allocations: 12 kB / 491.4 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.1423, allocations: 0 / 491.4 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.1423, allocations: 3.984 kB / 491.4 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001981/0.1443, allocations: 1.341 MB / 492.7 MB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1443, allocations: 0 / 492.7 MB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005435/0.1449, allocations: 115.9 kB / 492.8 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.199e-06/0.1449, allocations: 112 / 492.8 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.145, allocations: 15.94 kB / 492.9 MB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.145, allocations: 7.938 kB / 492.9 MB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.145, allocations: 0 / 492.9 MB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.1465, allocations: 0.9287 MB / 493.8 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002138/0.1467, allocations: 196.1 kB / 494 MB, free: 3.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.045e-05/0.1468, allocations: 16 kB / 494 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003907/0.1472, allocations: 43.89 kB / 494 MB, free: 3.871 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.109e-05/0.1473, allocations: 32.39 kB / 494.1 MB, free: 3.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.987e-05/0.1474, allocations: 16 kB / 494.1 MB, free: 3.824 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000577/0.1479, allocations: 427 kB / 494.5 MB, free: 3.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.148, allocations: 0 / 494.5 MB, free: 3.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008689/0.1488, allocations: 263.2 kB / 494.8 MB, free: 3.152 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001898/0.1507, allocations: 1.489 MB / 496.3 MB, free: 1.633 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002022/0.1528, allocations: 1.111 MB / 497.4 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1528, allocations: 0 / 497.4 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004918/0.1533, allocations: 267 kB / 497.6 MB, free: 244 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008303/0.1541, allocations: 137.6 kB / 497.8 MB, free: 112 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01111/0.1653, allocations: 6.845 MB / 0.4928 GB, free: 9.066 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005413/0.1658, allocations: 0.9499 MB / 0.4937 GB, free: 8.086 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004765/0.1663, allocations: 116.6 kB / 0.4938 GB, free: 7.969 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003538/0.1667, allocations: 255.3 kB / 0.4941 GB, free: 7.719 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.1667, allocations: 0 / 0.4941 GB, free: 7.719 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2077/0.3744, allocations: 14.11 MB / 0.5078 GB, free: 54.55 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001653/0.3746, allocations: 251.1 kB / 0.5081 GB, free: 54.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.041/2.416, allocations: 0 / 0.5081 GB, free: 54.29 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/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) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches