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.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.001836/0.001836, allocations: 108.8 kB / 16.45 MB, free: 6.504 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.002022/0.002022, allocations: 195.8 kB / 19.41 MB, free: 3.668 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.401/1.401, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.004/3.004, allocations: 497.2 MB / 0.7811 GB, free: 33.72 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.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: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 66.02 kB / 1.134 GB, free: 33.69 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3503/0.3522, allocations: 173.9 MB / 1.304 GB, free: 1.543 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004708/0.3569, allocations: 2.262 MB / 1.306 GB, free: 15.27 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002767/0.3596, allocations: 1.278 MB / 1.307 GB, free: 13.98 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003081/0.3599, allocations: 7.938 kB / 1.307 GB, free: 13.97 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0005488/0.3605, allocations: 171.3 kB / 1.308 GB, free: 13.8 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0004384/0.3609, allocations: 171.2 kB / 1.308 GB, free: 13.64 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006739/0.3616, allocations: 247 kB / 1.308 GB, free: 13.4 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0004895/0.3621, allocations: 414.9 kB / 1.308 GB, free: 12.99 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.3623, allocations: 73.5 kB / 1.308 GB, free: 12.92 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002583/0.3626, allocations: 183.3 kB / 1.309 GB, free: 12.74 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002486/0.3628, allocations: 191.2 kB / 1.309 GB, free: 12.55 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.718e-05/0.3629, allocations: 24 kB / 1.309 GB, free: 12.53 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001762/0.363, allocations: 79.95 kB / 1.309 GB, free: 12.45 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001439/0.3632, allocations: 111.6 kB / 1.309 GB, free: 12.34 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001793/0.3634, allocations: 162.9 kB / 1.309 GB, free: 12.18 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0006129/0.364, allocations: 489.9 kB / 1.31 GB, free: 11.7 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.364, allocations: 0 / 1.31 GB, free: 11.7 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.933e-06/0.364, allocations: 0 / 1.31 GB, free: 11.7 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.284e-06/0.364, allocations: 8 kB / 1.31 GB, free: 11.69 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001209/0.3652, allocations: 0.7231 MB / 1.31 GB, free: 10.92 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.3652, allocations: 16.61 kB / 1.31 GB, free: 10.9 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.214e-05/0.3653, allocations: 42.75 kB / 1.31 GB, free: 10.85 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.255e-05/0.3654, allocations: 44.66 kB / 1.31 GB, free: 10.81 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006105/0.366, allocations: 422.6 kB / 1.311 GB, free: 10.36 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/0.366, allocations: 16.12 kB / 1.311 GB, free: 10.34 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.71e-05/0.366, allocations: 12 kB / 1.311 GB, free: 10.33 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003403/0.3664, allocations: 177.7 kB / 1.311 GB, free: 10.14 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.3664, allocations: 0 / 1.311 GB, free: 10.14 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.194e-05/0.3664, allocations: 8 kB / 1.311 GB, free: 10.14 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.3664, allocations: 0 / 1.311 GB, free: 10.14 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002031/0.3666, allocations: 91.89 kB / 1.311 GB, free: 10.05 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.3678, allocations: 0.7894 MB / 1.312 GB, free: 9.199 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003112/0.3681, allocations: 133.4 kB / 1.312 GB, free: 9.051 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.3682, allocations: 45.7 kB / 1.312 GB, free: 9 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.3682, allocations: 4 kB / 1.312 GB, free: 8.996 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002579/0.3685, allocations: 144.9 kB / 1.312 GB, free: 8.836 MB / 1.014 GB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.3685, allocations: 0 / 1.312 GB, free: 8.836 MB / 1.014 GB Notification: Performance of matching and sorting (n=12): time 0.0005212/0.369, allocations: 221.3 kB / 1.312 GB, free: 8.613 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.678e-05/0.3691, allocations: 102.8 kB / 1.313 GB, free: 8.488 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006718/0.3698, allocations: 0.576 MB / 1.313 GB, free: 7.902 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.636e-05/0.3698, allocations: 37.7 kB / 1.313 GB, free: 7.859 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001738/0.37, allocations: 204.4 kB / 1.313 GB, free: 7.656 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.594e-05/0.37, allocations: 39.73 kB / 1.313 GB, free: 7.617 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.3701, allocations: 65.69 kB / 1.313 GB, free: 7.547 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000182/0.3703, allocations: 358.7 kB / 1.314 GB, free: 7.188 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.3705, allocations: 107.8 kB / 1.314 GB, free: 7.082 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002478/0.3708, allocations: 163.4 kB / 1.314 GB, free: 6.902 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003209/0.3711, allocations: 186.9 kB / 1.314 GB, free: 6.707 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3711, allocations: 0 / 1.314 GB, free: 6.707 MB / 1.014 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000563/0.3716, allocations: 351.3 kB / 1.315 GB, free: 6.359 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.3717, allocations: 9.562 kB / 1.315 GB, free: 6.352 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3717, allocations: 0 / 1.315 GB, free: 6.352 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.3717, allocations: 4 kB / 1.315 GB, free: 6.348 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.3719, allocations: 51.91 kB / 1.315 GB, free: 6.297 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.3719, allocations: 4 kB / 1.315 GB, free: 6.293 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000204/0.3721, allocations: 39.81 kB / 1.315 GB, free: 6.254 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.873e-05/0.3721, allocations: 12.09 kB / 1.315 GB, free: 6.242 MB / 1.014 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.0002114/0.3723, allocations: 206.9 kB / 1.315 GB, free: 6.035 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.118e-05/0.3724, allocations: 43.77 kB / 1.315 GB, free: 5.992 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.279e-05/0.3725, allocations: 39.38 kB / 1.315 GB, free: 5.949 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.3725, allocations: 0 / 1.315 GB, free: 5.949 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.3725, allocations: 48 / 1.315 GB, free: 5.949 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.3725, allocations: 7.984 kB / 1.315 GB, free: 5.941 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003267/0.3728, allocations: 333.3 kB / 1.315 GB, free: 5.566 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.3728, allocations: 4 kB / 1.315 GB, free: 5.562 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.678e-05/0.3728, allocations: 11.94 kB / 1.315 GB, free: 5.551 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.3728, allocations: 4 kB / 1.315 GB, free: 5.547 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.3729, allocations: 8.422 kB / 1.315 GB, free: 5.539 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.3729, allocations: 4 kB / 1.315 GB, free: 5.535 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3729, allocations: 0 / 1.315 GB, free: 5.535 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000358/0.3732, allocations: 209.6 kB / 1.315 GB, free: 5.309 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.3734, allocations: 128.8 kB / 1.316 GB, free: 5.164 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.771e-05/0.3734, allocations: 8 kB / 1.316 GB, free: 5.156 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.3735, allocations: 19.98 kB / 1.316 GB, free: 5.137 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.243e-05/0.3736, allocations: 23.91 kB / 1.316 GB, free: 5.113 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.72e-05/0.3736, allocations: 4 kB / 1.316 GB, free: 5.109 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0004118/0.374, allocations: 363.1 kB / 1.316 GB, free: 4.754 MB / 1.014 GB Notification: Performance of sort global known variables: time 1e-07/0.374, allocations: 3.938 kB / 1.316 GB, free: 4.75 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002982/0.3743, allocations: 63.88 kB / 1.316 GB, free: 4.688 MB / 1.014 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 (TTanTop.tab.nextTimeEventScaled,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * 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.002085/0.3764, allocations: 1.061 MB / 1.317 GB, free: 3.766 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.000452/0.3769, allocations: 191.7 kB / 1.317 GB, free: 3.578 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3769, allocations: 4 kB / 1.317 GB, free: 3.574 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.377, allocations: 51.92 kB / 1.317 GB, free: 3.523 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004948/0.3775, allocations: 103.1 kB / 1.317 GB, free: 3.438 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004489/0.382, allocations: 3.522 MB / 1.321 GB, free: 15.8 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004481/0.3824, allocations: 0.8106 MB / 1.322 GB, free: 14.96 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001572/0.3826, allocations: 59.17 kB / 1.322 GB, free: 14.9 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.3828, allocations: 127.4 kB / 1.322 GB, free: 14.77 MB / 1.029 GB Notification: Performance of SimCode: time 7.22e-07/0.3828, allocations: 0 / 1.322 GB, free: 14.77 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03302/0.4158, allocations: 8.44 MB / 1.33 GB, free: 6.465 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.906/9.322, allocations: 5.891 kB / 1.33 GB, free: 6.461 MB / 1.029 GB " [Timeout remaining time 291] (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_2/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: 15.790887149982154]