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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001716/0.001716, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002187/0.002187, allocations: 198.9 kB / 16.26 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.362/2.362, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.747/4.747, allocations: 461.9 MB / 0.7344 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001347, allocations: 62.34 kB / 0.8987 GB, free: 37.19 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3521, allocations: 157.4 MB / 1.052 GB, free: 8.648 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.007751/0.3599, allocations: 2.305 MB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004551/0.3645, allocations: 1.251 MB / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004816/0.3651, allocations: 0 / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001062/0.3662, allocations: 163.5 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.001002/0.3673, allocations: 151.5 kB / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001348/0.3686, allocations: 230.5 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0009678/0.3696, allocations: 410.9 kB / 1.057 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004217/0.3701, allocations: 97.25 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004965/0.3706, allocations: 175.3 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004763/0.3711, allocations: 187.3 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001131/0.3712, allocations: 24 kB / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003495/0.3716, allocations: 79.95 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002563/0.3719, allocations: 111.6 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0004555/0.3723, allocations: 170.9 kB / 1.058 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001084/0.3734, allocations: 486.6 kB / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3735, allocations: 0 / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.184e-06/0.3735, allocations: 0 / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.271e-05/0.3735, allocations: 0 / 1.058 GB, free: 2.832 MB / 0.8106 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.002266/0.3758, allocations: 0.7093 MB / 1.059 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001414/0.376, allocations: 8.625 kB / 1.059 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.893e-05/0.3761, allocations: 42.75 kB / 1.059 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001886/0.3763, allocations: 56.36 kB / 1.059 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.3774, allocations: 406.2 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.959e-05/0.3775, allocations: 12.12 kB / 1.059 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.728e-05/0.3775, allocations: 16 kB / 1.059 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006839/0.3782, allocations: 180.6 kB / 1.059 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.3783, allocations: 0 / 1.059 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.659e-05/0.3783, allocations: 8 kB / 1.059 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.3784, allocations: 4 kB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000431/0.3788, allocations: 91.83 kB / 1.06 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002188/0.381, allocations: 0.7816 MB / 1.06 GB, free: 376 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006396/0.3817, allocations: 141.4 kB / 1.06 GB, free: 216 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002227/0.3819, allocations: 49.64 kB / 1.06 GB, free: 160 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.589e-05/0.382, allocations: 8 kB / 1.061 GB, free: 152 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004345/0.3824, allocations: 117.1 kB / 1.061 GB, free: 16 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=12): time 2.986e-06/0.3824, allocations: 0 / 1.061 GB, free: 16 kB / 0.8106 GB Notification: Performance of matching and sorting (n=12): time 0.0009508/0.3834, allocations: 221.2 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/0.3835, allocations: 110.8 kB / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/0.3848, allocations: 0.5798 MB / 1.062 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.237e-05/0.3849, allocations: 33.7 kB / 1.062 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002756/0.3852, allocations: 200.2 kB / 1.062 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.704e-05/0.3853, allocations: 35.69 kB / 1.062 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002231/0.3856, allocations: 73.59 kB / 1.062 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002226/0.3858, allocations: 354.7 kB / 1.062 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000409/0.3862, allocations: 104 kB / 1.062 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005494/0.3868, allocations: 186.1 kB / 1.062 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006679/0.3875, allocations: 182.3 kB / 1.063 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.3875, allocations: 4 kB / 1.063 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001156/0.3887, allocations: 343.6 kB / 1.063 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.3887, allocations: 4 kB / 1.063 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.3887, allocations: 0 / 1.063 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.65e-05/0.3888, allocations: 4 kB / 1.063 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003942/0.3892, allocations: 47.91 kB / 1.063 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.994e-05/0.3892, allocations: 4.109 kB / 1.063 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004921/0.3897, allocations: 48.25 kB / 1.063 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.972e-05/0.3898, allocations: 12 kB / 1.063 GB, free: 13.41 MB / 0.8262 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.0004028/0.3902, allocations: 195.4 kB / 1.063 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.3904, allocations: 39.53 kB / 1.063 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001667/0.3906, allocations: 51.39 kB / 1.063 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.3906, allocations: 0 / 1.063 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.3906, allocations: 0 / 1.063 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.3906, allocations: 8 kB / 1.063 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006463/0.3913, allocations: 337.3 kB / 1.064 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3913, allocations: 0 / 1.064 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7e-05/0.3914, allocations: 8 kB / 1.064 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.3914, allocations: 0 / 1.064 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.747e-05/0.3914, allocations: 3.984 kB / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.883e-06/0.3915, allocations: 4 kB / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3915, allocations: 0 / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007552/0.3922, allocations: 217.3 kB / 1.064 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001911/0.3925, allocations: 112.6 kB / 1.064 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.3926, allocations: 15.92 kB / 1.064 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002651/0.3929, allocations: 15.98 kB / 1.064 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.393, allocations: 19.97 kB / 1.064 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.101e-05/0.3931, allocations: 4 kB / 1.064 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0007917/0.3939, allocations: 363.1 kB / 1.064 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of sort global known variables: time 6.81e-07/0.3939, allocations: 0 / 1.064 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000645/0.3946, allocations: 79.78 kB / 1.064 GB, free: 11.86 MB / 0.8262 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.002884/0.3975, allocations: 1.057 MB / 1.066 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008675/0.3984, allocations: 207.8 kB / 1.066 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.3984, allocations: 0 / 1.066 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002954/0.3987, allocations: 59.91 kB / 1.066 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.3997, allocations: 104.3 kB / 1.066 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009257/0.409, allocations: 3.629 MB / 1.069 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006262/0.4097, allocations: 0.8107 MB / 1.07 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003402/0.41, allocations: 59.17 kB / 1.07 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003406/0.4104, allocations: 123.4 kB / 1.07 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of SimCode: time 4.428e-06/0.4104, allocations: 0 / 1.07 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2768/0.6872, allocations: 8.053 MB / 1.078 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003765/0.6877, allocations: 263.4 kB / 1.078 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.395/4.083, allocations: 0 / 1.078 GB, free: 13.69 MB / 0.8419 GB (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 --timeout=50 --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) 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) Reference file matches