Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature,fileNamePrefix="Buildings_10_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.0009529/0.000953, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006986/0.006986, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.303/1.303, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.391/2.391, allocations: 437.8 MB / 0.7121 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003062/0.0003061, allocations: 12 kB / 0.873 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5711/0.5715, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature): time 0.002018/0.5735, allocations: 1.9 MB / 1.025 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001538/0.575, allocations: 1.332 MB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.634e-05/0.5751, allocations: 3.938 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004286/0.5756, allocations: 179.2 kB / 1.026 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002029/0.5758, allocations: 115.5 kB / 1.027 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000259/0.5761, allocations: 123.8 kB / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002131/0.5763, allocations: 219.1 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.5764, allocations: 42.62 kB / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001047/0.5765, allocations: 83.52 kB / 1.027 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/0.5766, allocations: 99.48 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.026e-05/0.5767, allocations: 4 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.933e-05/0.5768, allocations: 35.98 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.275e-05/0.5768, allocations: 99.53 kB / 1.027 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.553e-05/0.577, allocations: 144.7 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000281/0.5772, allocations: 342.6 kB / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.5772, allocations: 0 / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5773, allocations: 0 / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.897e-06/0.5773, allocations: 0 / 1.028 GB, free: 11.11 MB / 0.7794 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.0006506/0.5779, allocations: 0.6223 MB / 1.028 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.578, allocations: 12.02 kB / 1.028 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.297e-05/0.578, allocations: 34.75 kB / 1.028 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.065e-05/0.5781, allocations: 44.38 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003157/0.5784, allocations: 356.2 kB / 1.029 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.5784, allocations: 12.11 kB / 1.029 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.937e-05/0.5784, allocations: 4 kB / 1.029 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001427/0.5786, allocations: 81.59 kB / 1.029 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.631e-06/0.5786, allocations: 0 / 1.029 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.5786, allocations: 4 kB / 1.029 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.5786, allocations: 0 / 1.029 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.665e-05/0.5787, allocations: 35.92 kB / 1.029 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005304/0.5792, allocations: 472.5 kB / 1.029 GB, free: 9.301 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001541/0.5794, allocations: 66.61 kB / 1.029 GB, free: 9.227 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.936e-05/0.5795, allocations: 20.86 kB / 1.029 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.5795, allocations: 7.984 kB / 1.029 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001277/0.5796, allocations: 75.39 kB / 1.029 GB, free: 9.109 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.593e-06/0.5796, allocations: 0 / 1.029 GB, free: 9.109 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0002666/0.5799, allocations: 149.1 kB / 1.03 GB, free: 8.957 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.675e-05/0.5799, allocations: 59.28 kB / 1.03 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004632/0.5804, allocations: 0.5255 MB / 1.03 GB, free: 8.352 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.5804, allocations: 33.64 kB / 1.03 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.5806, allocations: 216 kB / 1.03 GB, free: 8.098 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.735e-05/0.5806, allocations: 15.81 kB / 1.03 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-05/0.5806, allocations: 33.7 kB / 1.03 GB, free: 8.043 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.5807, allocations: 354.8 kB / 1.031 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.83e-05/0.5808, allocations: 47.98 kB / 1.031 GB, free: 7.641 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/0.5809, allocations: 78.45 kB / 1.031 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001322/0.5811, allocations: 89.5 kB / 1.031 GB, free: 7.461 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.5811, allocations: 0 / 1.031 GB, free: 7.461 MB / 0.7794 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002586/0.5813, allocations: 193.2 kB / 1.031 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.026e-05/0.5814, allocations: 4 kB / 1.031 GB, free: 7.262 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.5814, allocations: 0 / 1.031 GB, free: 7.262 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.977e-06/0.5814, allocations: 7.938 kB / 1.031 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.476e-05/0.5815, allocations: 24.17 kB / 1.031 GB, free: 7.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.5815, allocations: 4 kB / 1.031 GB, free: 7.227 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.5816, allocations: 27.83 kB / 1.031 GB, free: 7.199 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.5816, allocations: 4 kB / 1.031 GB, free: 7.195 MB / 0.7794 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.0001386/0.5818, allocations: 187.7 kB / 1.031 GB, free: 7.004 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.633e-05/0.5818, allocations: 43.44 kB / 1.032 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.808e-05/0.5819, allocations: 47.8 kB / 1.032 GB, free: 6.914 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.5819, allocations: 3.938 kB / 1.032 GB, free: 6.91 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.5819, allocations: 0 / 1.032 GB, free: 6.91 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.5819, allocations: 0 / 1.032 GB, free: 6.91 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001949/0.5821, allocations: 297.5 kB / 1.032 GB, free: 6.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.5821, allocations: 0 / 1.032 GB, free: 6.57 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.03e-05/0.5821, allocations: 7.938 kB / 1.032 GB, free: 6.562 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.5821, allocations: 4 kB / 1.032 GB, free: 6.559 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.5822, allocations: 7.984 kB / 1.032 GB, free: 6.551 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.5822, allocations: 3.938 kB / 1.032 GB, free: 6.547 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.5822, allocations: 0 / 1.032 GB, free: 6.547 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001858/0.5824, allocations: 144.6 kB / 1.032 GB, free: 6.387 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.732e-05/0.5824, allocations: 116.5 kB / 1.032 GB, free: 6.254 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.267e-05/0.5825, allocations: 3.984 kB / 1.032 GB, free: 6.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.258e-05/0.5826, allocations: 15.94 kB / 1.032 GB, free: 6.234 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.887e-05/0.5826, allocations: 15.92 kB / 1.032 GB, free: 6.219 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.5826, allocations: 7.984 kB / 1.032 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003122/0.5829, allocations: 362.8 kB / 1.033 GB, free: 5.859 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5829, allocations: 0 / 1.033 GB, free: 5.859 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002241/0.5832, allocations: 40 kB / 1.033 GB, free: 5.82 MB / 0.7794 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.001121/0.5843, allocations: 0.9957 MB / 1.034 GB, free: 4.953 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001882/0.5845, allocations: 95.91 kB / 1.034 GB, free: 4.859 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.5845, allocations: 0 / 1.034 GB, free: 4.859 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 6.367e-05/0.5846, allocations: 23.98 kB / 1.034 GB, free: 4.836 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003218/0.5849, allocations: 63.62 kB / 1.034 GB, free: 4.777 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00289/0.5878, allocations: 3.198 MB / 1.037 GB, free: 1.484 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.5881, allocations: 0.8102 MB / 1.038 GB, free: 0.6484 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.436e-05/0.5882, allocations: 29.53 kB / 1.038 GB, free: 0.6211 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.5883, allocations: 115.4 kB / 1.038 GB, free: 0.5078 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.5883, allocations: 0 / 1.038 GB, free: 0.5078 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.43/5.019, allocations: 6.751 MB / 1.044 GB, free: 9.984 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003346/5.019, allocations: 260 kB / 1.045 GB, free: 9.676 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.8/7.819, allocations: 0 / 1.045 GB, free: 9.676 MB / 0.795 GB (rm -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe ; mkfifo Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe >> ../files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature.fmu > Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches