Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: 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_10_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_10_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.001518/0.001518, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001892/0.001892, allocations: 200.2 kB / 16.14 MB, free: 6.648 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.413/1.413, allocations: 222.9 MB / 239.8 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.646/2.646, allocations: 437 MB / 0.7099 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001252, allocations: 63.89 kB / 0.8685 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7633/0.7646, allocations: 151.6 MB / 1.017 GB, free: 2.766 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower): time 0.004385/0.769, allocations: 2.484 MB / 1.019 GB, free: 272 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002422/0.7715, allocations: 1.483 MB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001677/0.7716, allocations: 4 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0007052/0.7724, allocations: 217.1 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003282/0.7727, allocations: 135.4 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004277/0.7732, allocations: 163.7 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003513/0.7735, allocations: 326.9 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002057/0.7737, allocations: 88.69 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.7739, allocations: 127.3 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000187/0.7741, allocations: 155.3 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.896e-05/0.7741, allocations: 8 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001394/0.7743, allocations: 47.92 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001401/0.7744, allocations: 127.5 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.7746, allocations: 174.6 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004583/0.7751, allocations: 494.1 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.7751, allocations: 0 / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of FrontEnd: time 7.42e-07/0.7751, allocations: 0 / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.631e-06/0.7751, allocations: 4 kB / 1.022 GB, free: 12.74 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001191/0.7763, allocations: 0.8008 MB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.7763, allocations: 8.031 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.967e-05/0.7764, allocations: 60.19 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005095/0.777, allocations: 415.9 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.066e-05/0.777, allocations: 16.38 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.876e-05/0.777, allocations: 23.92 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000272/0.7773, allocations: 127.3 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.7773, allocations: 3.984 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.885e-05/0.7774, allocations: 4 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.7774, allocations: 4 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.7776, allocations: 87.89 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.7786, allocations: 0.6445 MB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003835/0.779, allocations: 138.5 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.802e-05/0.7791, allocations: 52.88 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.7791, allocations: 0 / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002214/0.7793, allocations: 103.4 kB / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.332e-06/0.7793, allocations: 0 / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0004543/0.7798, allocations: 216.9 kB / 1.025 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.7799, allocations: 51.41 kB / 1.025 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006855/0.7805, allocations: 0.6514 MB / 1.026 GB, free: 9.16 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.957e-05/0.7806, allocations: 29.7 kB / 1.026 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002108/0.7808, allocations: 256.4 kB / 1.026 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.514e-05/0.7809, allocations: 35.55 kB / 1.026 GB, free: 8.836 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.256e-05/0.781, allocations: 61.59 kB / 1.026 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001588/0.7811, allocations: 366.8 kB / 1.026 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.7813, allocations: 83.95 kB / 1.027 GB, free: 8.32 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.7814, allocations: 112.8 kB / 1.027 GB, free: 8.199 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002204/0.7817, allocations: 134.8 kB / 1.027 GB, free: 8.062 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.7817, allocations: 0 / 1.027 GB, free: 8.062 MB / 0.7794 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004068/0.7821, allocations: 270.6 kB / 1.027 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.7821, allocations: 8.062 kB / 1.027 GB, free: 7.785 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.7821, allocations: 0 / 1.027 GB, free: 7.785 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.7822, allocations: 0 / 1.027 GB, free: 7.785 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.7823, allocations: 47.91 kB / 1.027 GB, free: 7.738 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.7824, allocations: 3.984 kB / 1.027 GB, free: 7.734 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001671/0.7825, allocations: 27.83 kB / 1.027 GB, free: 7.707 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.944e-05/0.7826, allocations: 11.98 kB / 1.027 GB, free: 7.695 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: 11 ($PRE.PEleDem.tab.nextTimeEvent,$whenCondition1,PEleDem.tab.nextTimeEventScaled,$PRE.PEleDem.tab.nextTimeEventScaled,PEleDem.tab.nextTimeEvent,assPow.minPow.y,$PRE.assPow.minPow.y,assPow.maxPow.y,$PRE.assPow.maxPow.y,assPow.assMesDP.u,assPow.assMesP.u) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000219/0.7828, allocations: 214.2 kB / 1.027 GB, free: 7.477 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.791e-05/0.7829, allocations: 51.34 kB / 1.027 GB, free: 7.426 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.783, allocations: 56.66 kB / 1.027 GB, free: 7.371 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.783, allocations: 0 / 1.027 GB, free: 7.371 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.783, allocations: 4 kB / 1.027 GB, free: 7.367 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.783, allocations: 3.984 kB / 1.027 GB, free: 7.363 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003465/0.7834, allocations: 373.4 kB / 1.028 GB, free: 6.949 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.7834, allocations: 3.984 kB / 1.028 GB, free: 6.945 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.613e-05/0.7834, allocations: 8 kB / 1.028 GB, free: 6.938 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.7834, allocations: 0 / 1.028 GB, free: 6.938 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.7835, allocations: 8 kB / 1.028 GB, free: 6.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.7835, allocations: 0 / 1.028 GB, free: 6.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.7835, allocations: 0 / 1.028 GB, free: 6.93 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000445/0.7839, allocations: 268.2 kB / 1.028 GB, free: 6.652 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.824e-05/0.784, allocations: 128.4 kB / 1.028 GB, free: 6.508 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.812e-05/0.7841, allocations: 8 kB / 1.028 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.7842, allocations: 15.97 kB / 1.028 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.442e-05/0.7843, allocations: 27.97 kB / 1.028 GB, free: 6.457 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.7843, allocations: 8 kB / 1.028 GB, free: 6.449 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004537/0.7848, allocations: 426.8 kB / 1.029 GB, free: 6.035 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7848, allocations: 4 kB / 1.029 GB, free: 6.031 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002826/0.7851, allocations: 59.89 kB / 1.029 GB, free: 5.973 MB / 0.7794 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 (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.001074/0.7862, allocations: 412.9 kB / 1.029 GB, free: 5.719 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003531/0.7865, allocations: 159.9 kB / 1.029 GB, free: 5.562 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.7865, allocations: 0 / 1.029 GB, free: 5.562 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001284/0.7867, allocations: 55.92 kB / 1.029 GB, free: 5.508 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000455/0.7871, allocations: 81.27 kB / 1.029 GB, free: 5.434 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/0.7885, allocations: 0.9637 MB / 1.03 GB, free: 4.445 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004171/0.7889, allocations: 0.8584 MB / 1.031 GB, free: 3.562 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001198/0.7891, allocations: 38.27 kB / 1.031 GB, free: 3.52 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.494e-05/0.7891, allocations: 27.44 kB / 1.031 GB, free: 3.492 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.7891, allocations: 0 / 1.031 GB, free: 3.492 MB / 0.7794 GB Notification: Performance of Templates: time 0.008373/0.7975, allocations: 3.755 MB / 1.035 GB, free: 15.77 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.makefile (rm -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; mkfifo Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe >> ../files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.sim & ./Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches