Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.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.AssertWaterFlow,fileNamePrefix="Buildings_11_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_11_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",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.004367/0.004367, allocations: 99.27 kB / 15.73 MB, free: 6.039 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.001266/0.001266, allocations: 195.2 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.84/2.84, allocations: 469.8 MB / 0.7425 GB, free: 7.336 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 71.91 kB / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2837, allocations: 159.1 MB / 1.22 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003835/0.2875, allocations: 2.465 MB / 1.223 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002331/0.2899, allocations: 1.572 MB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.29, allocations: 7.938 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0008337/0.2909, allocations: 323 kB / 1.224 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000417/0.2913, allocations: 215.1 kB / 1.225 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005924/0.2919, allocations: 267 kB / 1.225 GB, free: 9.441 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004352/0.2923, allocations: 394.7 kB / 1.225 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.2925, allocations: 72.64 kB / 1.225 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002058/0.2927, allocations: 163.3 kB / 1.226 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002064/0.2929, allocations: 159.3 kB / 1.226 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.9e-05/0.293, allocations: 20 kB / 1.226 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001805/0.2931, allocations: 79.89 kB / 1.226 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.2933, allocations: 131.5 kB / 1.226 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001816/0.2935, allocations: 190.6 kB / 1.226 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005605/0.2941, allocations: 0.5015 MB / 1.227 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.2941, allocations: 0 / 1.227 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2941, allocations: 3.938 kB / 1.227 GB, free: 7.746 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.039e-05/0.2941, allocations: 0 / 1.227 GB, free: 7.746 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001169/0.2953, allocations: 0.8528 MB / 1.227 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.2953, allocations: 8.031 kB / 1.227 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.362e-05/0.2954, allocations: 42.73 kB / 1.227 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.119e-05/0.2954, allocations: 60.56 kB / 1.227 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005498/0.296, allocations: 445.2 kB / 1.228 GB, free: 6.242 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.296, allocations: 8 kB / 1.228 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.542e-05/0.2961, allocations: 12 kB / 1.228 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002779/0.2963, allocations: 133.6 kB / 1.228 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.2964, allocations: 0 / 1.228 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.774e-05/0.2964, allocations: 7.984 kB / 1.228 GB, free: 6.074 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.457e-06/0.2964, allocations: 7.938 kB / 1.228 GB, free: 6.066 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.2966, allocations: 75.91 kB / 1.228 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000835/0.2974, allocations: 0.5744 MB / 1.229 GB, free: 5.367 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003211/0.2978, allocations: 126.8 kB / 1.229 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.2979, allocations: 44.84 kB / 1.229 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.2979, allocations: 0 / 1.229 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002353/0.2982, allocations: 115.5 kB / 1.229 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=13): time 3.697e-06/0.2982, allocations: 0 / 1.229 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13): time 0.0005449/0.2987, allocations: 245.1 kB / 1.229 GB, free: 4.816 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.2988, allocations: 81.11 kB / 1.229 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008029/0.2996, allocations: 0.6837 MB / 1.23 GB, free: 4.023 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.2996, allocations: 33.7 kB / 1.23 GB, free: 3.984 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002294/0.2999, allocations: 264.4 kB / 1.23 GB, free: 3.723 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.113e-05/0.2999, allocations: 39.73 kB / 1.23 GB, free: 3.684 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.375e-05/0.3, allocations: 57.64 kB / 1.23 GB, free: 3.621 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001801/0.3002, allocations: 370.8 kB / 1.231 GB, free: 3.25 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.3004, allocations: 79.91 kB / 1.231 GB, free: 3.172 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001946/0.3006, allocations: 117.1 kB / 1.231 GB, free: 3.039 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002678/0.3008, allocations: 136.4 kB / 1.231 GB, free: 2.898 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3009, allocations: 0 / 1.231 GB, free: 2.898 MB / 0.9825 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004755/0.3013, allocations: 273.1 kB / 1.231 GB, free: 2.625 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.3014, allocations: 4 kB / 1.231 GB, free: 2.621 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.3014, allocations: 7.938 kB / 1.231 GB, free: 2.613 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.3014, allocations: 0 / 1.231 GB, free: 2.613 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.3015, allocations: 31.98 kB / 1.231 GB, free: 2.582 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.3016, allocations: 3.984 kB / 1.231 GB, free: 2.578 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001565/0.3017, allocations: 23.94 kB / 1.231 GB, free: 2.555 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.004e-05/0.3018, allocations: 4 kB / 1.231 GB, free: 2.551 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.mWat_flow.tab.nextTimeEvent,$whenCondition1,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.y,mWat_flow.tab.nextTimeEventScaled,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEvent,assWatMas.hys.y,$PRE.assWatMas.hys.y,assWatMas.assMes.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.000233/0.302, allocations: 219.5 kB / 1.232 GB, free: 2.324 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.099e-05/0.3021, allocations: 59.56 kB / 1.232 GB, free: 2.266 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.531e-05/0.3022, allocations: 61.05 kB / 1.232 GB, free: 2.199 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.3022, allocations: 0 / 1.232 GB, free: 2.199 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.3022, allocations: 48 / 1.232 GB, free: 2.199 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.3022, allocations: 3.984 kB / 1.232 GB, free: 2.195 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003703/0.3026, allocations: 365.4 kB / 1.232 GB, free: 1.789 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3026, allocations: 0 / 1.232 GB, free: 1.789 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.191e-05/0.3026, allocations: 23.92 kB / 1.232 GB, free: 1.766 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.3026, allocations: 0 / 1.232 GB, free: 1.766 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.3027, allocations: 4 kB / 1.232 GB, free: 1.762 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.3027, allocations: 0 / 1.232 GB, free: 1.762 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3027, allocations: 3.938 kB / 1.232 GB, free: 1.758 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003854/0.3031, allocations: 235.5 kB / 1.232 GB, free: 1.512 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.3032, allocations: 124.8 kB / 1.232 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.239e-05/0.3032, allocations: 7.984 kB / 1.232 GB, free: 1.363 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.3034, allocations: 15.98 kB / 1.232 GB, free: 1.348 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.131e-05/0.3034, allocations: 19.98 kB / 1.232 GB, free: 1.328 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.3035, allocations: 4 kB / 1.232 GB, free: 1.324 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0005557/0.304, allocations: 471 kB / 1.233 GB, free: 0.8711 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.51e-07/0.304, allocations: 0 / 1.233 GB, free: 0.8711 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003052/0.3043, allocations: 71.88 kB / 1.233 GB, free: 0.8008 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: 9 ($whenCondition2,$whenCondition1,assWatMas.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (runSig.combiTimeTable.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.002141/0.3065, allocations: 1.086 MB / 1.234 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003615/0.3069, allocations: 155.8 kB / 1.234 GB, free: 15.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.3069, allocations: 0 / 1.234 GB, free: 15.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.307, allocations: 55.92 kB / 1.234 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004847/0.3075, allocations: 99.47 kB / 1.234 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004912/0.3124, allocations: 3.904 MB / 1.238 GB, free: 11.55 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004949/0.3129, allocations: 0.8611 MB / 1.239 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001274/0.3131, allocations: 46.94 kB / 1.239 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002283/0.3133, allocations: 175.4 kB / 1.239 GB, free: 10.44 MB / 0.9981 GB Notification: Performance of SimCode: time 2.71e-07/0.3133, allocations: 0 / 1.239 GB, free: 10.44 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03233/0.3457, allocations: 9.802 MB / 1.249 GB, free: 0.8203 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.466/8.812, allocations: 12.44 kB / 1.249 GB, free: 0.8164 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_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_AssertWaterFlow.fmu > Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches