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: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature,fileNamePrefix="Buildings_9_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.004452/0.004452, allocations: 105.5 kB / 15.74 MB, free: 6.008 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.00108/0.001081, allocations: 188.5 kB / 16.67 MB, free: 5.926 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: 222.9 MB / 240.4 MB, free: 15.07 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.183/2.183, allocations: 390.3 MB / 0.6648 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 63.91 kB / 0.9504 GB, free: 8.156 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6848/0.6862, allocations: 140.4 MB / 1.087 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature): time 0.003211/0.6894, allocations: 2.195 MB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001784/0.6912, allocations: 1.383 MB / 1.091 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.6914, allocations: 1.906 kB / 1.091 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005667/0.692, allocations: 189.8 kB / 1.091 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003111/0.6923, allocations: 131.1 kB / 1.091 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003772/0.6927, allocations: 140.3 kB / 1.091 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000277/0.693, allocations: 228.5 kB / 1.092 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.6931, allocations: 44.09 kB / 1.092 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001606/0.6933, allocations: 101 kB / 1.092 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.6935, allocations: 96.92 kB / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.559e-05/0.6935, allocations: 15.25 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/0.6936, allocations: 55.73 kB / 1.092 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.6938, allocations: 94.92 kB / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.6939, allocations: 132 kB / 1.092 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004382/0.6943, allocations: 356 kB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.6943, allocations: 1.062 kB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.823e-06/0.6943, allocations: 0.6875 kB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.6943, allocations: 0 / 1.092 GB, free: 2.039 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.000858/0.6952, allocations: 0.6939 MB / 1.093 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.6952, allocations: 17.06 kB / 1.093 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.071e-05/0.6953, allocations: 38.62 kB / 1.093 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.866e-05/0.6954, allocations: 46.02 kB / 1.093 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003844/0.6958, allocations: 351.9 kB / 1.094 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.6958, allocations: 11.97 kB / 1.094 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.768e-05/0.6958, allocations: 4.531 kB / 1.094 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001715/0.696, allocations: 83.03 kB / 1.094 GB, free: 1.008 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.696, allocations: 0 / 1.094 GB, free: 1.008 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.696, allocations: 5.453 kB / 1.094 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.696, allocations: 1.656 kB / 1.094 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001065/0.6962, allocations: 39.31 kB / 1.094 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006398/0.6968, allocations: 452.9 kB / 1.094 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000186/0.697, allocations: 69.3 kB / 1.094 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.158e-05/0.6971, allocations: 31.16 kB / 1.094 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.6971, allocations: 0.9688 kB / 1.094 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001559/0.6973, allocations: 75.53 kB / 1.094 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.523e-06/0.6973, allocations: 0 / 1.094 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0003374/0.6976, allocations: 156.5 kB / 1.094 GB, free: 448 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.536e-05/0.6976, allocations: 52.44 kB / 1.095 GB, free: 384 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006183/0.6983, allocations: 0.5325 MB / 1.095 GB, free: 148 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.6983, allocations: 32.53 kB / 1.095 GB, free: 112 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001726/0.6985, allocations: 217.8 kB / 1.095 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 2.658e-05/0.6985, allocations: 17.31 kB / 1.095 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.879e-05/0.6986, allocations: 41.03 kB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.6987, allocations: 354 kB / 1.096 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.6989, allocations: 48.53 kB / 1.096 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001483/0.699, allocations: 78.55 kB / 1.096 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001782/0.6992, allocations: 90.78 kB / 1.096 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.6992, allocations: 0.9688 kB / 1.096 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003443/0.6996, allocations: 195.9 kB / 1.096 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.6996, allocations: 6.312 kB / 1.096 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.6996, allocations: 4.625 kB / 1.096 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.6996, allocations: 5.094 kB / 1.096 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.6998, allocations: 29.95 kB / 1.096 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.942e-06/0.6998, allocations: 1.562 kB / 1.096 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001354/0.6999, allocations: 13.2 kB / 1.096 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/0.6999, allocations: 4.922 kB / 1.096 GB, free: 15.33 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.0002125/0.7002, allocations: 182.1 kB / 1.096 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.929e-05/0.7002, allocations: 51.17 kB / 1.096 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.448e-05/0.7003, allocations: 41.08 kB / 1.096 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.7003, allocations: 5.188 kB / 1.096 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.7003, allocations: 5.234 kB / 1.096 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.7004, allocations: 3.984 kB / 1.096 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003092/0.7007, allocations: 304 kB / 1.097 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.7007, allocations: 0.5938 kB / 1.097 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.591e-05/0.7007, allocations: 4.203 kB / 1.097 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.7007, allocations: 0.7188 kB / 1.097 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.7007, allocations: 2.344 kB / 1.097 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.7007, allocations: 8.875 kB / 1.097 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.7007, allocations: 0 / 1.097 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002568/0.701, allocations: 153.5 kB / 1.097 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.7011, allocations: 119 kB / 1.097 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.241e-05/0.7012, allocations: 1.609 kB / 1.097 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.567e-05/0.7013, allocations: 10.59 kB / 1.097 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.7013, allocations: 16.88 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.7013, allocations: 7.047 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004507/0.7018, allocations: 363.8 kB / 1.097 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7018, allocations: 0 / 1.097 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003016/0.7021, allocations: 50.16 kB / 1.097 GB, free: 14.47 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.001413/0.7035, allocations: 0.9862 MB / 1.098 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002849/0.7038, allocations: 98.5 kB / 1.098 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.7039, allocations: 4.781 kB / 1.098 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 8.873e-05/0.704, allocations: 23.75 kB / 1.098 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004447/0.7044, allocations: 74.34 kB / 1.099 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003976/0.7084, allocations: 3.064 MB / 1.102 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004141/0.7088, allocations: 0.8181 MB / 1.102 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001124/0.709, allocations: 23.16 kB / 1.102 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.7091, allocations: 114.1 kB / 1.102 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of SimCode: time 9.41e-07/0.7091, allocations: 0 / 1.102 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02413/0.7333, allocations: 7.249 MB / 1.11 GB, free: 9.848 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.208/8.941, allocations: 11.27 kB / 1.11 GB, free: 9.84 MB / 0.8731 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature_res.csv --start-time 0 --stop-time 900 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.36 Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature.fmu > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature_res.csv","/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