Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.AssertFuelFlow,fileNamePrefix="Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow,fileNamePrefix="Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow",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.001195/0.001198, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001182/0.001182, allocations: 194.1 kB / 16.14 MB, free: 6.711 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.204/1.204, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.419/2.419, allocations: 437 MB / 0.7099 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 59.91 kB / 0.8687 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5339/0.5354, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow): time 0.003514/0.5389, allocations: 2.313 MB / 1.019 GB, free: 464 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002065/0.541, allocations: 1.421 MB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.5412, allocations: 0 / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005801/0.5418, allocations: 181.5 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003337/0.5422, allocations: 115.4 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003981/0.5426, allocations: 143.7 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003128/0.5429, allocations: 255.1 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.5431, allocations: 52.72 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.5432, allocations: 95.44 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001468/0.5434, allocations: 119.3 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.603e-05/0.5434, allocations: 8 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001399/0.5436, allocations: 51.97 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.626e-05/0.5437, allocations: 83.67 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.5438, allocations: 146.8 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003684/0.5442, allocations: 370.6 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.5442, allocations: 4 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of FrontEnd: time 6.61e-07/0.5442, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.564e-06/0.5442, allocations: 0 / 1.022 GB, free: 13.43 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009803/0.5452, allocations: 0.7114 MB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.5452, allocations: 8.031 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.406e-05/0.5453, allocations: 46.67 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.965e-05/0.5454, allocations: 44.38 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004657/0.5458, allocations: 400.1 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.5459, allocations: 16.12 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.56e-05/0.5459, allocations: 8 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002133/0.5461, allocations: 99.89 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.5461, allocations: 3.938 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.5462, allocations: 0 / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.5462, allocations: 4 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001317/0.5463, allocations: 51.97 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007764/0.5471, allocations: 0.4925 MB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003499/0.5475, allocations: 106.7 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.043e-05/0.5475, allocations: 36.84 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.319e-05/0.5476, allocations: 0 / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001782/0.5478, allocations: 95.25 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.583e-06/0.5478, allocations: 0 / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0003915/0.5482, allocations: 181 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.676e-05/0.5482, allocations: 55.78 kB / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004996/0.5487, allocations: 0.4911 MB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/0.5487, allocations: 29.7 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.5489, allocations: 232 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.277e-05/0.549, allocations: 35.62 kB / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.496e-05/0.549, allocations: 45.7 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.5492, allocations: 358.8 kB / 1.025 GB, free: 9.688 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.5493, allocations: 43.98 kB / 1.025 GB, free: 9.645 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.5494, allocations: 82.11 kB / 1.025 GB, free: 9.559 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001871/0.5496, allocations: 109.1 kB / 1.026 GB, free: 9.449 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.5496, allocations: 3.938 kB / 1.026 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003298/0.55, allocations: 201 kB / 1.026 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.55, allocations: 10.5 kB / 1.026 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.55, allocations: 0 / 1.026 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.55, allocations: 0 / 1.026 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/0.5502, allocations: 35.92 kB / 1.026 GB, free: 9.199 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.5502, allocations: 4 kB / 1.026 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001296/0.5503, allocations: 19.83 kB / 1.026 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/0.5504, allocations: 12.03 kB / 1.026 GB, free: 9.164 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: 7 ($PRE.mFue_flow.tab.nextTimeEvent,$whenCondition1,mFue_flow.tab.nextTimeEventScaled,$PRE.mFue_flow.tab.nextTimeEventScaled,mFue_flow.tab.nextTimeEvent,assFue.hys.y,$PRE.assFue.hys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001663/0.5505, allocations: 196.2 kB / 1.026 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.864e-05/0.5506, allocations: 47.42 kB / 1.026 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.913e-05/0.5507, allocations: 43.92 kB / 1.026 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.5507, allocations: 0 / 1.026 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.5507, allocations: 0 / 1.026 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.5507, allocations: 3.984 kB / 1.026 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002429/0.5509, allocations: 313.5 kB / 1.026 GB, free: 8.516 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.5509, allocations: 0 / 1.026 GB, free: 8.516 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.415e-05/0.551, allocations: 15.98 kB / 1.026 GB, free: 8.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.551, allocations: 0 / 1.026 GB, free: 8.5 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.551, allocations: 8 kB / 1.026 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.551, allocations: 4 kB / 1.026 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.5511, allocations: 0 / 1.026 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003455/0.5514, allocations: 216.4 kB / 1.027 GB, free: 8.258 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.317e-05/0.5515, allocations: 116.5 kB / 1.027 GB, free: 8.125 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.122e-05/0.5515, allocations: 8 kB / 1.027 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.017e-05/0.5516, allocations: 12.05 kB / 1.027 GB, free: 8.105 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.014e-05/0.5517, allocations: 12.08 kB / 1.027 GB, free: 8.094 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.5517, allocations: 11.88 kB / 1.027 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003385/0.552, allocations: 350.8 kB / 1.027 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5521, allocations: 0 / 1.027 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002749/0.5523, allocations: 51.89 kB / 1.027 GB, free: 7.691 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (assFue.floChaRat.x) * Number of discrete variables: 4 ($whenCondition1,assFue.hys.y,mFue_flow.tab.nextTimeEvent,mFue_flow.tab.nextTimeEventScaled) * Number of discrete states: 3 (mFue_flow.tab.nextTimeEventScaled,assFue.hys.y,mFue_flow.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.001445/0.5538, allocations: 1.071 MB / 1.028 GB, free: 6.75 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002509/0.554, allocations: 99.91 kB / 1.028 GB, free: 6.652 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.5541, allocations: 0 / 1.028 GB, free: 6.652 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.63e-05/0.5542, allocations: 43.92 kB / 1.028 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003804/0.5545, allocations: 73.56 kB / 1.028 GB, free: 6.539 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003551/0.5581, allocations: 3.258 MB / 1.032 GB, free: 3.188 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.5584, allocations: 0.8313 MB / 1.032 GB, free: 2.332 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.000121/0.5586, allocations: 37.92 kB / 1.032 GB, free: 2.297 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001527/0.5587, allocations: 123.4 kB / 1.033 GB, free: 2.176 MB / 0.7794 GB Notification: Performance of SimCode: time 3.8e-07/0.5587, allocations: 4 kB / 1.033 GB, free: 2.172 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7423/1.301, allocations: 7.285 MB / 1.04 GB, free: 11.05 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003103/1.301, allocations: 269.2 kB / 1.04 GB, free: 10.79 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.877/3.179, allocations: 0 / 1.04 GB, free: 10.79 MB / 0.795 GB (rm -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe ; mkfifo Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe >> ../files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow.fmu > Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches