Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.AssertPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|per.PEleMax|per.PEleMin|assPow.PEleDem|assPow.assMesP.u|assPow.assMesDP.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|per.PEleMax|per.PEleMin|assPow.PEleDem|assPow.assMesP.u|assPow.assMesDP.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009261/0.000926, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008652/0.0008653, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.975/2.975, allocations: 462.6 MB / 0.736 GB, free: 15.81 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.0003489, allocations: 8.5 kB / 0.9021 GB, free: 36.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3604, allocations: 159.6 MB / 1.058 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower): time 0.003379/0.3639, allocations: 2.054 MB / 1.06 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00256/0.3665, allocations: 1.389 MB / 1.061 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000315/0.3668, allocations: 11.94 kB / 1.061 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000779/0.3676, allocations: 207.1 kB / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005265/0.3681, allocations: 127.4 kB / 1.062 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000577/0.3687, allocations: 134.7 kB / 1.062 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004556/0.3692, allocations: 306.9 kB / 1.062 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002138/0.3694, allocations: 72.92 kB / 1.062 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001789/0.3696, allocations: 115.4 kB / 1.062 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000187/0.3698, allocations: 135.3 kB / 1.062 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.039e-05/0.3698, allocations: 8 kB / 1.062 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001582/0.37, allocations: 39.98 kB / 1.062 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.3701, allocations: 111.6 kB / 1.063 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.802e-05/0.3702, allocations: 93.39 kB / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004215/0.3707, allocations: 387 kB / 1.063 GB, free: 196 kB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.3707, allocations: 0 / 1.063 GB, free: 196 kB / 0.8106 GB Notification: Performance of FrontEnd: time 2.935e-06/0.3707, allocations: 0 / 1.063 GB, free: 196 kB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.775e-06/0.3707, allocations: 0 / 1.063 GB, free: 196 kB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0012/0.3719, allocations: 0.7349 MB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.372, allocations: 12.03 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.246e-05/0.3721, allocations: 59.25 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005521/0.3726, allocations: 391.3 kB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.3727, allocations: 12.19 kB / 1.064 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.842e-05/0.3727, allocations: 23.98 kB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002917/0.373, allocations: 131 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.373, allocations: 0 / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/0.3731, allocations: 8 kB / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.3731, allocations: 0 / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002018/0.3733, allocations: 87.94 kB / 1.064 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001067/0.3743, allocations: 0.6562 MB / 1.065 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003834/0.3747, allocations: 130.6 kB / 1.065 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.3749, allocations: 52.83 kB / 1.065 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.3749, allocations: 0 / 1.065 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002241/0.3751, allocations: 111.3 kB / 1.065 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.583e-06/0.3752, allocations: 0 / 1.065 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0004661/0.3756, allocations: 208.9 kB / 1.066 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.3757, allocations: 51.41 kB / 1.066 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000748/0.3764, allocations: 0.6475 MB / 1.066 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.789e-05/0.3765, allocations: 33.7 kB / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002309/0.3767, allocations: 256.4 kB / 1.067 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.221e-05/0.3768, allocations: 35.53 kB / 1.067 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.613e-05/0.3768, allocations: 8 kB / 1.067 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001772/0.377, allocations: 370.7 kB / 1.067 GB, free: 12 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.3771, allocations: 75.97 kB / 1.067 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.3773, allocations: 112.9 kB / 1.067 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.3775, allocations: 79.92 kB / 1.067 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.3775, allocations: 4.031 kB / 1.067 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004202/0.3779, allocations: 270.1 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.3779, allocations: 5.875 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3779, allocations: 0 / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.3779, allocations: 4 kB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.3781, allocations: 43.91 kB / 1.068 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.3781, allocations: 0 / 1.068 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001694/0.3783, allocations: 35.95 kB / 1.068 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.622e-05/0.3784, allocations: 4 kB / 1.068 GB, free: 11.36 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.PEleDem.tab.nextTimeEvent,assPow.assMesP.u,assPow.assMesDP.u,$PRE.assPow.maxPow.y,assPow.maxPow.y,$PRE.assPow.minPow.y,assPow.minPow.y,PEleDem.tab.nextTimeEvent,$PRE.PEleDem.tab.nextTimeEventScaled,PEleDem.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002198/0.3786, allocations: 213.7 kB / 1.068 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.723e-05/0.3786, allocations: 55.3 kB / 1.068 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.251e-05/0.3787, allocations: 56.66 kB / 1.068 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.3788, allocations: 0 / 1.068 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3788, allocations: 0 / 1.068 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3788, allocations: 3.984 kB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003423/0.3791, allocations: 369.4 kB / 1.068 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3791, allocations: 0 / 1.068 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.14e-05/0.3792, allocations: 15.98 kB / 1.068 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.3792, allocations: 0 / 1.068 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.3793, allocations: 7.953 kB / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3793, allocations: 4 kB / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3793, allocations: 0 / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004545/0.3797, allocations: 264.3 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.3798, allocations: 132.3 kB / 1.069 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.742e-05/0.3799, allocations: 4 kB / 1.069 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.38, allocations: 23.94 kB / 1.069 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.346e-05/0.3801, allocations: 23.95 kB / 1.069 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-05/0.3801, allocations: 8 kB / 1.069 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004727/0.3806, allocations: 422.8 kB / 1.069 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3806, allocations: 0 / 1.069 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000309/0.3809, allocations: 63.95 kB / 1.069 GB, free: 9.629 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (assPow.demRat.x) * Number of discrete variables: 7 ($whenCondition1,assPow.assMesP.u,assPow.assMesDP.u,assPow.maxPow.y,assPow.minPow.y,PEleDem.tab.nextTimeEvent,PEleDem.tab.nextTimeEventScaled) * Number of discrete states: 4 (PEleDem.tab.nextTimeEventScaled,assPow.minPow.y,assPow.maxPow.y,PEleDem.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001053/0.382, allocations: 417.8 kB / 1.07 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003264/0.3823, allocations: 154.7 kB / 1.07 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3824, allocations: 0 / 1.07 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.3825, allocations: 55.92 kB / 1.07 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004295/0.3829, allocations: 74.95 kB / 1.07 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.3844, allocations: 0.9364 MB / 1.071 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005353/0.385, allocations: 0.8535 MB / 1.072 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001476/0.3851, allocations: 42.25 kB / 1.072 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.694e-05/0.3852, allocations: 31.42 kB / 1.072 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of SimCode: time 2.71e-07/0.3852, allocations: 0 / 1.072 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of Templates: time 0.008946/0.3942, allocations: 3.618 MB / 1.075 GB, free: 3.582 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.makefile (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches