Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.005677/0.005677, allocations: 99.88 kB / 15.73 MB, free: 6.062 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.001163/0.001163, allocations: 195.5 kB / 16.67 MB, free: 5.973 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.621/2.621, allocations: 469.8 MB / 0.7425 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 79.81 kB / 1.065 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9107/0.9127, allocations: 159.1 MB / 1.221 GB, free: 2.074 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower): time 0.004137/0.9169, allocations: 2.443 MB / 1.223 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002314/0.9192, allocations: 1.517 MB / 1.224 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001694/0.9193, allocations: 4 kB / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0006718/0.92, allocations: 223.1 kB / 1.225 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0004501/0.9205, allocations: 151.2 kB / 1.225 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004567/0.9209, allocations: 191.5 kB / 1.225 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004032/0.9213, allocations: 350.9 kB / 1.225 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001847/0.9215, allocations: 68.5 kB / 1.225 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001872/0.9217, allocations: 147.3 kB / 1.226 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/0.9219, allocations: 151.2 kB / 1.226 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.061e-05/0.9219, allocations: 20 kB / 1.226 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001529/0.9221, allocations: 63.97 kB / 1.226 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.9222, allocations: 123.5 kB / 1.226 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001976/0.9224, allocations: 194.5 kB / 1.226 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0005977/0.923, allocations: 0.51 MB / 1.227 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.923, allocations: 4 kB / 1.227 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.543e-06/0.923, allocations: 0 / 1.227 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.027e-05/0.923, allocations: 0 / 1.227 GB, free: 11.93 MB / 0.9512 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.001329/0.9243, allocations: 0.816 MB / 1.227 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.9244, allocations: 8.031 kB / 1.227 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.9245, allocations: 64.52 kB / 1.227 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00053/0.925, allocations: 436.4 kB / 1.228 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/0.925, allocations: 12.38 kB / 1.228 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.777e-05/0.9251, allocations: 15.94 kB / 1.228 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002854/0.9254, allocations: 137.6 kB / 1.228 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.9254, allocations: 0 / 1.228 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.9254, allocations: 0 / 1.228 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.9254, allocations: 4 kB / 1.228 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001809/0.9256, allocations: 83.91 kB / 1.228 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001022/0.9266, allocations: 0.6408 MB / 1.229 GB, free: 9.582 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003922/0.927, allocations: 130.6 kB / 1.229 GB, free: 9.445 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.515e-05/0.9271, allocations: 48.84 kB / 1.229 GB, free: 9.395 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.082e-05/0.9271, allocations: 3.984 kB / 1.229 GB, free: 9.391 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002109/0.9273, allocations: 103.4 kB / 1.229 GB, free: 9.277 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=12): time 1.463e-06/0.9273, allocations: 0 / 1.229 GB, free: 9.277 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12): time 0.0004593/0.9278, allocations: 221.1 kB / 1.229 GB, free: 9.055 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.9278, allocations: 55.39 kB / 1.229 GB, free: 8.988 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007301/0.9286, allocations: 0.6476 MB / 1.23 GB, free: 8.328 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 7.829e-05/0.9287, allocations: 37.64 kB / 1.23 GB, free: 8.285 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002035/0.9289, allocations: 256.5 kB / 1.23 GB, free: 8.031 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.428e-05/0.9289, allocations: 43.69 kB / 1.23 GB, free: 7.988 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.094e-05/0.929, allocations: 49.7 kB / 1.23 GB, free: 7.934 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000192/0.9292, allocations: 370.8 kB / 1.231 GB, free: 7.562 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001449/0.9293, allocations: 75.97 kB / 1.231 GB, free: 7.488 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001717/0.9295, allocations: 115.4 kB / 1.231 GB, free: 7.363 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00022/0.9297, allocations: 136.4 kB / 1.231 GB, free: 7.227 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.9297, allocations: 0 / 1.231 GB, free: 7.227 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004329/0.9302, allocations: 273.1 kB / 1.231 GB, free: 6.953 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.9302, allocations: 4 kB / 1.231 GB, free: 6.949 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.9302, allocations: 0 / 1.231 GB, free: 6.949 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.9302, allocations: 8.062 kB / 1.231 GB, free: 6.941 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002437/0.9304, allocations: 43.92 kB / 1.231 GB, free: 6.898 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.9304, allocations: 0 / 1.231 GB, free: 6.898 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001772/0.9306, allocations: 27.86 kB / 1.231 GB, free: 6.871 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.816e-05/0.9307, allocations: 12 kB / 1.231 GB, free: 6.859 MB / 0.9512 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.0002415/0.9309, allocations: 210.2 kB / 1.232 GB, free: 6.645 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.106e-05/0.931, allocations: 55.62 kB / 1.232 GB, free: 6.59 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.55e-05/0.9311, allocations: 64.66 kB / 1.232 GB, free: 6.523 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.9311, allocations: 0 / 1.232 GB, free: 6.523 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.9311, allocations: 0 / 1.232 GB, free: 6.523 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.9311, allocations: 4 kB / 1.232 GB, free: 6.52 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000349/0.9314, allocations: 369.4 kB / 1.232 GB, free: 6.109 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.9314, allocations: 0 / 1.232 GB, free: 6.109 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.924e-05/0.9315, allocations: 12 kB / 1.232 GB, free: 6.098 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.9315, allocations: 0 / 1.232 GB, free: 6.098 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.9315, allocations: 7.984 kB / 1.232 GB, free: 6.09 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.9315, allocations: 0 / 1.232 GB, free: 6.09 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.9315, allocations: 0 / 1.232 GB, free: 6.09 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004308/0.9319, allocations: 272.5 kB / 1.232 GB, free: 5.805 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002122/0.9322, allocations: 124.8 kB / 1.232 GB, free: 5.664 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.996e-05/0.9322, allocations: 8 kB / 1.232 GB, free: 5.656 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.9323, allocations: 11.98 kB / 1.232 GB, free: 5.645 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.447e-05/0.9324, allocations: 19.97 kB / 1.232 GB, free: 5.625 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.75e-05/0.9324, allocations: 11.98 kB / 1.232 GB, free: 5.613 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000442/0.9329, allocations: 434.8 kB / 1.233 GB, free: 5.191 MB / 0.9512 GB Notification: Performance of sort global known variables: time 9e-08/0.9329, allocations: 0 / 1.233 GB, free: 5.191 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002857/0.9331, allocations: 59.88 kB / 1.233 GB, free: 5.133 MB / 0.9512 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.0009978/0.9341, allocations: 427.8 kB / 1.233 GB, free: 4.863 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003406/0.9345, allocations: 151.8 kB / 1.233 GB, free: 4.715 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.9345, allocations: 0 / 1.233 GB, free: 4.715 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.9346, allocations: 55.97 kB / 1.233 GB, free: 4.66 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004266/0.935, allocations: 79.81 kB / 1.234 GB, free: 4.59 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001555/0.9366, allocations: 0.8555 MB / 1.234 GB, free: 3.699 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004982/0.9371, allocations: 0.8572 MB / 1.235 GB, free: 2.816 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001595/0.9372, allocations: 38.27 kB / 1.235 GB, free: 2.781 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.954e-05/0.9373, allocations: 27.42 kB / 1.235 GB, free: 2.754 MB / 0.9512 GB Notification: Performance of SimCode: time 9.42e-07/0.9373, allocations: 0 / 1.235 GB, free: 2.754 MB / 0.9512 GB Notification: Performance of Templates: time 0.01028/0.9476, allocations: 4.062 MB / 1.239 GB, free: 14.72 MB / 0.9669 GB make -j1 -f Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.makefile (rm -f Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; mkfifo Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe >> ../files/Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.sim & ./Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches