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.001514/0.001514, 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.002622/0.002622, allocations: 197.9 kB / 16.14 MB, free: 6.719 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.483/1.483, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.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.415/2.415, allocations: 390.2 MB / 0.6642 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001284, allocations: 63.91 kB / 0.8119 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.809/0.8103, allocations: 140.4 MB / 0.9489 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature): time 0.003548/0.8139, allocations: 2.235 MB / 0.9511 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00201/0.8159, allocations: 1.354 MB / 0.9524 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001583/0.8161, allocations: 1.25 kB / 0.9524 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0006439/0.8168, allocations: 183.7 kB / 0.9526 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002935/0.8171, allocations: 115.4 kB / 0.9527 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.00042/0.8175, allocations: 131.1 kB / 0.9528 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002684/0.8178, allocations: 220.1 kB / 0.953 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001567/0.818, allocations: 43.02 kB / 0.9531 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.8181, allocations: 88.91 kB / 0.9532 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.8182, allocations: 92.28 kB / 0.9533 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.086e-05/0.8183, allocations: 5.031 kB / 0.9533 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001669/0.8185, allocations: 55.08 kB / 0.9533 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.8186, allocations: 85.09 kB / 0.9534 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.00013/0.8187, allocations: 132 kB / 0.9535 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003921/0.8191, allocations: 341.7 kB / 0.9538 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.8191, allocations: 4 kB / 0.9539 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.463e-06/0.8191, allocations: 0 / 0.9539 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.702e-06/0.8192, allocations: 1.156 kB / 0.9539 GB, free: 5.379 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.0009667/0.8201, allocations: 0.6752 MB / 0.9545 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.8202, allocations: 7.938 kB / 0.9545 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.752e-05/0.8203, allocations: 44.75 kB / 0.9546 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004003/0.8207, allocations: 355 kB / 0.9549 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.8207, allocations: 2.656 kB / 0.9549 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.872e-05/0.8207, allocations: 16.62 kB / 0.9549 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001839/0.8209, allocations: 70.66 kB / 0.955 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.8209, allocations: 3.938 kB / 0.955 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.821, allocations: 5.125 kB / 0.955 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.821, allocations: 1.156 kB / 0.955 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001087/0.8211, allocations: 35.89 kB / 0.955 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006752/0.8218, allocations: 460.5 kB / 0.9555 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001845/0.822, allocations: 70.05 kB / 0.9555 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.847e-05/0.822, allocations: 27.72 kB / 0.9556 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.8221, allocations: 1.438 kB / 0.9556 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001586/0.8222, allocations: 80.42 kB / 0.9556 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.433e-06/0.8223, allocations: 0 / 0.9556 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0003382/0.8226, allocations: 142 kB / 0.9558 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.085e-05/0.8226, allocations: 60.72 kB / 0.9558 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005186/0.8232, allocations: 0.5324 MB / 0.9564 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.8232, allocations: 27.48 kB / 0.9564 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.8233, allocations: 219.3 kB / 0.9566 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.093e-05/0.8233, allocations: 19.58 kB / 0.9566 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.147e-05/0.8234, allocations: 48 kB / 0.9567 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.949e-05/0.8235, allocations: 351.6 kB / 0.957 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.8236, allocations: 51.38 kB / 0.957 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.8237, allocations: 75.08 kB / 0.9571 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/0.8239, allocations: 91.36 kB / 0.9572 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.8239, allocations: 4.031 kB / 0.9572 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002883/0.8242, allocations: 190.7 kB / 0.9574 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.8242, allocations: 9.469 kB / 0.9574 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.8242, allocations: 5.031 kB / 0.9574 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.8242, allocations: 1.406 kB / 0.9574 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.8244, allocations: 26.2 kB / 0.9574 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.8244, allocations: 5.094 kB / 0.9574 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.8245, allocations: 18.67 kB / 0.9574 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.308e-05/0.8245, allocations: 4.281 kB / 0.9574 GB, free: 2.406 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.000152/0.8247, allocations: 187.2 kB / 0.9576 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.761e-05/0.8247, allocations: 43.06 kB / 0.9577 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.75e-05/0.8248, allocations: 41.86 kB / 0.9577 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.8248, allocations: 5.438 kB / 0.9577 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.8248, allocations: 0 / 0.9577 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.8248, allocations: 1.344 kB / 0.9577 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.825, allocations: 296 kB / 0.958 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.8251, allocations: 0 / 0.958 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.17e-05/0.8251, allocations: 8.594 kB / 0.958 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.8251, allocations: 0 / 0.958 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.8251, allocations: 1.594 kB / 0.958 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.8251, allocations: 3.938 kB / 0.958 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.8251, allocations: 0 / 0.958 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002022/0.8253, allocations: 149.2 kB / 0.9582 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.501e-05/0.8254, allocations: 115.8 kB / 0.9583 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.767e-05/0.8254, allocations: 10.59 kB / 0.9583 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.178e-05/0.8255, allocations: 15.17 kB / 0.9583 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.528e-05/0.8256, allocations: 13.17 kB / 0.9583 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.8256, allocations: 2.219 kB / 0.9583 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003413/0.8259, allocations: 362.9 kB / 0.9586 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.826, allocations: 1.375 kB / 0.9586 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002672/0.8262, allocations: 42.38 kB / 0.9587 GB, free: 1.438 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.0009499/0.8272, allocations: 430.3 kB / 0.9591 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002337/0.8274, allocations: 94.78 kB / 0.9592 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.8274, allocations: 0 / 0.9592 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.431e-05/0.8275, allocations: 27.64 kB / 0.9592 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003775/0.8279, allocations: 54.14 kB / 0.9593 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009435/0.8289, allocations: 0.7258 MB / 0.96 GB, free: 0.6602 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002858/0.8292, allocations: 0.8147 MB / 0.9608 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.988e-05/0.8292, allocations: 21.14 kB / 0.9608 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.168e-05/0.8293, allocations: 22.2 kB / 0.9608 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of SimCode: time 2.4e-07/0.8293, allocations: 0 / 0.9608 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of Templates: time 0.008461/0.8378, allocations: 2.72 MB / 0.9635 GB, free: 14.53 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/jenkins/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