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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.009833/0.009833, allocations: 101.8 kB / 15.88 MB, free: 5.867 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.00176/0.00176, allocations: 192.7 kB / 16.79 MB, free: 5.809 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.428/1.428, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.354/2.354, allocations: 390.2 MB / 0.6649 GB, free: 0.6719 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 64.03 kB / 0.8125 GB, free: 14.94 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6296/0.631, allocations: 140.4 MB / 0.9496 GB, free: 9.281 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature): time 0.004175/0.6353, allocations: 2.239 MB / 0.9518 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002477/0.6378, allocations: 1.346 MB / 0.9531 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001754/0.638, allocations: 6.094 kB / 0.9531 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0007358/0.6387, allocations: 183.3 kB / 0.9533 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003286/0.6391, allocations: 111.6 kB / 0.9534 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004406/0.6395, allocations: 125.1 kB / 0.9535 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003146/0.6399, allocations: 220.3 kB / 0.9537 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.64, allocations: 42.34 kB / 0.9537 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001594/0.6402, allocations: 88.64 kB / 0.9538 GB, free: 6 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001559/0.6404, allocations: 102 kB / 0.9539 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.782e-05/0.6404, allocations: 4.125 kB / 0.9539 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001706/0.6406, allocations: 42.67 kB / 0.954 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.6407, allocations: 93.41 kB / 0.9541 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.6409, allocations: 132.2 kB / 0.9542 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003268/0.6412, allocations: 266.5 kB / 0.9544 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.6412, allocations: 0 / 0.9544 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.004e-06/0.6412, allocations: 0 / 0.9544 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.391e-06/0.6412, allocations: 3.938 kB / 0.9544 GB, free: 5.586 MB / 0.7169 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.001073/0.6423, allocations: 0.6798 MB / 0.9551 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.6424, allocations: 9.688 kB / 0.9551 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.6425, allocations: 44.91 kB / 0.9552 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000449/0.643, allocations: 352.9 kB / 0.9555 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.643, allocations: 4.406 kB / 0.9555 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.865e-05/0.643, allocations: 15.55 kB / 0.9555 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002173/0.6433, allocations: 75.66 kB / 0.9556 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.6433, allocations: 0 / 0.9556 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.6433, allocations: 5.156 kB / 0.9556 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.6433, allocations: 5.469 kB / 0.9556 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001314/0.6434, allocations: 29.45 kB / 0.9556 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007387/0.6442, allocations: 462 kB / 0.9561 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002348/0.6444, allocations: 70.11 kB / 0.9561 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.064e-05/0.6445, allocations: 24.08 kB / 0.9562 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.6446, allocations: 1.312 kB / 0.9562 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001853/0.6448, allocations: 79.84 kB / 0.9562 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.763e-06/0.6448, allocations: 0 / 0.9562 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004338/0.6452, allocations: 141.8 kB / 0.9564 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.768e-05/0.6453, allocations: 60.84 kB / 0.9564 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007176/0.646, allocations: 0.5318 MB / 0.9569 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.646, allocations: 26.95 kB / 0.957 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.6462, allocations: 224.7 kB / 0.9572 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.844e-05/0.6462, allocations: 15.03 kB / 0.9572 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.97e-05/0.6463, allocations: 36.7 kB / 0.9572 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.507e-05/0.6464, allocations: 360.4 kB / 0.9576 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001513/0.6466, allocations: 54.48 kB / 0.9576 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001577/0.6468, allocations: 76.64 kB / 0.9577 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002024/0.647, allocations: 90.25 kB / 0.9578 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.647, allocations: 0 / 0.9578 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004248/0.6474, allocations: 190.5 kB / 0.958 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.6475, allocations: 17.55 kB / 0.958 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.6475, allocations: 64 / 0.958 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.6475, allocations: 5.719 kB / 0.958 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.6477, allocations: 22.22 kB / 0.958 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.118e-06/0.6477, allocations: 4.703 kB / 0.958 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000175/0.6479, allocations: 18.78 kB / 0.958 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.6479, allocations: 3.406 kB / 0.958 GB, free: 2.613 MB / 0.7169 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.0001922/0.6481, allocations: 182.6 kB / 0.9582 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.222e-05/0.6482, allocations: 41.41 kB / 0.9583 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.713e-05/0.6483, allocations: 47.84 kB / 0.9583 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.6483, allocations: 7.922 kB / 0.9583 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.6483, allocations: 0 / 0.9583 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.6483, allocations: 2.5 kB / 0.9583 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002714/0.6486, allocations: 294.8 kB / 0.9586 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.6486, allocations: 9.359 kB / 0.9586 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.85e-05/0.6486, allocations: 2.75 kB / 0.9586 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.6486, allocations: 1.375 kB / 0.9586 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.6487, allocations: 0 / 0.9586 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.6487, allocations: 5.312 kB / 0.9586 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.6487, allocations: 0 / 0.9586 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002777/0.649, allocations: 156.7 kB / 0.9588 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 8.384e-05/0.6491, allocations: 116.9 kB / 0.9589 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.835e-05/0.6491, allocations: 5.375 kB / 0.9589 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.6492, allocations: 8.062 kB / 0.9589 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.912e-05/0.6493, allocations: 8.109 kB / 0.9589 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.6493, allocations: 6.734 kB / 0.9589 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0004914/0.6498, allocations: 363.8 kB / 0.9592 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6498, allocations: 4 kB / 0.9592 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004618/0.6503, allocations: 42.47 kB / 0.9593 GB, free: 1.641 MB / 0.7169 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.001518/0.6518, allocations: 428 kB / 0.9597 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003647/0.6522, allocations: 91.44 kB / 0.9598 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.6522, allocations: 0 / 0.9598 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001136/0.6524, allocations: 32.64 kB / 0.9598 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006136/0.653, allocations: 52.72 kB / 0.9599 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.6544, allocations: 0.7584 MB / 0.9606 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000344/0.6548, allocations: 0.8156 MB / 0.9614 GB, free: 72 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.65e-05/0.6549, allocations: 22.31 kB / 0.9614 GB, free: 60 kB / 0.7169 GB Notification: Performance of SimCode: time 1.253e-06/0.6549, allocations: 3.938 kB / 0.9614 GB, free: 56 kB / 0.7169 GB Notification: Performance of Templates: time 0.01026/0.6652, allocations: 4.119 MB / 0.9654 GB, free: 13.8 MB / 0.7325 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