Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.AssertFuelFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assFue.assMes.u|assFue.mFue_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assFue.assMes.u|assFue.mFue_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001612/0.001611, 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.002203/0.002204, allocations: 193.2 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.472/1.472, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.894/2.894, allocations: 472.7 MB / 0.7447 GB, free: 4.895 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 67.08 kB / 0.9114 GB, free: 33.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4352/0.4366, allocations: 159.9 MB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow): time 0.004937/0.4416, allocations: 2.293 MB / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002729/0.4444, allocations: 1.428 MB / 1.071 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000174/0.4446, allocations: 3.938 kB / 1.071 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0006964/0.4453, allocations: 175.7 kB / 1.071 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003187/0.4456, allocations: 119.5 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000391/0.446, allocations: 147.7 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003482/0.4464, allocations: 255.1 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002145/0.4466, allocations: 60.92 kB / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001723/0.4468, allocations: 95.45 kB / 1.072 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001851/0.447, allocations: 111.4 kB / 1.072 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.318e-05/0.447, allocations: 8 kB / 1.072 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001477/0.4472, allocations: 43.97 kB / 1.072 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001291/0.4473, allocations: 91.66 kB / 1.072 GB, free: 5.984 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001634/0.4475, allocations: 142.8 kB / 1.072 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004688/0.448, allocations: 378.5 kB / 1.073 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.448, allocations: 4 kB / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.352e-06/0.448, allocations: 0 / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.818e-06/0.448, allocations: 4 kB / 1.073 GB, free: 5.465 MB / 0.8262 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.001318/0.4493, allocations: 0.7036 MB / 1.073 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.4494, allocations: 11.97 kB / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.4495, allocations: 52.28 kB / 1.074 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005316/0.45, allocations: 404.1 kB / 1.074 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.4501, allocations: 8.375 kB / 1.074 GB, free: 4.207 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.796e-05/0.4501, allocations: 11.94 kB / 1.074 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002171/0.4503, allocations: 95.41 kB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.4503, allocations: 0 / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.4504, allocations: 8 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.4504, allocations: 0 / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001363/0.4505, allocations: 55.91 kB / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007975/0.4513, allocations: 492.5 kB / 1.075 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003694/0.4517, allocations: 106.7 kB / 1.075 GB, free: 3.391 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.484e-05/0.4518, allocations: 40.78 kB / 1.075 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.744e-05/0.4518, allocations: 8 kB / 1.075 GB, free: 3.34 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001876/0.452, allocations: 79.38 kB / 1.075 GB, free: 3.25 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.432e-06/0.452, allocations: 3.938 kB / 1.075 GB, free: 3.246 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0004183/0.4525, allocations: 181 kB / 1.075 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/0.4525, allocations: 55.34 kB / 1.075 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005397/0.4531, allocations: 0.4989 MB / 1.075 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/0.4531, allocations: 29.7 kB / 1.076 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002539/0.4534, allocations: 224 kB / 1.076 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.031e-05/0.4534, allocations: 31.64 kB / 1.076 GB, free: 2.199 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.883e-05/0.4535, allocations: 45.7 kB / 1.076 GB, free: 2.148 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001898/0.4537, allocations: 358.8 kB / 1.076 GB, free: 1.789 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.4538, allocations: 47.98 kB / 1.076 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001296/0.454, allocations: 73.55 kB / 1.076 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002046/0.4542, allocations: 113.1 kB / 1.076 GB, free: 1.551 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.4542, allocations: 0 / 1.076 GB, free: 1.551 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003471/0.4545, allocations: 217.2 kB / 1.077 GB, free: 1.332 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.4546, allocations: 4 kB / 1.077 GB, free: 1.328 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.4546, allocations: 0 / 1.077 GB, free: 1.328 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.4546, allocations: 0 / 1.077 GB, free: 1.328 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.4548, allocations: 43.86 kB / 1.077 GB, free: 1.285 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.4548, allocations: 3.984 kB / 1.077 GB, free: 1.281 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001228/0.4549, allocations: 20.02 kB / 1.077 GB, free: 1.262 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.455, allocations: 4 kB / 1.077 GB, free: 1.258 MB / 0.8262 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.0001993/0.4552, allocations: 187.5 kB / 1.077 GB, free: 1.066 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.252e-05/0.4552, allocations: 51.36 kB / 1.077 GB, free: 1.016 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.437e-05/0.4553, allocations: 47.92 kB / 1.077 GB, free: 0.9688 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.4553, allocations: 0 / 1.077 GB, free: 0.9688 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.4553, allocations: 4 kB / 1.077 GB, free: 0.9648 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.4553, allocations: 3.984 kB / 1.077 GB, free: 0.9609 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000306/0.4556, allocations: 321.3 kB / 1.077 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.4557, allocations: 4 kB / 1.077 GB, free: 0.5938 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.606e-05/0.4557, allocations: 11.98 kB / 1.077 GB, free: 0.582 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.4557, allocations: 0 / 1.077 GB, free: 0.582 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.4558, allocations: 4 kB / 1.077 GB, free: 0.5781 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.4558, allocations: 0 / 1.077 GB, free: 0.5781 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.4558, allocations: 3.938 kB / 1.077 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000395/0.4562, allocations: 224.4 kB / 1.077 GB, free: 344 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.362e-05/0.4563, allocations: 116.6 kB / 1.078 GB, free: 208 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.098e-05/0.4563, allocations: 4 kB / 1.078 GB, free: 204 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.858e-05/0.4564, allocations: 7.984 kB / 1.078 GB, free: 196 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.052e-05/0.4565, allocations: 7.984 kB / 1.078 GB, free: 188 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.4565, allocations: 4 kB / 1.078 GB, free: 184 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003938/0.4569, allocations: 358.8 kB / 1.078 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4569, allocations: 0 / 1.078 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002736/0.4572, allocations: 43.98 kB / 1.078 GB, free: 15.79 MB / 0.8419 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.001161/0.4583, allocations: 431.6 kB / 1.078 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003012/0.4586, allocations: 103.9 kB / 1.078 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4587, allocations: 0 / 1.078 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.4588, allocations: 39.98 kB / 1.079 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004591/0.4592, allocations: 63.44 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.4606, allocations: 0.783 MB / 1.079 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004574/0.461, allocations: 0.8301 MB / 1.08 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001363/0.4612, allocations: 29.94 kB / 1.08 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.878e-05/0.4613, allocations: 27.44 kB / 1.08 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.4613, allocations: 0 / 1.08 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of Templates: time 0.00766/0.4689, allocations: 2.907 MB / 1.083 GB, free: 10.71 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.makefile (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches