Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.SteamProperties.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Media.Examples.SteamProperties,fileNamePrefix="Buildings_9_Buildings_Media_Examples_SteamProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.SteamProperties,fileNamePrefix="Buildings_9_Buildings_Media_Examples_SteamProperties",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.001101/0.001101, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.35/1.35, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.403/2.403, allocations: 390.3 MB / 0.6647 GB, free: 408 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 63.89 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6522/0.6535, allocations: 140.4 MB / 0.9497 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1382/0.7918, allocations: 136.1 MB / 1.083 GB, free: 9.172 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02609/0.8179, allocations: 22.34 MB / 1.104 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001947/0.8182, allocations: 4 kB / 1.104 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003278/0.8185, allocations: 55.66 kB / 1.105 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003777/0.819, allocations: 87.38 kB / 1.105 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.01823/0.8372, allocations: 6.679 MB / 1.111 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0005408/0.8378, allocations: 247.9 kB / 1.111 GB, free: 11.7 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 8.308e-05/0.8378, allocations: 9.562 kB / 1.111 GB, free: 11.7 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004469/0.8383, allocations: 143.4 kB / 1.112 GB, free: 11.55 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002238/0.8385, allocations: 87.66 kB / 1.112 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 3.875e-05/0.8386, allocations: 8 kB / 1.112 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02058/0.8592, allocations: 10.68 MB / 1.122 GB, free: 0.7695 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.8593, allocations: 35.89 kB / 1.122 GB, free: 0.7344 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0001448/0.8595, allocations: 83.64 kB / 1.122 GB, free: 0.6523 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.01521/0.8747, allocations: 6.168 MB / 1.128 GB, free: 10.47 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.8747, allocations: 4 kB / 1.128 GB, free: 10.47 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.166e-06/0.8748, allocations: 8 kB / 1.128 GB, free: 10.46 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.775e-06/0.8748, allocations: 0 / 1.128 GB, free: 10.46 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.003434/0.8782, allocations: 1.181 MB / 1.129 GB, free: 9.23 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.8783, allocations: 8.031 kB / 1.129 GB, free: 9.223 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.033e-05/0.8783, allocations: 54.73 kB / 1.129 GB, free: 9.16 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001121/0.8795, allocations: 84.75 kB / 1.129 GB, free: 9.078 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002411/0.8797, allocations: 224 kB / 1.13 GB, free: 8.82 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.8797, allocations: 15.94 kB / 1.13 GB, free: 8.805 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.32e-05/0.8798, allocations: 16 kB / 1.13 GB, free: 8.789 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.881, allocations: 456.5 kB / 1.13 GB, free: 8.324 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.881, allocations: 3.938 kB / 1.13 GB, free: 8.32 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.748e-05/0.881, allocations: 8 kB / 1.13 GB, free: 8.312 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.881, allocations: 4 kB / 1.13 GB, free: 8.309 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001198/0.8822, allocations: 0.5931 MB / 1.131 GB, free: 7.715 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00103/0.8833, allocations: 0.8784 MB / 1.132 GB, free: 6.75 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008326/0.8841, allocations: 247.1 kB / 1.132 GB, free: 6.5 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.8843, allocations: 80.83 kB / 1.132 GB, free: 6.418 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08483/0.9691, allocations: 35.05 MB / 1.166 GB, free: 288 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.9692, allocations: 38.56 kB / 1.166 GB, free: 240 kB / 0.92 GB Notification: Performance of pre-optimization done (n=25): time 3.176e-06/0.9692, allocations: 3.984 kB / 1.166 GB, free: 236 kB / 0.92 GB Notification: Performance of matching and sorting (n=25): time 0.001821/0.971, allocations: 419.8 kB / 1.167 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4e-05/0.9711, allocations: 55.41 kB / 1.167 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001312/0.9712, allocations: 144.5 kB / 1.167 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.404e-05/0.9713, allocations: 29.7 kB / 1.167 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.687e-05/0.9713, allocations: 112.4 kB / 1.167 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 7.36e-05/0.9714, allocations: 82.75 kB / 1.167 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.9716, allocations: 81.58 kB / 1.167 GB, free: 15.28 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.9717, allocations: 326.8 kB / 1.167 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001793/0.9719, allocations: 83.89 kB / 1.167 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/0.9721, allocations: 129.6 kB / 1.168 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004352/0.9725, allocations: 211 kB / 1.168 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.9726, allocations: 4 kB / 1.168 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007004/0.9733, allocations: 303 kB / 1.168 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.9733, allocations: 4 kB / 1.168 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.9733, allocations: 4 kB / 1.168 GB, free: 14.19 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.9733, allocations: 0 / 1.168 GB, free: 14.19 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.9736, allocations: 79.88 kB / 1.168 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.9736, allocations: 4 kB / 1.168 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.9738, allocations: 23.69 kB / 1.168 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.121e-05/0.9738, allocations: 27.97 kB / 1.168 GB, free: 14.06 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001322/0.974, allocations: 133.9 kB / 1.168 GB, free: 13.92 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001766/0.9742, allocations: 15.81 kB / 1.168 GB, free: 13.9 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002292/0.9765, allocations: 2.346 MB / 1.171 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.9765, allocations: 11.98 kB / 1.171 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.9765, allocations: 0 / 1.171 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.9765, allocations: 7.922 kB / 1.171 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003154/0.9797, allocations: 3.427 MB / 1.174 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.9797, allocations: 0 / 1.174 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002518/0.9799, allocations: 59.89 kB / 1.174 GB, free: 7.938 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/0.98, allocations: 7.938 kB / 1.174 GB, free: 7.93 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/0.98, allocations: 4 kB / 1.174 GB, free: 7.926 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.98, allocations: 4 kB / 1.174 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.98, allocations: 0 / 1.174 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007459/0.9807, allocations: 0.5463 MB / 1.175 GB, free: 7.359 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.9809, allocations: 144.5 kB / 1.175 GB, free: 7.199 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.637e-05/0.9809, allocations: 7.938 kB / 1.175 GB, free: 7.191 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002172/0.9811, allocations: 16 kB / 1.175 GB, free: 7.176 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.893e-05/0.9812, allocations: 19.97 kB / 1.175 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.9812, allocations: 8 kB / 1.175 GB, free: 7.148 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.497e-05/0.9813, allocations: 109.4 kB / 1.175 GB, free: 7.043 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9813, allocations: 0 / 1.175 GB, free: 7.043 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.00408/0.9854, allocations: 1.628 MB / 1.176 GB, free: 5.414 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * 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.0098/0.9952, allocations: 2.889 MB / 1.179 GB, free: 2.492 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0008003/0.996, allocations: 340.5 kB / 1.18 GB, free: 2.164 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.9961, allocations: 0 / 1.18 GB, free: 2.164 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003634/0.9964, allocations: 240.5 kB / 1.18 GB, free: 1.93 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000606/0.9971, allocations: 76.17 kB / 1.18 GB, free: 1.855 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005467/1.003, allocations: 3.043 MB / 1.183 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/1.003, allocations: 0.7699 MB / 1.184 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.000545/1.003, allocations: 405.1 kB / 1.184 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/1.004, allocations: 107.4 kB / 1.184 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of SimCode: time 4.21e-07/1.004, allocations: 0 / 1.184 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1006/1.104, allocations: 60.92 MB / 1.244 GB, free: 496 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/12.43, allocations: 19.66 kB / 1.244 GB, free: 484 kB / 0.9981 GB (rm -f Buildings_9_Buildings.Media.Examples.SteamProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamProperties.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamProperties.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Media.Examples.SteamProperties_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Media_Examples_SteamProperties.fmu > Buildings_9_Buildings.Media.Examples.SteamProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamProperties_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches