Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.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.001585/0.001585, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001726/0.001726, allocations: 211.1 kB / 22.24 MB, free: 5.262 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.413/1.413, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.206/3.206, allocations: 0.5107 GB / 0.8158 GB, free: 17.82 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_latest_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_latest_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) [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.002681/0.002681, allocations: 66.7 kB / 1.186 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3648/0.3674, allocations: 181.9 MB / 1.363 GB, free: 14.09 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003983/0.3714, allocations: 2.173 MB / 1.366 GB, free: 11.9 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0026/0.374, allocations: 1.349 MB / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002323/0.3743, allocations: 11.88 kB / 1.367 GB, free: 10.54 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0005036/0.3748, allocations: 171.3 kB / 1.367 GB, free: 10.37 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0005941/0.3753, allocations: 227 kB / 1.367 GB, free: 10.14 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004516/0.3758, allocations: 187.5 kB / 1.367 GB, free: 9.961 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0005854/0.3764, allocations: 438.8 kB / 1.368 GB, free: 9.531 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002114/0.3766, allocations: 57.78 kB / 1.368 GB, free: 9.469 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002853/0.3769, allocations: 179.3 kB / 1.368 GB, free: 9.293 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003044/0.3772, allocations: 187.2 kB / 1.368 GB, free: 9.109 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 7.022e-05/0.3773, allocations: 24 kB / 1.368 GB, free: 9.086 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001961/0.3775, allocations: 83.97 kB / 1.368 GB, free: 9.004 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.3776, allocations: 119.5 kB / 1.368 GB, free: 8.887 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001531/0.3777, allocations: 127.1 kB / 1.369 GB, free: 8.762 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0006246/0.3784, allocations: 0.4979 MB / 1.369 GB, free: 8.262 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3784, allocations: 4 kB / 1.369 GB, free: 8.258 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3784, allocations: 0 / 1.369 GB, free: 8.258 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.141e-05/0.3784, allocations: 0 / 1.369 GB, free: 8.258 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001289/0.3797, allocations: 0.6556 MB / 1.37 GB, free: 7.57 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.3797, allocations: 16.03 kB / 1.37 GB, free: 7.555 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.767e-05/0.3798, allocations: 50.67 kB / 1.37 GB, free: 7.496 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.3799, allocations: 44.66 kB / 1.37 GB, free: 7.453 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006393/0.3805, allocations: 360.8 kB / 1.37 GB, free: 7.082 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.3806, allocations: 12.12 kB / 1.37 GB, free: 7.07 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.045e-05/0.3806, allocations: 16 kB / 1.37 GB, free: 7.055 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003759/0.381, allocations: 210.3 kB / 1.37 GB, free: 6.828 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.381, allocations: 0 / 1.37 GB, free: 6.828 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.249e-05/0.381, allocations: 8 kB / 1.37 GB, free: 6.82 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.381, allocations: 4 kB / 1.37 GB, free: 6.816 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002361/0.3812, allocations: 99.88 kB / 1.37 GB, free: 6.719 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/0.3824, allocations: 0.7222 MB / 1.371 GB, free: 5.945 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003326/0.3828, allocations: 141.4 kB / 1.371 GB, free: 5.789 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001191/0.3829, allocations: 57.69 kB / 1.371 GB, free: 5.727 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.3829, allocations: 4 kB / 1.371 GB, free: 5.723 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002606/0.3832, allocations: 133 kB / 1.371 GB, free: 5.574 MB / 1.061 GB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.3832, allocations: 0 / 1.371 GB, free: 5.574 MB / 1.061 GB Notification: Performance of matching and sorting (n=12): time 0.0005785/0.3837, allocations: 229.3 kB / 1.372 GB, free: 5.344 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.233e-05/0.3838, allocations: 102.8 kB / 1.372 GB, free: 5.219 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007747/0.3846, allocations: 0.6072 MB / 1.372 GB, free: 4.602 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.381e-05/0.3846, allocations: 33.81 kB / 1.372 GB, free: 4.562 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.3848, allocations: 212.3 kB / 1.373 GB, free: 4.352 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.264e-05/0.3849, allocations: 35.73 kB / 1.373 GB, free: 4.316 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.385, allocations: 81.61 kB / 1.373 GB, free: 4.23 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001659/0.3852, allocations: 358.7 kB / 1.373 GB, free: 3.871 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002089/0.3854, allocations: 108 kB / 1.373 GB, free: 3.766 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002888/0.3857, allocations: 242.9 kB / 1.373 GB, free: 3.488 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003392/0.386, allocations: 194.4 kB / 1.374 GB, free: 3.285 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.386, allocations: 4 kB / 1.374 GB, free: 3.281 MB / 1.061 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00061/0.3866, allocations: 363.9 kB / 1.374 GB, free: 2.922 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.3866, allocations: 4 kB / 1.374 GB, free: 2.918 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.3866, allocations: 4 kB / 1.374 GB, free: 2.914 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.3866, allocations: 0 / 1.374 GB, free: 2.914 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001985/0.3868, allocations: 47.91 kB / 1.374 GB, free: 2.867 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/0.3869, allocations: 4 kB / 1.374 GB, free: 2.863 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002196/0.3871, allocations: 47.91 kB / 1.374 GB, free: 2.816 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.059e-05/0.3871, allocations: 12 kB / 1.374 GB, free: 2.805 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.TTanBot.tab.nextTimeEvent,$whenCondition2,$PRE.TTanTop.tab.nextTimeEvent,$whenCondition1,TTanTop.tab.nextTimeEventScaled,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEvent,tanSta.hysCha.y,$PRE.tanSta.hysCha.y,TTanBot.tab.nextTimeEventScaled,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEvent,tanSta.hysEmp.y,$PRE.tanSta.hysEmp.y,tanSta.gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0002065/0.3873, allocations: 195.4 kB / 1.374 GB, free: 2.605 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.274e-05/0.3874, allocations: 43.7 kB / 1.374 GB, free: 2.562 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004302/0.3878, allocations: 209.1 kB / 1.375 GB, free: 2.352 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.3878, allocations: 4 kB / 1.375 GB, free: 2.348 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3878, allocations: 0 / 1.375 GB, free: 2.348 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.3878, allocations: 3.984 kB / 1.375 GB, free: 2.344 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002982/0.3881, allocations: 284.5 kB / 1.375 GB, free: 2.023 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3881, allocations: 0 / 1.375 GB, free: 2.023 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.92e-05/0.3882, allocations: 11.98 kB / 1.375 GB, free: 2.012 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.3882, allocations: 0.5 kB / 1.375 GB, free: 2.012 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.3882, allocations: 8 kB / 1.375 GB, free: 2.004 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3882, allocations: 0 / 1.375 GB, free: 2.004 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.3882, allocations: 7.938 kB / 1.375 GB, free: 1.996 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003834/0.3886, allocations: 236 kB / 1.375 GB, free: 1.746 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.949e-05/0.3887, allocations: 51.66 kB / 1.375 GB, free: 1.695 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.147e-05/0.3887, allocations: 7.984 kB / 1.375 GB, free: 1.688 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001363/0.3889, allocations: 19.98 kB / 1.375 GB, free: 1.668 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.125e-05/0.3889, allocations: 23.95 kB / 1.375 GB, free: 1.645 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.389, allocations: 8 kB / 1.375 GB, free: 1.637 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000431/0.3894, allocations: 371.1 kB / 1.375 GB, free: 1.273 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3894, allocations: 3.938 kB / 1.375 GB, free: 1.27 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003226/0.3897, allocations: 75.83 kB / 1.376 GB, free: 1.195 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,$whenCondition1,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled) * Number of discrete states: 6 (tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * 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.002215/0.3919, allocations: 1.103 MB / 1.377 GB, free: 252 kB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004536/0.3924, allocations: 210.7 kB / 1.377 GB, free: 44 kB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3924, allocations: 0 / 1.377 GB, free: 44 kB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001756/0.3926, allocations: 63.97 kB / 1.377 GB, free: 15.98 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005342/0.3931, allocations: 99.81 kB / 1.377 GB, free: 15.89 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004752/0.3979, allocations: 3.626 MB / 1.381 GB, free: 12.15 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002182/0.3981, allocations: 220.4 kB / 1.381 GB, free: 11.91 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001677/0.3982, allocations: 55.19 kB / 1.381 GB, free: 11.86 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002105/0.3984, allocations: 135.4 kB / 1.381 GB, free: 11.73 MB / 1.076 GB Notification: Performance of SimCode: time 8.32e-07/0.3984, allocations: 0 / 1.381 GB, free: 11.73 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03694/0.4354, allocations: 9.603 MB / 1.39 GB, free: 2.234 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.66, allocations: 1.406 kB / 1.39 GB, free: 2.234 MB / 1.076 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat --tempDir=temp_Buildings_latest_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.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: 18.389204539358616]