Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWat.y.1.|per.TWatMax|assWatTem.assMes.u",fileNamePrefix="Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWat.y.1.|per.TWatMax|assWatTem.assMes.u",fileNamePrefix="Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 108.6 kB / 16.41 MB, free: 6.496 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.001321/0.001321, allocations: 189.6 kB / 17.34 MB, free: 5.762 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.368/1.368, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.24/2.24, allocations: 390.3 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001624/0.001625, allocations: 67.89 kB / 0.9515 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8586/0.8602, allocations: 140.4 MB / 1.089 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature): time 0.003534/0.8638, allocations: 2.187 MB / 1.091 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002015/0.8659, allocations: 1.378 MB / 1.092 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.866, allocations: 2.219 kB / 1.092 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006529/0.8667, allocations: 194.1 kB / 1.092 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.00033/0.8671, allocations: 127.2 kB / 1.092 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004485/0.8675, allocations: 151.5 kB / 1.093 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003209/0.8678, allocations: 224.8 kB / 1.093 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.868, allocations: 51.64 kB / 1.093 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001697/0.8682, allocations: 97.14 kB / 1.093 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000147/0.8683, allocations: 96.08 kB / 1.093 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.974e-05/0.8684, allocations: 11.12 kB / 1.093 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001609/0.8686, allocations: 59.98 kB / 1.093 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.8687, allocations: 86.53 kB / 1.093 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.8688, allocations: 136.4 kB / 1.093 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004784/0.8693, allocations: 355.4 kB / 1.094 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.8693, allocations: 0 / 1.094 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.613e-06/0.8693, allocations: 0 / 1.094 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.524e-06/0.8693, allocations: 4.781 kB / 1.094 GB, free: 2.301 MB / 0.8575 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.0008942/0.8702, allocations: 0.6703 MB / 1.094 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.8703, allocations: 10.45 kB / 1.094 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.59e-05/0.8704, allocations: 44.91 kB / 1.094 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003898/0.8708, allocations: 355.8 kB / 1.095 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.8708, allocations: 12.55 kB / 1.095 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.366e-05/0.8708, allocations: 7.688 kB / 1.095 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001828/0.871, allocations: 83.61 kB / 1.095 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.871, allocations: 0 / 1.095 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.871, allocations: 2.047 kB / 1.095 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.871, allocations: 0.75 kB / 1.095 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001051/0.8712, allocations: 36.39 kB / 1.095 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006642/0.8718, allocations: 460.3 kB / 1.095 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001904/0.872, allocations: 68.97 kB / 1.095 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.162e-05/0.8721, allocations: 23.22 kB / 1.095 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.8721, allocations: 4.812 kB / 1.095 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001631/0.8723, allocations: 74.89 kB / 1.095 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.503e-06/0.8723, allocations: 1.094 kB / 1.095 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0003329/0.8727, allocations: 143.7 kB / 1.096 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.711e-05/0.8727, allocations: 60.16 kB / 1.096 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006977/0.8734, allocations: 0.5296 MB / 1.096 GB, free: 496 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.8734, allocations: 35.33 kB / 1.096 GB, free: 456 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.8736, allocations: 213.9 kB / 1.096 GB, free: 276 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.8736, allocations: 17.06 kB / 1.096 GB, free: 264 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.811e-05/0.8737, allocations: 41.53 kB / 1.096 GB, free: 236 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.8738, allocations: 362 kB / 1.097 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.8739, allocations: 48.55 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001342/0.8741, allocations: 78.66 kB / 1.097 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001743/0.8743, allocations: 83.69 kB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.8743, allocations: 0 / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003487/0.8746, allocations: 191.1 kB / 1.097 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.8747, allocations: 12.53 kB / 1.097 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.8747, allocations: 4.594 kB / 1.097 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.8747, allocations: 2.625 kB / 1.097 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.8748, allocations: 32.59 kB / 1.097 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.8748, allocations: 1.812 kB / 1.097 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001237/0.875, allocations: 17.67 kB / 1.097 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.875, allocations: 4.469 kB / 1.097 GB, free: 15.67 MB / 0.8731 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.000197/0.8752, allocations: 185.6 kB / 1.097 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.493e-05/0.8753, allocations: 47.16 kB / 1.097 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.079e-05/0.8754, allocations: 45.44 kB / 1.097 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.746e-05/0.8754, allocations: 5.312 kB / 1.097 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.8754, allocations: 0.7969 kB / 1.097 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.8754, allocations: 1.25 kB / 1.097 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003423/0.8758, allocations: 294.9 kB / 1.098 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.8758, allocations: 4.531 kB / 1.098 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.609e-05/0.8758, allocations: 8.484 kB / 1.098 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.8758, allocations: 1.547 kB / 1.098 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.8758, allocations: 1.219 kB / 1.098 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.8758, allocations: 13.06 kB / 1.098 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.8759, allocations: 0.5312 kB / 1.098 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002867/0.8761, allocations: 140.7 kB / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 9.792e-05/0.8763, allocations: 118.9 kB / 1.098 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.119e-05/0.8763, allocations: 2.031 kB / 1.098 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.96e-05/0.8764, allocations: 10.28 kB / 1.098 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.69e-05/0.8765, allocations: 12.88 kB / 1.098 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.8765, allocations: 7.344 kB / 1.098 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004961/0.877, allocations: 364.6 kB / 1.098 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.877, allocations: 0 / 1.098 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002789/0.8773, allocations: 44.5 kB / 1.098 GB, free: 14.82 MB / 0.8731 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.001002/0.8783, allocations: 417.6 kB / 1.099 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000264/0.8786, allocations: 92.78 kB / 1.099 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.8786, allocations: 4.062 kB / 1.099 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 8.304e-05/0.8787, allocations: 31.55 kB / 1.099 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004023/0.8791, allocations: 61.27 kB / 1.099 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.8802, allocations: 0.6738 MB / 1.1 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004486/0.8806, allocations: 0.8091 MB / 1.1 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.024e-05/0.8807, allocations: 24.83 kB / 1.101 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of SimCode: time 3.81e-07/0.8807, allocations: 0 / 1.101 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of Templates: time 0.008189/0.8889, allocations: 4.128 MB / 1.105 GB, free: 12.7 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.makefile (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.sim & ./Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches