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: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,fileNamePrefix="Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,fileNamePrefix="Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001866/0.001865, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.372/1.372, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.539/2.539, allocations: 437.1 MB / 0.7104 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 67.83 kB / 0.8693 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5214/0.5227, allocations: 151.6 MB / 1.017 GB, free: 2.594 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower): time 0.004009/0.5268, allocations: 2.421 MB / 1.02 GB, free: 160 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002215/0.529, allocations: 1.52 MB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.5292, allocations: 4 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005751/0.5298, allocations: 230.9 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003188/0.5301, allocations: 151.2 kB / 1.022 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003849/0.5305, allocations: 187.5 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003343/0.5308, allocations: 342.9 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002081/0.5311, allocations: 92.7 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.5312, allocations: 139.4 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.5314, allocations: 159.2 kB / 1.023 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.499e-05/0.5315, allocations: 24 kB / 1.023 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.5316, allocations: 59.98 kB / 1.023 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.5317, allocations: 127.5 kB / 1.023 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.5319, allocations: 190.6 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004411/0.5323, allocations: 498.1 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.5324, allocations: 8 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.293e-06/0.5324, allocations: 0 / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.496e-06/0.5324, allocations: 4 kB / 1.023 GB, free: 12.45 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.001085/0.5335, allocations: 0.7984 MB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.5335, allocations: 12.02 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.084e-05/0.5336, allocations: 38.75 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.118e-05/0.5336, allocations: 60.19 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004682/0.5341, allocations: 435.8 kB / 1.025 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.5341, allocations: 12.12 kB / 1.025 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.513e-05/0.5342, allocations: 16 kB / 1.025 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002527/0.5344, allocations: 130.5 kB / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.5345, allocations: 0 / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.5345, allocations: 11.98 kB / 1.025 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.5345, allocations: 0 / 1.025 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000172/0.5347, allocations: 79.97 kB / 1.025 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009429/0.5356, allocations: 0.6483 MB / 1.026 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003614/0.536, allocations: 138.7 kB / 1.026 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.959e-05/0.5361, allocations: 40.84 kB / 1.026 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.5361, allocations: 8 kB / 1.026 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002009/0.5363, allocations: 103.3 kB / 1.026 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.523e-06/0.5364, allocations: 0 / 1.026 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0004236/0.5368, allocations: 212.9 kB / 1.026 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.5368, allocations: 55.41 kB / 1.026 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006364/0.5375, allocations: 0.6436 MB / 1.027 GB, free: 8.828 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.5375, allocations: 33.7 kB / 1.027 GB, free: 8.789 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.5377, allocations: 260.4 kB / 1.027 GB, free: 8.531 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.482e-05/0.5377, allocations: 39.55 kB / 1.027 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.831e-05/0.5378, allocations: 57.61 kB / 1.027 GB, free: 8.43 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.538, allocations: 374.7 kB / 1.027 GB, free: 8.055 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001331/0.5381, allocations: 75.97 kB / 1.028 GB, free: 7.98 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.5383, allocations: 124.7 kB / 1.028 GB, free: 7.848 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001999/0.5385, allocations: 122.7 kB / 1.028 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.5385, allocations: 4.031 kB / 1.028 GB, free: 7.719 MB / 0.7794 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003873/0.5389, allocations: 278.9 kB / 1.028 GB, free: 7.441 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.5389, allocations: 4 kB / 1.028 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.5389, allocations: 0 / 1.028 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.5389, allocations: 4 kB / 1.028 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001739/0.5391, allocations: 31.98 kB / 1.028 GB, free: 7.402 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.5391, allocations: 7.938 kB / 1.028 GB, free: 7.395 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001687/0.5393, allocations: 31.81 kB / 1.028 GB, free: 7.363 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/0.5393, allocations: 12.03 kB / 1.028 GB, free: 7.352 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.0001922/0.5395, allocations: 201.7 kB / 1.028 GB, free: 7.145 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.52e-05/0.5396, allocations: 51.34 kB / 1.028 GB, free: 7.094 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.532e-05/0.5397, allocations: 60.66 kB / 1.028 GB, free: 7.035 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.5397, allocations: 4 kB / 1.028 GB, free: 7.031 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.5397, allocations: 0 / 1.028 GB, free: 7.031 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.5397, allocations: 0 / 1.028 GB, free: 7.031 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003246/0.54, allocations: 373.3 kB / 1.029 GB, free: 6.617 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.5401, allocations: 4 kB / 1.029 GB, free: 6.613 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.481e-05/0.5401, allocations: 11.94 kB / 1.029 GB, free: 6.602 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.5401, allocations: 4 kB / 1.029 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.5402, allocations: 11.98 kB / 1.029 GB, free: 6.586 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.5402, allocations: 0 / 1.029 GB, free: 6.586 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.5402, allocations: 0 / 1.029 GB, free: 6.586 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004243/0.5406, allocations: 260.7 kB / 1.029 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.972e-05/0.5407, allocations: 128.4 kB / 1.029 GB, free: 6.168 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.5408, allocations: 8.062 kB / 1.029 GB, free: 6.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001277/0.5409, allocations: 11.98 kB / 1.029 GB, free: 6.148 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.535e-05/0.541, allocations: 19.97 kB / 1.029 GB, free: 6.129 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.541, allocations: 7.984 kB / 1.029 GB, free: 6.121 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004905/0.5415, allocations: 438.7 kB / 1.03 GB, free: 5.695 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5415, allocations: 0 / 1.03 GB, free: 5.695 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002891/0.5418, allocations: 59.91 kB / 1.03 GB, free: 5.637 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.001519/0.5433, allocations: 1.108 MB / 1.031 GB, free: 4.66 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003289/0.5436, allocations: 163.8 kB / 1.031 GB, free: 4.5 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.5437, allocations: 0 / 1.031 GB, free: 4.5 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.5438, allocations: 51.98 kB / 1.031 GB, free: 4.449 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004111/0.5442, allocations: 86.61 kB / 1.031 GB, free: 4.371 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004305/0.5485, allocations: 3.887 MB / 1.035 GB, free: 392 kB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003946/0.5489, allocations: 0.8571 MB / 1.036 GB, free: 15.5 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001261/0.5491, allocations: 38.27 kB / 1.036 GB, free: 15.46 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001942/0.5493, allocations: 159.4 kB / 1.036 GB, free: 15.31 MB / 0.795 GB Notification: Performance of SimCode: time 2.61e-07/0.5493, allocations: 0 / 1.036 GB, free: 15.31 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02673/0.576, allocations: 9.086 MB / 1.045 GB, free: 6.379 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.292/7.868, allocations: 7.922 kB / 1.045 GB, free: 6.371 MB / 0.795 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.csv --start-time 0 --stop-time 1800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.72 Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.fmu > Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.csv","/var/lib/jenkins1/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