Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.AssertWaterFlow,fileNamePrefix="Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_10_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.004743/0.004743, allocations: 101.2 kB / 15.73 MB, free: 5.988 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.001261/0.001261, allocations: 186.1 kB / 16.67 MB, free: 5.914 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 4.129 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.694/2.694, allocations: 437 MB / 0.7105 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 63.91 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.2865, allocations: 151.6 MB / 1.166 GB, free: 7.277 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003829/0.2903, allocations: 2.464 MB / 1.169 GB, free: 4.793 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002333/0.2927, allocations: 1.569 MB / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.2928, allocations: 4 kB / 1.17 GB, free: 3.211 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0008504/0.2937, allocations: 323 kB / 1.17 GB, free: 2.895 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000448/0.2942, allocations: 214.6 kB / 1.171 GB, free: 2.688 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006162/0.2948, allocations: 274.9 kB / 1.171 GB, free: 2.422 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004348/0.2952, allocations: 386.8 kB / 1.171 GB, free: 2.043 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.2954, allocations: 64.64 kB / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002078/0.2956, allocations: 163.3 kB / 1.171 GB, free: 1.82 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002091/0.2958, allocations: 167.2 kB / 1.172 GB, free: 1.656 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.566e-05/0.2959, allocations: 16 kB / 1.172 GB, free: 1.641 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001893/0.2961, allocations: 83.89 kB / 1.172 GB, free: 1.559 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.2962, allocations: 123.6 kB / 1.172 GB, free: 1.438 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.2964, allocations: 198.5 kB / 1.172 GB, free: 1.242 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0005757/0.297, allocations: 0.4977 MB / 1.173 GB, free: 0.7422 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.297, allocations: 0 / 1.173 GB, free: 0.7422 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.382e-06/0.297, allocations: 0 / 1.173 GB, free: 0.7422 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.297, allocations: 0 / 1.173 GB, free: 0.7422 MB / 0.92 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.001229/0.2983, allocations: 0.8645 MB / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.453e-05/0.2983, allocations: 8.031 kB / 1.173 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.785e-05/0.2984, allocations: 42.73 kB / 1.173 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.435e-05/0.2985, allocations: 64.52 kB / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000557/0.299, allocations: 453.1 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.299, allocations: 8 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.2e-05/0.2991, allocations: 12 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002844/0.2994, allocations: 135.3 kB / 1.174 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.2994, allocations: 4 kB / 1.174 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.2994, allocations: 7.938 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.2994, allocations: 3.938 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001706/0.2996, allocations: 63.97 kB / 1.174 GB, free: 14.97 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008533/0.3005, allocations: 0.5745 MB / 1.175 GB, free: 14.35 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003097/0.3008, allocations: 126.7 kB / 1.175 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.3009, allocations: 44.84 kB / 1.175 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.3009, allocations: 4 kB / 1.175 GB, free: 14.16 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002313/0.3012, allocations: 111.5 kB / 1.175 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=13): time 1.493e-06/0.3012, allocations: 0 / 1.175 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13): time 0.0005249/0.3017, allocations: 237.1 kB / 1.175 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.591e-05/0.3018, allocations: 89.09 kB / 1.175 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007831/0.3026, allocations: 0.6798 MB / 1.176 GB, free: 13.01 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.127e-05/0.3026, allocations: 33.7 kB / 1.176 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002203/0.3028, allocations: 264.4 kB / 1.176 GB, free: 12.71 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.984e-05/0.3029, allocations: 43.72 kB / 1.176 GB, free: 12.67 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.316e-05/0.303, allocations: 53.7 kB / 1.176 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001796/0.3032, allocations: 370.8 kB / 1.177 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.3033, allocations: 67.97 kB / 1.177 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001964/0.3035, allocations: 129 kB / 1.177 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002571/0.3038, allocations: 140.5 kB / 1.177 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3038, allocations: 0 / 1.177 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004614/0.3043, allocations: 273.1 kB / 1.177 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.3043, allocations: 5.25 kB / 1.177 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.3043, allocations: 11.98 kB / 1.177 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.3043, allocations: 4 kB / 1.177 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.3045, allocations: 31.92 kB / 1.177 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.3045, allocations: 7.938 kB / 1.177 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001574/0.3047, allocations: 23.88 kB / 1.177 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.382e-05/0.3047, allocations: 8 kB / 1.177 GB, free: 11.52 MB / 0.9356 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.0002311/0.305, allocations: 215.5 kB / 1.178 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.919e-05/0.305, allocations: 59.56 kB / 1.178 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.431e-05/0.3051, allocations: 61.05 kB / 1.178 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3051, allocations: 0 / 1.178 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.3052, allocations: 4 kB / 1.178 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.3052, allocations: 3.984 kB / 1.178 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003633/0.3055, allocations: 365.4 kB / 1.178 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3055, allocations: 0 / 1.178 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.878e-05/0.3056, allocations: 8 kB / 1.178 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.3056, allocations: 4.031 kB / 1.178 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.3056, allocations: 4 kB / 1.178 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.3056, allocations: 0 / 1.178 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3056, allocations: 8 kB / 1.178 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003827/0.306, allocations: 224.1 kB / 1.178 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.3061, allocations: 136.7 kB / 1.178 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.462e-05/0.3062, allocations: 8 kB / 1.178 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.3063, allocations: 7.984 kB / 1.178 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.151e-05/0.3064, allocations: 15.98 kB / 1.178 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.3064, allocations: 7.984 kB / 1.178 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0005376/0.307, allocations: 475 kB / 1.179 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.307, allocations: 0 / 1.179 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003102/0.3073, allocations: 67.89 kB / 1.179 GB, free: 9.793 MB / 0.9356 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.00213/0.3094, allocations: 1.089 MB / 1.18 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003754/0.3098, allocations: 150.3 kB / 1.18 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3098, allocations: 4 kB / 1.18 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001345/0.31, allocations: 59.55 kB / 1.18 GB, free: 8.629 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004905/0.3105, allocations: 97.66 kB / 1.18 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00486/0.3153, allocations: 3.9 MB / 1.184 GB, free: 4.539 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004957/0.3159, allocations: 0.8581 MB / 1.185 GB, free: 3.656 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001528/0.316, allocations: 50.94 kB / 1.185 GB, free: 3.605 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002285/0.3162, allocations: 167.4 kB / 1.185 GB, free: 3.441 MB / 0.9356 GB Notification: Performance of SimCode: time 3.41e-07/0.3163, allocations: 0 / 1.185 GB, free: 3.441 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03104/0.3473, allocations: 9.82 MB / 1.195 GB, free: 9.809 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.725/9.072, allocations: 19.64 kB / 1.195 GB, free: 9.793 MB / 0.9512 GB (rm -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.csv --start-time 0 --stop-time 900 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.36 Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches