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.00178/0.00178, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002426/0.002426, allocations: 209.9 kB / 22.25 MB, free: 5.129 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.43/1.43, allocations: 230.6 MB / 256 MB, free: 7.957 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.253/3.253, allocations: 0.505 GB / 0.8101 GB, free: 22.05 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.002715/0.002715, allocations: 72.8 kB / 1.177 GB, free: 17.03 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3891/0.3918, allocations: 180.2 MB / 1.353 GB, free: 8.48 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004155/0.396, allocations: 2.283 MB / 1.355 GB, free: 6.184 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00279/0.3987, allocations: 1.434 MB / 1.356 GB, free: 4.742 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002914/0.399, allocations: 7.938 kB / 1.356 GB, free: 4.734 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0005208/0.3996, allocations: 175.3 kB / 1.357 GB, free: 4.562 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.000646/0.4002, allocations: 223 kB / 1.357 GB, free: 4.344 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004932/0.4007, allocations: 179.6 kB / 1.357 GB, free: 4.168 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0006313/0.4013, allocations: 438.8 kB / 1.357 GB, free: 3.738 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002159/0.4015, allocations: 65.78 kB / 1.358 GB, free: 3.676 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003714/0.4019, allocations: 191.3 kB / 1.358 GB, free: 3.488 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002976/0.4022, allocations: 191.2 kB / 1.358 GB, free: 3.301 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.936e-05/0.4023, allocations: 32 kB / 1.358 GB, free: 3.27 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001955/0.4025, allocations: 75.97 kB / 1.358 GB, free: 3.195 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.4026, allocations: 123.5 kB / 1.358 GB, free: 3.074 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001925/0.4028, allocations: 162.9 kB / 1.358 GB, free: 2.914 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0006387/0.4034, allocations: 0.4902 MB / 1.359 GB, free: 2.422 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.4034, allocations: 3.938 kB / 1.359 GB, free: 2.418 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.252e-06/0.4034, allocations: 0 / 1.359 GB, free: 2.418 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.656e-05/0.4035, allocations: 0 / 1.359 GB, free: 2.418 MB / 1.045 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.001361/0.4048, allocations: 0.6673 MB / 1.359 GB, free: 1.719 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.4049, allocations: 11.97 kB / 1.359 GB, free: 1.707 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.93e-05/0.4049, allocations: 46.73 kB / 1.359 GB, free: 1.652 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.405, allocations: 48.66 kB / 1.36 GB, free: 1.605 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000637/0.4057, allocations: 360.7 kB / 1.36 GB, free: 1.23 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.4057, allocations: 20.06 kB / 1.36 GB, free: 1.211 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.693e-05/0.4057, allocations: 12 kB / 1.36 GB, free: 1.199 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000346/0.4061, allocations: 184.2 kB / 1.36 GB, free: 1.004 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.4061, allocations: 3.938 kB / 1.36 GB, free: 1 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.4061, allocations: 4 kB / 1.36 GB, free: 0.9961 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.4061, allocations: 4 kB / 1.36 GB, free: 0.9922 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002042/0.4063, allocations: 87.95 kB / 1.36 GB, free: 0.9062 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.4075, allocations: 0.7534 MB / 1.361 GB, free: 104 kB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003532/0.4079, allocations: 133.4 kB / 1.361 GB, free: 15.95 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.408, allocations: 49.7 kB / 1.361 GB, free: 15.9 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.408, allocations: 3.984 kB / 1.361 GB, free: 15.89 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002573/0.4083, allocations: 133 kB / 1.361 GB, free: 15.75 MB / 1.061 GB Notification: Performance of pre-optimization done (n=12): time 1.403e-06/0.4083, allocations: 0 / 1.361 GB, free: 15.75 MB / 1.061 GB Notification: Performance of matching and sorting (n=12): time 0.0005508/0.4088, allocations: 225.6 kB / 1.361 GB, free: 15.52 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.782e-05/0.4089, allocations: 102.8 kB / 1.362 GB, free: 15.39 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007099/0.4096, allocations: 0.5955 MB / 1.362 GB, free: 14.79 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.704e-05/0.4097, allocations: 33.7 kB / 1.362 GB, free: 14.75 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.4098, allocations: 212.4 kB / 1.362 GB, free: 14.54 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.807e-05/0.4099, allocations: 31.8 kB / 1.362 GB, free: 14.5 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/0.41, allocations: 77.64 kB / 1.362 GB, free: 14.42 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001738/0.4102, allocations: 362.7 kB / 1.363 GB, free: 14.06 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.4104, allocations: 104.1 kB / 1.363 GB, free: 13.96 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002565/0.4106, allocations: 177.8 kB / 1.363 GB, free: 13.76 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003148/0.4109, allocations: 182.7 kB / 1.363 GB, free: 13.57 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.4109, allocations: 0 / 1.363 GB, free: 13.57 MB / 1.061 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006061/0.4115, allocations: 350.8 kB / 1.364 GB, free: 13.22 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.4116, allocations: 8.094 kB / 1.364 GB, free: 13.21 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.4116, allocations: 4 kB / 1.364 GB, free: 13.21 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.4116, allocations: 4 kB / 1.364 GB, free: 13.21 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002212/0.4118, allocations: 47.91 kB / 1.364 GB, free: 13.16 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.4118, allocations: 4 kB / 1.364 GB, free: 13.16 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002172/0.412, allocations: 35.86 kB / 1.364 GB, free: 13.12 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.59e-05/0.4121, allocations: 12 kB / 1.364 GB, free: 13.11 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.0002475/0.4123, allocations: 207.4 kB / 1.364 GB, free: 12.9 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.342e-05/0.4124, allocations: 43.72 kB / 1.364 GB, free: 12.86 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004173/0.4128, allocations: 193 kB / 1.364 GB, free: 12.66 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.4128, allocations: 0 / 1.364 GB, free: 12.66 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.4128, allocations: 0 / 1.364 GB, free: 12.66 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.4128, allocations: 4 kB / 1.364 GB, free: 12.65 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003542/0.4132, allocations: 312.4 kB / 1.364 GB, free: 12.3 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.4132, allocations: 3.938 kB / 1.364 GB, free: 12.3 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.074e-05/0.4132, allocations: 15.92 kB / 1.364 GB, free: 12.29 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.4132, allocations: 4 kB / 1.364 GB, free: 12.28 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.4132, allocations: 4 kB / 1.364 GB, free: 12.28 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.4132, allocations: 3.938 kB / 1.364 GB, free: 12.27 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.4132, allocations: 0 / 1.364 GB, free: 12.27 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003843/0.4136, allocations: 213.6 kB / 1.365 GB, free: 12.04 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.926e-05/0.4137, allocations: 43.88 kB / 1.365 GB, free: 12 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.974e-05/0.4138, allocations: 12 kB / 1.365 GB, free: 11.99 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.4139, allocations: 15.98 kB / 1.365 GB, free: 11.97 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.035e-05/0.414, allocations: 27.89 kB / 1.365 GB, free: 11.95 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.414, allocations: 8 kB / 1.365 GB, free: 11.94 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004614/0.4145, allocations: 371.1 kB / 1.365 GB, free: 11.58 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4145, allocations: 0 / 1.365 GB, free: 11.58 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003432/0.4148, allocations: 67.83 kB / 1.365 GB, free: 11.51 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 (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.002203/0.417, allocations: 1.081 MB / 1.366 GB, free: 10.57 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004396/0.4175, allocations: 191.7 kB / 1.366 GB, free: 10.38 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4175, allocations: 192 / 1.366 GB, free: 10.38 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001427/0.4176, allocations: 64.03 kB / 1.366 GB, free: 10.32 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005088/0.4181, allocations: 85.25 kB / 1.367 GB, free: 10.24 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005072/0.4232, allocations: 3.599 MB / 1.37 GB, free: 6.512 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004691/0.4237, allocations: 0.8107 MB / 1.371 GB, free: 5.676 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001659/0.4238, allocations: 58.94 kB / 1.371 GB, free: 5.621 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000215/0.424, allocations: 131.4 kB / 1.371 GB, free: 5.492 MB / 1.061 GB Notification: Performance of SimCode: time 5.41e-07/0.424, allocations: 0 / 1.371 GB, free: 5.492 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03914/0.4632, allocations: 8.683 MB / 1.379 GB, free: 12.9 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.97, allocations: 13.28 kB / 1.38 GB, free: 12.89 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.91261252295226]