Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.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: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature,fileNamePrefix="Buildings_11_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature,fileNamePrefix="Buildings_11_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature",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.006941/0.006941, allocations: 96.69 kB / 15.73 MB, free: 6.031 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.001774/0.001774, allocations: 196.4 kB / 16.68 MB, free: 5.961 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.851/2.851, allocations: 469.8 MB / 0.7425 GB, free: 7.332 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 72.09 kB / 1.065 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2723, allocations: 159.1 MB / 1.22 GB, free: 14.28 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature): time 0.003493/0.2758, allocations: 2.193 MB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002013/0.2778, allocations: 1.373 MB / 1.224 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.488e-05/0.2779, allocations: 4 kB / 1.224 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005467/0.2785, allocations: 195.3 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002864/0.2788, allocations: 127.3 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003448/0.2791, allocations: 143.6 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002795/0.2794, allocations: 223.1 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.2796, allocations: 48.36 kB / 1.224 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000135/0.2797, allocations: 91.58 kB / 1.224 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.2799, allocations: 99.48 kB / 1.225 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.705e-05/0.2799, allocations: 12 kB / 1.225 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001337/0.2801, allocations: 51.97 kB / 1.225 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.2802, allocations: 91.61 kB / 1.225 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.2803, allocations: 142.9 kB / 1.225 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004289/0.2807, allocations: 358.2 kB / 1.225 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.2808, allocations: 0 / 1.225 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.123e-06/0.2808, allocations: 0 / 1.225 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.2808, allocations: 4 kB / 1.225 GB, free: 9.129 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0009271/0.2817, allocations: 0.6995 MB / 1.226 GB, free: 8.379 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.2817, allocations: 8.031 kB / 1.226 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.987e-05/0.2818, allocations: 38.69 kB / 1.226 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.229e-05/0.2819, allocations: 48.64 kB / 1.226 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000438/0.2823, allocations: 352.8 kB / 1.226 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.2823, allocations: 12.12 kB / 1.226 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.811e-05/0.2824, allocations: 8 kB / 1.226 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001745/0.2825, allocations: 73.66 kB / 1.226 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.2826, allocations: 0 / 1.226 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.2826, allocations: 0 / 1.226 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.2826, allocations: 4 kB / 1.226 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001071/0.2827, allocations: 39.91 kB / 1.226 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006521/0.2834, allocations: 464.5 kB / 1.227 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001846/0.2836, allocations: 66.62 kB / 1.227 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.469e-05/0.2836, allocations: 24.84 kB / 1.227 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.2837, allocations: 3.938 kB / 1.227 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001547/0.2838, allocations: 79.38 kB / 1.227 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.523e-06/0.2838, allocations: 4 kB / 1.227 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0003384/0.2842, allocations: 153.2 kB / 1.227 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.2842, allocations: 51.41 kB / 1.227 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006107/0.2848, allocations: 0.5294 MB / 1.228 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.2849, allocations: 29.7 kB / 1.228 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000179/0.2851, allocations: 216 kB / 1.228 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.2851, allocations: 19.89 kB / 1.228 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.297e-05/0.2852, allocations: 41.7 kB / 1.228 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001672/0.2853, allocations: 362.8 kB / 1.228 GB, free: 5.613 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.2855, allocations: 47.98 kB / 1.228 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.2856, allocations: 70.55 kB / 1.228 GB, free: 5.488 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001667/0.2858, allocations: 85.64 kB / 1.229 GB, free: 5.398 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2858, allocations: 0 / 1.229 GB, free: 5.398 MB / 0.9825 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003309/0.2861, allocations: 203.3 kB / 1.229 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.2861, allocations: 8 kB / 1.229 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.2861, allocations: 0 / 1.229 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.2862, allocations: 3.938 kB / 1.229 GB, free: 5.184 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.2863, allocations: 31.92 kB / 1.229 GB, free: 5.152 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.2863, allocations: 0 / 1.229 GB, free: 5.152 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.2864, allocations: 11.98 kB / 1.229 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.295e-05/0.2865, allocations: 11.98 kB / 1.229 GB, free: 5.129 MB / 0.9825 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.TWat.tab.nextTimeEvent,$whenCondition1,TWat.tab.nextTimeEventScaled,$PRE.TWat.tab.nextTimeEventScaled,TWat.tab.nextTimeEvent,assWatTem.hys.y,$PRE.assWatTem.hys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.000184/0.2866, allocations: 179 kB / 1.229 GB, free: 4.945 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.284e-05/0.2867, allocations: 47.95 kB / 1.229 GB, free: 4.898 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.342e-05/0.2868, allocations: 43.81 kB / 1.229 GB, free: 4.852 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.2868, allocations: 3.938 kB / 1.229 GB, free: 4.848 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.2868, allocations: 7.938 kB / 1.229 GB, free: 4.84 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.2868, allocations: 0 / 1.229 GB, free: 4.84 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002849/0.2871, allocations: 305.4 kB / 1.229 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.2871, allocations: 112 / 1.229 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.351e-05/0.2871, allocations: 7.938 kB / 1.229 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2872, allocations: 0 / 1.229 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.2872, allocations: 7.984 kB / 1.229 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.2872, allocations: 3.938 kB / 1.229 GB, free: 4.473 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2872, allocations: 0 / 1.229 GB, free: 4.473 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002392/0.2874, allocations: 148.8 kB / 1.23 GB, free: 4.309 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.553e-05/0.2875, allocations: 116.8 kB / 1.23 GB, free: 4.176 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.265e-05/0.2876, allocations: 7.984 kB / 1.23 GB, free: 4.168 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.366e-05/0.2877, allocations: 7.938 kB / 1.23 GB, free: 4.16 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.704e-05/0.2877, allocations: 15.98 kB / 1.23 GB, free: 4.145 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.2877, allocations: 4 kB / 1.23 GB, free: 4.141 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000417/0.2882, allocations: 374.7 kB / 1.23 GB, free: 3.777 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2882, allocations: 0 / 1.23 GB, free: 3.777 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002619/0.2884, allocations: 43.94 kB / 1.23 GB, free: 3.734 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,assWatTem.hys.y,TWat.tab.nextTimeEvent,TWat.tab.nextTimeEventScaled) * Number of discrete states: 3 (TWat.tab.nextTimeEventScaled,assWatTem.hys.y,TWat.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.002018/0.2905, allocations: 0.9827 MB / 1.231 GB, free: 2.883 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000259/0.2907, allocations: 99.89 kB / 1.231 GB, free: 2.785 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.2907, allocations: 0 / 1.231 GB, free: 2.785 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.829e-05/0.2908, allocations: 35.86 kB / 1.231 GB, free: 2.75 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003737/0.2912, allocations: 68.97 kB / 1.231 GB, free: 2.695 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003652/0.2949, allocations: 3.073 MB / 1.234 GB, free: 15.53 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004377/0.2953, allocations: 0.8106 MB / 1.235 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.984e-05/0.2954, allocations: 29.64 kB / 1.235 GB, free: 14.66 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.2956, allocations: 111.4 kB / 1.235 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of SimCode: time 2.71e-07/0.2956, allocations: 0 / 1.235 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02869/0.3243, allocations: 7.262 MB / 1.242 GB, free: 7.477 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.16/8.485, allocations: 9.609 kB / 1.242 GB, free: 7.469 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe ; mkfifo Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe >> ../files/Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature_res.csv --start-time 0 --stop-time 900 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.36 Buildings_11_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature.fmu > Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches