Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature",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.001256/0.001256, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001356/0.001356, allocations: 194.4 kB / 16.14 MB, free: 6.707 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.245/1.245, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.489/2.489, allocations: 461.9 MB / 0.7342 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 66.91 kB / 0.8985 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.2344, allocations: 157.4 MB / 1.052 GB, free: 8.188 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature): time 0.003426/0.2378, allocations: 2.232 MB / 1.054 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001856/0.2397, allocations: 1.354 MB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.2399, allocations: 4 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000527/0.2404, allocations: 179.7 kB / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000272/0.2407, allocations: 115.5 kB / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003315/0.2411, allocations: 131.7 kB / 1.056 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002541/0.2413, allocations: 215.1 kB / 1.056 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.2415, allocations: 48.59 kB / 1.056 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001486/0.2416, allocations: 87.5 kB / 1.056 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001308/0.2418, allocations: 99.5 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.91e-05/0.2418, allocations: 4 kB / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001265/0.2419, allocations: 47.97 kB / 1.057 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.987e-05/0.242, allocations: 83.67 kB / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.2421, allocations: 130.9 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003283/0.2425, allocations: 342.7 kB / 1.057 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.2425, allocations: 0 / 1.057 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.92e-07/0.2425, allocations: 0 / 1.057 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.772e-06/0.2425, allocations: 4 kB / 1.057 GB, free: 3.109 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0008448/0.2434, allocations: 0.6763 MB / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.2434, allocations: 11.97 kB / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.925e-05/0.2434, allocations: 34.75 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.042e-05/0.2435, allocations: 44.38 kB / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003818/0.2439, allocations: 360.2 kB / 1.058 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.2439, allocations: 8.125 kB / 1.058 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.47e-05/0.2439, allocations: 4 kB / 1.058 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001628/0.2441, allocations: 77.66 kB / 1.058 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.292e-06/0.2441, allocations: 3.938 kB / 1.058 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.2442, allocations: 4 kB / 1.058 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.2442, allocations: 0 / 1.058 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001034/0.2443, allocations: 39.98 kB / 1.058 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005949/0.2449, allocations: 460.5 kB / 1.059 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001735/0.2451, allocations: 66.67 kB / 1.059 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.765e-05/0.2451, allocations: 24.84 kB / 1.059 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.2451, allocations: 4 kB / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001507/0.2453, allocations: 79.31 kB / 1.059 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.463e-06/0.2453, allocations: 3.938 kB / 1.059 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0003168/0.2456, allocations: 145 kB / 1.059 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.321e-05/0.2457, allocations: 51.41 kB / 1.059 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004986/0.2462, allocations: 0.5333 MB / 1.06 GB, free: 308 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.2462, allocations: 29.7 kB / 1.06 GB, free: 272 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001424/0.2464, allocations: 219.9 kB / 1.06 GB, free: 48 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.155e-05/0.2464, allocations: 15.78 kB / 1.06 GB, free: 32 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.519e-05/0.2465, allocations: 45.7 kB / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.2466, allocations: 354.8 kB / 1.06 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.943e-05/0.2467, allocations: 51.97 kB / 1.06 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/0.2468, allocations: 80.05 kB / 1.06 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001474/0.247, allocations: 79.67 kB / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.247, allocations: 4 kB / 1.061 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002921/0.2473, allocations: 205 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.2473, allocations: 4 kB / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.2473, allocations: 0 / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.2473, allocations: 3.938 kB / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.2474, allocations: 23.98 kB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.82e-06/0.2475, allocations: 0 / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.2476, allocations: 16 kB / 1.061 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.949e-05/0.2476, allocations: 11.94 kB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.TWat.tab.nextTimeEvent,$whenCondition1,TWat.tab.nextTimeEventScaled,$PRE.TWat.tab.nextTimeEventScaled,TWat.tab.nextTimeEvent,assWatTem.hys.y,$PRE.assWatTem.hys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001587/0.2478, allocations: 186.7 kB / 1.061 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.191e-05/0.2478, allocations: 39.53 kB / 1.061 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.465e-05/0.2479, allocations: 47.8 kB / 1.061 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.2479, allocations: 3.938 kB / 1.061 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.2479, allocations: 0 / 1.061 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.2479, allocations: 0 / 1.061 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002233/0.2481, allocations: 301.4 kB / 1.061 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2481, allocations: 0 / 1.061 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.3e-05/0.2482, allocations: 4.25 kB / 1.061 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.2482, allocations: 0 / 1.061 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.2482, allocations: 12 kB / 1.061 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.2482, allocations: 7.922 kB / 1.061 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2482, allocations: 0 / 1.061 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002097/0.2484, allocations: 148.6 kB / 1.061 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.56e-05/0.2485, allocations: 116.5 kB / 1.062 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.536e-05/0.2485, allocations: 0 / 1.062 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.401e-05/0.2486, allocations: 15.92 kB / 1.062 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.719e-05/0.2487, allocations: 11.98 kB / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.2487, allocations: 4 kB / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003437/0.249, allocations: 362.8 kB / 1.062 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.249, allocations: 0 / 1.062 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002488/0.2493, allocations: 51.92 kB / 1.062 GB, free: 13.75 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,assWatTem.hys.y,TWat.tab.nextTimeEvent,TWat.tab.nextTimeEventScaled) * Number of discrete states: 3 (TWat.tab.nextTimeEventScaled,assWatTem.hys.y,TWat.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001237/0.2505, allocations: 1.001 MB / 1.063 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002173/0.2508, allocations: 91.95 kB / 1.063 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.2508, allocations: 7.938 kB / 1.063 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.202e-05/0.2509, allocations: 23.98 kB / 1.063 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.2512, allocations: 65.14 kB / 1.063 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003257/0.2545, allocations: 3.161 MB / 1.066 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.2548, allocations: 0.8186 MB / 1.067 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.446e-05/0.2549, allocations: 29.53 kB / 1.067 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.255, allocations: 111.4 kB / 1.067 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of SimCode: time 3.3e-07/0.2551, allocations: 0 / 1.067 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01633/0.2714, allocations: 6.881 MB / 1.074 GB, free: 1.793 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002492/0.2717, allocations: 273.3 kB / 1.074 GB, free: 1.434 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.787/2.059, allocations: 0 / 1.074 GB, free: 1.434 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature.fmu > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches