Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_latest_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.004979/0.004978, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001126/0.001127, allocations: 195.1 kB / 16.67 MB, free: 5.977 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.295/1.295, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.609/2.609, allocations: 469.4 MB / 0.7421 GB, free: 7.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 63.89 kB / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2859, allocations: 159.1 MB / 1.22 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004103/0.29, allocations: 2.476 MB / 1.222 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002428/0.2925, allocations: 1.564 MB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002164/0.2928, allocations: 7.938 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0008887/0.2937, allocations: 326 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0005064/0.2942, allocations: 223.1 kB / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006584/0.2948, allocations: 262.2 kB / 1.224 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004615/0.2953, allocations: 390.8 kB / 1.225 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.2955, allocations: 72.66 kB / 1.225 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002583/0.2958, allocations: 171.2 kB / 1.225 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.296, allocations: 163.2 kB / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.865e-05/0.296, allocations: 16 kB / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001763/0.2962, allocations: 79.95 kB / 1.225 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.2963, allocations: 135.5 kB / 1.225 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001639/0.2965, allocations: 186.6 kB / 1.226 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005417/0.2971, allocations: 0.5053 MB / 1.226 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2971, allocations: 0 / 1.226 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.363e-06/0.2971, allocations: 0 / 1.226 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.792e-05/0.2971, allocations: 0 / 1.226 GB, free: 8.074 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.001214/0.2983, allocations: 0.8451 MB / 1.227 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.2984, allocations: 15.97 kB / 1.227 GB, free: 7.156 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.322e-05/0.2984, allocations: 42.73 kB / 1.227 GB, free: 7.105 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.2985, allocations: 60.56 kB / 1.227 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005226/0.2991, allocations: 445.2 kB / 1.227 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.2991, allocations: 8 kB / 1.227 GB, free: 6.562 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.757e-05/0.2991, allocations: 12 kB / 1.228 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002735/0.2994, allocations: 145.3 kB / 1.228 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.2994, allocations: 0 / 1.228 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.2994, allocations: 8 kB / 1.228 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.2994, allocations: 7.938 kB / 1.228 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001654/0.2996, allocations: 67.95 kB / 1.228 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008028/0.3004, allocations: 0.5667 MB / 1.228 GB, free: 5.699 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.3007, allocations: 130.7 kB / 1.228 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.3008, allocations: 44.83 kB / 1.228 GB, free: 5.516 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.3009, allocations: 4 kB / 1.228 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002107/0.3011, allocations: 107.5 kB / 1.229 GB, free: 5.395 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=13): time 1.623e-06/0.3011, allocations: 0 / 1.229 GB, free: 5.395 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13): time 0.0004806/0.3016, allocations: 250.1 kB / 1.229 GB, free: 5.145 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.3016, allocations: 81.11 kB / 1.229 GB, free: 5.047 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006991/0.3024, allocations: 0.6837 MB / 1.23 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.511e-05/0.3024, allocations: 37.64 kB / 1.23 GB, free: 4.312 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000182/0.3026, allocations: 264.4 kB / 1.23 GB, free: 4.051 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.584e-05/0.3026, allocations: 35.73 kB / 1.23 GB, free: 4.016 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.301e-05/0.3027, allocations: 61.64 kB / 1.23 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3028, allocations: 374.8 kB / 1.23 GB, free: 3.574 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.303, allocations: 71.97 kB / 1.23 GB, free: 3.504 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001748/0.3032, allocations: 121 kB / 1.23 GB, free: 3.367 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002319/0.3034, allocations: 143.9 kB / 1.231 GB, free: 3.219 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3034, allocations: 0 / 1.231 GB, free: 3.219 MB / 0.9825 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000419/0.3038, allocations: 270.5 kB / 1.231 GB, free: 2.949 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.3039, allocations: 4 kB / 1.231 GB, free: 2.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.3039, allocations: 0 / 1.231 GB, free: 2.945 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.3039, allocations: 4 kB / 1.231 GB, free: 2.941 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.304, allocations: 31.92 kB / 1.231 GB, free: 2.91 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.3041, allocations: 7.984 kB / 1.231 GB, free: 2.902 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001559/0.3042, allocations: 24 kB / 1.231 GB, free: 2.879 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.3043, allocations: 11.98 kB / 1.231 GB, free: 2.867 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.0001902/0.3044, allocations: 212 kB / 1.231 GB, free: 2.652 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.4e-05/0.3045, allocations: 63.59 kB / 1.231 GB, free: 2.59 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.313e-05/0.3046, allocations: 60.98 kB / 1.231 GB, free: 2.523 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.3046, allocations: 4 kB / 1.231 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3046, allocations: 0 / 1.231 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3046, allocations: 0 / 1.231 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002922/0.3049, allocations: 373.4 kB / 1.232 GB, free: 2.105 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3049, allocations: 0 / 1.232 GB, free: 2.105 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.784e-05/0.305, allocations: 16 kB / 1.232 GB, free: 2.09 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.305, allocations: 0 / 1.232 GB, free: 2.09 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.254e-05/0.305, allocations: 3.984 kB / 1.232 GB, free: 2.086 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.305, allocations: 4 kB / 1.232 GB, free: 2.082 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.305, allocations: 0 / 1.232 GB, free: 2.082 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003379/0.3054, allocations: 221.8 kB / 1.232 GB, free: 1.848 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.3055, allocations: 128.8 kB / 1.232 GB, free: 1.703 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.524e-05/0.3056, allocations: 19.86 kB / 1.232 GB, free: 1.684 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.3057, allocations: 4 kB / 1.232 GB, free: 1.68 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.086e-05/0.3057, allocations: 23.97 kB / 1.232 GB, free: 1.656 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.3058, allocations: 8 kB / 1.232 GB, free: 1.648 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004948/0.3063, allocations: 467 kB / 1.232 GB, free: 1.199 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.01e-07/0.3063, allocations: 0 / 1.232 GB, free: 1.199 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003101/0.3066, allocations: 71.88 kB / 1.233 GB, free: 1.129 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.001418/0.308, allocations: 1.081 MB / 1.234 GB, free: 180 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003299/0.3084, allocations: 151.9 kB / 1.234 GB, free: 28 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3084, allocations: 4 kB / 1.234 GB, free: 24 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001407/0.3085, allocations: 60.09 kB / 1.234 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004656/0.309, allocations: 96.19 kB / 1.234 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004307/0.3133, allocations: 3.899 MB / 1.238 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003993/0.3137, allocations: 0.8689 MB / 1.239 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001414/0.3139, allocations: 50.94 kB / 1.239 GB, free: 10.93 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001996/0.3141, allocations: 163.4 kB / 1.239 GB, free: 10.77 MB / 0.9981 GB Notification: Performance of SimCode: time 4.91e-07/0.3141, allocations: 7.938 kB / 1.239 GB, free: 10.77 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02461/0.3387, allocations: 9.807 MB / 1.248 GB, free: 1.133 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.896/8.235, allocations: 5.562 kB / 1.248 GB, free: 1.129 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches