Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001772/0.001772, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002199/0.002199, allocations: 188 kB / 22.22 MB, free: 5.164 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.554/1.554, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.421/3.421, allocations: 496 MB / 0.7835 GB, free: 33.51 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.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: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow")
translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 60.8 kB / 1.138 GB, free: 33.84 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4887/0.4907, allocations: 173.6 MB / 1.307 GB, free: 1.793 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004877/0.4956, allocations: 2.498 MB / 1.31 GB, free: 15.28 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.00279/0.4984, allocations: 1.603 MB / 1.311 GB, free: 13.67 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001596/0.4986, allocations: 7.938 kB / 1.311 GB, free: 13.66 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.001023/0.4996, allocations: 325.1 kB / 1.312 GB, free: 13.35 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.0005117/0.5001, allocations: 231 kB / 1.312 GB, free: 13.12 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0007132/0.5008, allocations: 265.9 kB / 1.312 GB, free: 12.86 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0005088/0.5013, allocations: 390.7 kB / 1.312 GB, free: 12.48 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001565/0.5015, allocations: 40.91 kB / 1.313 GB, free: 12.44 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002596/0.5017, allocations: 175.2 kB / 1.313 GB, free: 12.27 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002336/0.502, allocations: 175.2 kB / 1.313 GB, free: 12.09 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 4.767e-05/0.502, allocations: 20 kB / 1.313 GB, free: 12.07 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002184/0.5022, allocations: 91.88 kB / 1.313 GB, free: 11.98 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 0.0001604/0.5024, allocations: 127.5 kB / 1.313 GB, free: 11.86 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 0.0002048/0.5026, allocations: 198.5 kB / 1.313 GB, free: 11.66 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0006831/0.5033, allocations: 497.7 kB / 1.314 GB, free: 11.18 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.5033, allocations: 0 / 1.314 GB, free: 11.18 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.482e-06/0.5033, allocations: 0 / 1.314 GB, free: 11.18 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 8.536e-06/0.5033, allocations: 0 / 1.314 GB, free: 11.18 MB / 1.014 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.001474/0.5048, allocations: 0.7814 MB / 1.314 GB, free: 10.36 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.5048, allocations: 8.922 kB / 1.315 GB, free: 10.35 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.5049, allocations: 60.56 kB / 1.315 GB, free: 10.29 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006181/0.5055, allocations: 375.5 kB / 1.315 GB, free: 9.895 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.5056, allocations: 15.94 kB / 1.315 GB, free: 9.879 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.858e-05/0.5056, allocations: 11.94 kB / 1.315 GB, free: 9.867 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003547/0.5059, allocations: 144.3 kB / 1.315 GB, free: 9.715 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.506, allocations: 0 / 1.315 GB, free: 9.715 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.506, allocations: 0 / 1.315 GB, free: 9.715 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.506, allocations: 7.938 kB / 1.315 GB, free: 9.707 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001862/0.5062, allocations: 73.27 kB / 1.315 GB, free: 9.637 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009881/0.5072, allocations: 0.5423 MB / 1.316 GB, free: 9.051 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003299/0.5075, allocations: 126.7 kB / 1.316 GB, free: 8.918 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.5076, allocations: 40.84 kB / 1.316 GB, free: 8.875 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 3.994e-05/0.5076, allocations: 4 kB / 1.316 GB, free: 8.871 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002651/0.5079, allocations: 114.4 kB / 1.316 GB, free: 8.75 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=13): time 1.523e-06/0.5079, allocations: 0 / 1.316 GB, free: 8.75 MB / 1.014 GB
Notification: Performance of matching and sorting (n=13): time 0.0005518/0.5085, allocations: 241.4 kB / 1.316 GB, free: 8.508 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.755e-05/0.5085, allocations: 77.11 kB / 1.316 GB, free: 8.414 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008501/0.5094, allocations: 0.6838 MB / 1.317 GB, free: 7.723 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 3.368e-05/0.5094, allocations: 33.7 kB / 1.317 GB, free: 7.684 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0002655/0.5097, allocations: 272.3 kB / 1.317 GB, free: 7.414 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 3.952e-05/0.5097, allocations: 27.8 kB / 1.317 GB, free: 7.387 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 9.929e-05/0.5098, allocations: 61.66 kB / 1.317 GB, free: 7.32 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0002461/0.5101, allocations: 374.8 kB / 1.318 GB, free: 6.945 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.5102, allocations: 67.97 kB / 1.318 GB, free: 6.879 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000204/0.5104, allocations: 126.8 kB / 1.318 GB, free: 6.738 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002559/0.5107, allocations: 133 kB / 1.318 GB, free: 6.602 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.5107, allocations: 3.938 kB / 1.318 GB, free: 6.598 MB / 1.014 GB
Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004713/0.5111, allocations: 269.1 kB / 1.318 GB, free: 6.328 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.5112, allocations: 4 kB / 1.318 GB, free: 6.324 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.5112, allocations: 4 kB / 1.318 GB, free: 6.32 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.5112, allocations: 0 / 1.318 GB, free: 6.32 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.5114, allocations: 43.97 kB / 1.318 GB, free: 6.277 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.5114, allocations: 0 / 1.318 GB, free: 6.277 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001802/0.5116, allocations: 27.88 kB / 1.318 GB, free: 6.25 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.5116, allocations: 11.94 kB / 1.318 GB, free: 6.238 MB / 1.014 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.0002497/0.5118, allocations: 211.5 kB / 1.319 GB, free: 6.023 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 7.141e-05/0.5119, allocations: 59.56 kB / 1.319 GB, free: 5.965 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000449/0.5124, allocations: 198.6 kB / 1.319 GB, free: 5.762 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.5124, allocations: 7.984 kB / 1.319 GB, free: 5.754 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.5124, allocations: 4 kB / 1.319 GB, free: 5.75 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.5124, allocations: 0 / 1.319 GB, free: 5.75 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004343/0.5128, allocations: 352.3 kB / 1.319 GB, free: 5.363 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.5128, allocations: 7.875 kB / 1.319 GB, free: 5.355 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.477e-05/0.5128, allocations: 4 kB / 1.319 GB, free: 5.352 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.5129, allocations: 4 kB / 1.319 GB, free: 5.348 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.5129, allocations: 0 / 1.319 GB, free: 5.348 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.98e-06/0.5129, allocations: 3.984 kB / 1.319 GB, free: 5.344 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.5129, allocations: 0 / 1.319 GB, free: 5.344 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003887/0.5133, allocations: 228.1 kB / 1.319 GB, free: 5.105 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 9.673e-05/0.5134, allocations: 55.55 kB / 1.319 GB, free: 5.051 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.407e-05/0.5134, allocations: 8 kB / 1.319 GB, free: 5.043 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.5135, allocations: 11.98 kB / 1.319 GB, free: 5.031 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.116e-05/0.5136, allocations: 19.91 kB / 1.319 GB, free: 5.012 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/0.5136, allocations: 8 kB / 1.319 GB, free: 5.004 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 0.0005643/0.5142, allocations: 467 kB / 1.32 GB, free: 4.555 MB / 1.014 GB
Notification: Performance of sort global known variables: time 1.1e-07/0.5142, allocations: 4 kB / 1.32 GB, free: 4.551 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0003286/0.5145, allocations: 67.92 kB / 1.32 GB, free: 4.484 MB / 1.014 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 (assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled)
 * 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.001657/0.5162, allocations: 434.2 kB / 1.32 GB, free: 4.211 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0003887/0.5166, allocations: 147.9 kB / 1.321 GB, free: 4.066 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5166, allocations: 0 / 1.321 GB, free: 4.066 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.5167, allocations: 60.05 kB / 1.321 GB, free: 4.008 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005095/0.5172, allocations: 99.83 kB / 1.321 GB, free: 3.918 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.5186, allocations: 0.8366 MB / 1.321 GB, free: 3.051 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005626/0.5192, allocations: 0.865 MB / 1.322 GB, free: 2.16 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 0.0001628/0.5194, allocations: 42.95 kB / 1.322 GB, free: 2.117 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 8.347e-05/0.5194, allocations: 31.42 kB / 1.322 GB, free: 2.086 MB / 1.014 GB
Notification: Performance of SimCode: time 3.2e-07/0.5194, allocations: 0 / 1.322 GB, free: 2.086 MB / 1.014 GB
Notification: Performance of Templates: time 0.01169/0.5311, allocations: 4.445 MB / 1.327 GB, free: 13.68 MB / 1.029 GB
"
[Timeout remaining time 299]
make -j1 -f Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300]
""
[Timeout remaining time 300]
Reference file matches
[Calling sys.exit(0), Time elapsed: 10.154325941577554]