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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002008/0.002008, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003002/0.003002, allocations: 210.5 kB / 22.24 MB, free: 4.859 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.634/1.634, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 3.04/3.04, allocations: 476 MB / 0.7699 GB, free: 4.77 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_11_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_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002232/0.002232, allocations: 64.72 kB / 1.117 GB, free: 8.777 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4804/0.4826, allocations: 169.9 MB / 1.283 GB, free: 3.594 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.005464/0.488, allocations: 2.419 MB / 1.285 GB, free: 1.164 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0037/0.4917, allocations: 1.618 MB / 1.287 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003728/0.4921, allocations: 4 kB / 1.287 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.00144/0.4936, allocations: 322.7 kB / 1.287 GB, free: 15.22 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0009538/0.4945, allocations: 274.8 kB / 1.288 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007527/0.4953, allocations: 201.3 kB / 1.288 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000733/0.496, allocations: 414.6 kB / 1.288 GB, free: 14.35 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002318/0.4962, allocations: 44.91 kB / 1.288 GB, free: 14.3 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004057/0.4966, allocations: 171.3 kB / 1.288 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004457/0.4971, allocations: 171.2 kB / 1.289 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 8.432e-05/0.4972, allocations: 20 kB / 1.289 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003018/0.4975, allocations: 87.88 kB / 1.289 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002162/0.4977, allocations: 131.5 kB / 1.289 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002221/0.4979, allocations: 146.8 kB / 1.289 GB, free: 13.59 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001139/0.499, allocations: 0.5132 MB / 1.289 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 1.345e-05/0.4991, allocations: 7.984 kB / 1.289 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.685e-06/0.4991, allocations: 4 kB / 1.289 GB, free: 13.06 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 2.88e-05/0.4991, allocations: 0 / 1.289 GB, free: 13.06 MB / 0.9981 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.00213/0.5012, allocations: 0.7775 MB / 1.29 GB, free: 12.25 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 6.497e-05/0.5013, allocations: 12.03 kB / 1.29 GB, free: 12.23 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002362/0.5015, allocations: 60.52 kB / 1.29 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009475/0.5025, allocations: 395.3 kB / 1.291 GB, free: 11.76 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.118e-05/0.5025, allocations: 12.12 kB / 1.291 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.222e-05/0.5025, allocations: 12 kB / 1.291 GB, free: 11.74 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003918/0.5029, allocations: 147.3 kB / 1.291 GB, free: 11.58 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.5029, allocations: 0 / 1.291 GB, free: 11.58 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.78e-05/0.503, allocations: 8 kB / 1.291 GB, free: 11.57 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.503, allocations: 0 / 1.291 GB, free: 11.57 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002982/0.5033, allocations: 75.89 kB / 1.291 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.5045, allocations: 0.4885 MB / 1.291 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003801/0.5049, allocations: 122.7 kB / 1.291 GB, free: 10.85 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001387/0.505, allocations: 56.83 kB / 1.291 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.505, allocations: 0 / 1.291 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003344/0.5054, allocations: 145 kB / 1.292 GB, free: 10.63 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=13): time 1.653e-06/0.5054, allocations: 0 / 1.292 GB, free: 10.63 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13): time 0.0006657/0.5061, allocations: 240 kB / 1.292 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.055e-05/0.5061, allocations: 67.33 kB / 1.292 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.5071, allocations: 0.6995 MB / 1.293 GB, free: 9.609 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.5072, allocations: 33.7 kB / 1.293 GB, free: 9.57 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003042/0.5075, allocations: 268.5 kB / 1.293 GB, free: 9.305 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 6.628e-05/0.5076, allocations: 43.67 kB / 1.293 GB, free: 9.262 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.5077, allocations: 65.56 kB / 1.293 GB, free: 9.191 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0002838/0.508, allocations: 366.8 kB / 1.293 GB, free: 8.824 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000188/0.5081, allocations: 79.95 kB / 1.293 GB, free: 8.746 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002678/0.5084, allocations: 171.6 kB / 1.294 GB, free: 8.551 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003262/0.5087, allocations: 137.7 kB / 1.294 GB, free: 8.41 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.5087, allocations: 0 / 1.294 GB, free: 8.41 MB / 0.9981 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005448/0.5093, allocations: 289.1 kB / 1.294 GB, free: 8.121 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.5093, allocations: 4 kB / 1.294 GB, free: 8.117 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.5093, allocations: 3.938 kB / 1.294 GB, free: 8.113 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.985e-05/0.5094, allocations: 4 kB / 1.294 GB, free: 8.109 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001834/0.5095, allocations: 31.92 kB / 1.294 GB, free: 8.078 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/0.5096, allocations: 4 kB / 1.294 GB, free: 8.074 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001646/0.5097, allocations: 23.88 kB / 1.294 GB, free: 8.051 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.75e-05/0.5098, allocations: 11.98 kB / 1.294 GB, free: 8.039 MB / 0.9981 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.0002896/0.51, allocations: 225.9 kB / 1.294 GB, free: 7.812 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.906e-05/0.5101, allocations: 59.61 kB / 1.294 GB, free: 7.754 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000524/0.5107, allocations: 221 kB / 1.295 GB, free: 7.531 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.5107, allocations: 4 kB / 1.295 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.5107, allocations: 0 / 1.295 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.5107, allocations: 3.938 kB / 1.295 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004241/0.5111, allocations: 289.1 kB / 1.295 GB, free: 7.211 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.5111, allocations: 0 / 1.295 GB, free: 7.211 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.307e-05/0.5112, allocations: 19.98 kB / 1.295 GB, free: 7.191 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.5112, allocations: 4 kB / 1.295 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.5112, allocations: 0 / 1.295 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.025e-06/0.5112, allocations: 7.938 kB / 1.295 GB, free: 7.18 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.5112, allocations: 0 / 1.295 GB, free: 7.18 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004477/0.5116, allocations: 240.6 kB / 1.295 GB, free: 6.926 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.5117, allocations: 51.56 kB / 1.295 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.829e-05/0.5118, allocations: 8 kB / 1.295 GB, free: 6.867 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.5119, allocations: 19.86 kB / 1.295 GB, free: 6.848 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.892e-05/0.512, allocations: 19.97 kB / 1.295 GB, free: 6.828 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.115e-05/0.512, allocations: 15.92 kB / 1.295 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000691/0.5127, allocations: 483 kB / 1.296 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5127, allocations: 0 / 1.296 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003769/0.5131, allocations: 71.88 kB / 1.296 GB, free: 6.277 MB / 0.9981 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 (15): * Single equations (assignments): 11 * 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.002017/0.5151, allocations: 455.3 kB / 1.296 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004868/0.5156, allocations: 155.8 kB / 1.296 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5156, allocations: 128 / 1.296 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.5158, allocations: 63.91 kB / 1.296 GB, free: 5.793 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006179/0.5164, allocations: 100 kB / 1.296 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001787/0.5182, allocations: 0.8757 MB / 1.297 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003425/0.5185, allocations: 270.7 kB / 1.298 GB, free: 4.508 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001891/0.5187, allocations: 50.94 kB / 1.298 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.982e-05/0.5188, allocations: 31.38 kB / 1.298 GB, free: 4.426 MB / 0.9981 GB Notification: Performance of SimCode: time 4.41e-07/0.5188, allocations: 0 / 1.298 GB, free: 4.426 MB / 0.9981 GB Notification: Performance of Templates: time 0.01454/0.5333, allocations: 5.046 MB / 1.303 GB, free: 15.45 MB / 1.014 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile [Timeout 300] (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 & ./Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.38266947120428]