Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",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.001054/0.001054, allocations: 90.72 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.00135/0.00135, allocations: 177 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.291/1.291, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.166/0.166, allocations: 38.09 MB / 330.8 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002797/0.0002797, allocations: 9.75 kB / 400.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0968/0.09709, allocations: 59.17 MB / 460 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.00688/0.104, allocations: 5.421 MB / 465.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003963/0.108, allocations: 2.327 MB / 467.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006308/0.1087, allocations: 31.81 kB / 467.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000464/0.1092, allocations: 107.2 kB / 467.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000851/0.11, allocations: 302.5 kB / 468.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.1111, allocations: 466.5 kB / 468.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001065/0.1121, allocations: 1.135 MB / 469.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001031/0.1132, allocations: 0.7121 MB / 470.5 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000409/0.1136, allocations: 302.4 kB / 470.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003772/0.114, allocations: 338.2 kB / 471.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.698e-05/0.114, allocations: 24 kB / 471.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005624/0.1146, allocations: 383.1 kB / 471.5 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001575/0.1148, allocations: 147.3 kB / 471.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002613/0.115, allocations: 347.5 kB / 472 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008656/0.1159, allocations: 1.008 MB / 473 MB, free: 9.867 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1159, allocations: 4 kB / 473 MB, free: 9.863 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1159, allocations: 4 kB / 473 MB, free: 9.859 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.697e-06/0.116, allocations: 0 / 473 MB, free: 9.859 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.00182/0.1178, allocations: 1.001 MB / 474 MB, free: 8.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.1178, allocations: 15.97 kB / 474 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001237/0.118, allocations: 106.7 kB / 474.1 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008086/0.1188, allocations: 159.7 kB / 474.3 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008828/0.1197, allocations: 0.5813 MB / 474.8 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.753e-05/0.1197, allocations: 53.62 kB / 474.9 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.1199, allocations: 64.28 kB / 475 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.1212, allocations: 0.7836 MB / 475.7 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.1212, allocations: 8 kB / 475.7 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.814e-05/0.1213, allocations: 20 kB / 475.8 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-05/0.1213, allocations: 29.31 kB / 475.8 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001298/0.1226, allocations: 0.6843 MB / 476.5 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00382/0.1265, allocations: 2.946 MB / 479.4 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.128, allocations: 0.7695 MB / 480.2 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005323/0.1286, allocations: 270.9 kB / 480.5 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.031e-05/0.1286, allocations: 8.438 kB / 480.5 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.1287, allocations: 35 kB / 480.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.585e-06/0.1287, allocations: 0 / 480.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.001741/0.1304, allocations: 0.8028 MB / 481.3 MB, free: 1.223 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.102e-05/0.1305, allocations: 107.2 kB / 481.4 MB, free: 1.094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008183/0.1313, allocations: 0.5867 MB / 482 MB, free: 0.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.024e-05/0.1314, allocations: 33.7 kB / 482 MB, free: 472 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002475/0.1317, allocations: 352.5 kB / 482.4 MB, free: 112 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.1318, allocations: 181.8 kB / 482.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.315e-05/0.1319, allocations: 53.69 kB / 482.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.1321, allocations: 378.8 kB / 483 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005209/0.1326, allocations: 237.2 kB / 483.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006088/0.1332, allocations: 373.5 kB / 483.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.1343, allocations: 0.6134 MB / 484.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.1344, allocations: 0 / 484.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001868/0.1362, allocations: 0.8849 MB / 485.1 MB, free: 13.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001139/0.1364, allocations: 198.9 kB / 485.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.1364, allocations: 4 kB / 485.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000398/0.1368, allocations: 116.8 kB / 485.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005833/0.1374, allocations: 151.8 kB / 485.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002751/0.1401, allocations: 2.257 MB / 487.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004812/0.1406, allocations: 91.48 kB / 487.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.227e-05/0.1407, allocations: 23.94 kB / 487.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.103e-06/0.1407, allocations: 4 kB / 487.9 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001351/0.142, allocations: 0.6699 MB / 488.6 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.1421, allocations: 12.09 kB / 488.6 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000256/0.1423, allocations: 96.8 kB / 488.7 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005519/0.1429, allocations: 143.8 kB / 488.8 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001912/0.1448, allocations: 2.027 MB / 490.8 MB, free: 7.172 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004678/0.1453, allocations: 83.41 kB / 490.9 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.955e-05/0.1453, allocations: 24 kB / 491 MB, free: 7.066 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 (61): * Single equations (assignments): 60 * 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.0003525/0.1457, allocations: 312.8 kB / 491.3 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.1458, allocations: 67.16 kB / 491.3 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001294/0.1471, allocations: 0.6242 MB / 491.9 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1471, allocations: 4 kB / 491.9 MB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1471, allocations: 7.938 kB / 492 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.1471, allocations: 3.984 kB / 492 MB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002153/0.1493, allocations: 1.392 MB / 493.4 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.1493, allocations: 4 kB / 493.4 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005838/0.1499, allocations: 115.9 kB / 493.5 MB, free: 4.477 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.1499, allocations: 8 kB / 493.5 MB, free: 4.469 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.501e-05/0.15, allocations: 15.98 kB / 493.5 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.15, allocations: 7.938 kB / 493.5 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.15, allocations: 0 / 493.5 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001784/0.1518, allocations: 0.9951 MB / 494.5 MB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002124/0.152, allocations: 196.1 kB / 494.7 MB, free: 3.215 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.896e-05/0.1521, allocations: 12 kB / 494.7 MB, free: 3.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004057/0.1525, allocations: 55.94 kB / 494.8 MB, free: 3.148 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.697e-05/0.1526, allocations: 36.33 kB / 494.8 MB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.341e-05/0.1527, allocations: 23.98 kB / 494.8 MB, free: 3.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005729/0.1532, allocations: 419.1 kB / 495.2 MB, free: 2.684 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1532, allocations: 0 / 495.2 MB, free: 2.684 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008892/0.1541, allocations: 267.3 kB / 495.5 MB, free: 2.422 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 (51): * Single equations (assignments): 50 * 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.002086/0.1562, allocations: 1.562 MB / 497 MB, free: 0.832 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002282/0.1585, allocations: 1.183 MB / 498.2 MB, free: 15.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.1585, allocations: 0 / 498.2 MB, free: 15.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005924/0.1591, allocations: 294.4 kB / 498.5 MB, free: 15.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008539/0.16, allocations: 133.8 kB / 498.6 MB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/0.1711, allocations: 6.953 MB / 0.4937 GB, free: 8.062 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005262/0.1717, allocations: 0.9576 MB / 0.4947 GB, free: 7.074 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004652/0.1721, allocations: 116.6 kB / 0.4948 GB, free: 6.957 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003459/0.1725, allocations: 255.3 kB / 0.495 GB, free: 6.707 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.1725, allocations: 4 kB / 0.495 GB, free: 6.703 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2142/0.3867, allocations: 14.31 MB / 0.509 GB, free: 54.17 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001432/0.3869, allocations: 237.8 kB / 0.5092 GB, free: 53.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.007/2.394, allocations: 4 kB / 0.5092 GB, free: 53.91 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches