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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001804/0.001804, allocations: 102.8 kB / 16.4 MB, free: 6.504 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.001875/0.001875, allocations: 189.2 kB / 17.34 MB, free: 5.766 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.499/1.499, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.825/2.825, allocations: 474.5 MB / 0.7477 GB, free: 14.05 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00196/0.00196, allocations: 67.89 kB / 1.073 GB, free: 7.168 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9099/0.9118, allocations: 160.3 MB / 1.229 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower): time 0.004421/0.9163, allocations: 2.438 MB / 1.232 GB, free: 8.512 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002838/0.9192, allocations: 1.51 MB / 1.233 GB, free: 6.996 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001917/0.9194, allocations: 8 kB / 1.233 GB, free: 6.988 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0006859/0.9201, allocations: 223.1 kB / 1.233 GB, free: 6.77 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0003846/0.9205, allocations: 155.2 kB / 1.233 GB, free: 6.617 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004621/0.921, allocations: 194.2 kB / 1.234 GB, free: 6.43 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004378/0.9214, allocations: 346.9 kB / 1.234 GB, free: 6.09 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002257/0.9217, allocations: 104.4 kB / 1.234 GB, free: 5.992 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003475/0.922, allocations: 143.3 kB / 1.234 GB, free: 5.852 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002007/0.9222, allocations: 151.2 kB / 1.234 GB, free: 5.703 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.423e-05/0.9223, allocations: 24 kB / 1.234 GB, free: 5.68 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00015/0.9224, allocations: 67.97 kB / 1.234 GB, free: 5.613 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002564/0.9227, allocations: 123.5 kB / 1.234 GB, free: 5.492 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001754/0.9229, allocations: 194.6 kB / 1.235 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0008063/0.9237, allocations: 0.5061 MB / 1.235 GB, free: 4.797 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.9237, allocations: 0 / 1.235 GB, free: 4.797 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.663e-06/0.9237, allocations: 0 / 1.235 GB, free: 4.797 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.794e-06/0.9237, allocations: 0 / 1.235 GB, free: 4.797 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.001296/0.925, allocations: 0.8198 MB / 1.236 GB, free: 3.926 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.9251, allocations: 8.031 kB / 1.236 GB, free: 3.918 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.9252, allocations: 68.52 kB / 1.236 GB, free: 3.852 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006312/0.9258, allocations: 428.5 kB / 1.236 GB, free: 3.395 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.9259, allocations: 8.375 kB / 1.236 GB, free: 3.387 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.609e-05/0.9259, allocations: 15.94 kB / 1.236 GB, free: 3.371 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002895/0.9262, allocations: 135 kB / 1.237 GB, free: 3.234 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.9262, allocations: 0 / 1.237 GB, free: 3.234 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.64e-05/0.9263, allocations: 7.984 kB / 1.237 GB, free: 3.227 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.9263, allocations: 4 kB / 1.237 GB, free: 3.223 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000201/0.9265, allocations: 83.91 kB / 1.237 GB, free: 3.141 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.9277, allocations: 0.6369 MB / 1.237 GB, free: 2.453 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005473/0.9282, allocations: 146.5 kB / 1.237 GB, free: 2.301 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.9283, allocations: 40.84 kB / 1.237 GB, free: 2.258 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.9284, allocations: 4 kB / 1.237 GB, free: 2.254 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002155/0.9286, allocations: 99.36 kB / 1.238 GB, free: 2.145 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=12): time 1.533e-06/0.9286, allocations: 0 / 1.238 GB, free: 2.145 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12): time 0.0004926/0.9291, allocations: 229.4 kB / 1.238 GB, free: 1.914 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.769e-05/0.9292, allocations: 63.39 kB / 1.238 GB, free: 1.84 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007797/0.93, allocations: 0.6398 MB / 1.238 GB, free: 1.188 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.365e-05/0.93, allocations: 33.7 kB / 1.239 GB, free: 1.148 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002339/0.9302, allocations: 264.5 kB / 1.239 GB, free: 0.8867 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.557e-05/0.9303, allocations: 35.69 kB / 1.239 GB, free: 0.8516 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.456e-05/0.9304, allocations: 53.7 kB / 1.239 GB, free: 0.793 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0002368/0.9306, allocations: 366.8 kB / 1.239 GB, free: 436 kB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.9308, allocations: 83.97 kB / 1.239 GB, free: 352 kB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.931, allocations: 118.7 kB / 1.239 GB, free: 224 kB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002403/0.9313, allocations: 132 kB / 1.24 GB, free: 88 kB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.9313, allocations: 0 / 1.24 GB, free: 88 kB / 0.9512 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005524/0.9318, allocations: 273.1 kB / 1.24 GB, free: 15.81 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.9319, allocations: 12.06 kB / 1.24 GB, free: 15.8 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.9319, allocations: 0 / 1.24 GB, free: 15.8 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.9319, allocations: 0 / 1.24 GB, free: 15.8 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003281/0.9322, allocations: 35.92 kB / 1.24 GB, free: 15.77 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.9323, allocations: 4 kB / 1.24 GB, free: 15.76 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000173/0.9324, allocations: 31.86 kB / 1.24 GB, free: 15.73 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.9325, allocations: 4 kB / 1.24 GB, free: 15.73 MB / 0.9669 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.0002523/0.9327, allocations: 217.7 kB / 1.24 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.09e-05/0.9328, allocations: 55.62 kB / 1.24 GB, free: 15.45 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.9329, allocations: 52.66 kB / 1.24 GB, free: 15.39 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.9329, allocations: 4 kB / 1.24 GB, free: 15.39 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.9329, allocations: 0 / 1.24 GB, free: 15.39 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.9329, allocations: 0 / 1.24 GB, free: 15.39 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004246/0.9334, allocations: 381.3 kB / 1.241 GB, free: 14.97 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.9334, allocations: 0 / 1.241 GB, free: 14.97 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.826e-05/0.9335, allocations: 12 kB / 1.241 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.9335, allocations: 0 / 1.241 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.9335, allocations: 7.984 kB / 1.241 GB, free: 14.95 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.9335, allocations: 4 kB / 1.241 GB, free: 14.95 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.9335, allocations: 4 kB / 1.241 GB, free: 14.94 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005265/0.934, allocations: 260.6 kB / 1.241 GB, free: 14.67 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.9342, allocations: 128.8 kB / 1.241 GB, free: 14.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.014e-05/0.9342, allocations: 4 kB / 1.241 GB, free: 14.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/0.9344, allocations: 11.98 kB / 1.241 GB, free: 14.51 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.542e-05/0.9345, allocations: 31.97 kB / 1.241 GB, free: 14.48 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.781e-05/0.9345, allocations: 7.984 kB / 1.241 GB, free: 14.47 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0006057/0.9351, allocations: 430.8 kB / 1.241 GB, free: 14.05 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9351, allocations: 0 / 1.241 GB, free: 14.05 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003015/0.9354, allocations: 59.88 kB / 1.241 GB, free: 13.99 MB / 0.9669 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.00166/0.9371, allocations: 420.4 kB / 1.242 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004899/0.9376, allocations: 167.7 kB / 1.242 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.9376, allocations: 0 / 1.242 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001353/0.9377, allocations: 55.92 kB / 1.242 GB, free: 13.51 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004846/0.9382, allocations: 84.81 kB / 1.242 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.94, allocations: 0.8517 MB / 1.243 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005535/0.9406, allocations: 0.8611 MB / 1.244 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.000116/0.9407, allocations: 34.28 kB / 1.244 GB, free: 11.63 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.9408, allocations: 31.42 kB / 1.244 GB, free: 11.6 MB / 0.9669 GB Notification: Performance of SimCode: time 3.61e-07/0.9408, allocations: 4 kB / 1.244 GB, free: 11.59 MB / 0.9669 GB Notification: Performance of Templates: time 0.01038/0.9512, allocations: 4.06 MB / 1.248 GB, free: 7.562 MB / 0.9669 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 -s gbode -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/jenkins1/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