Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_11_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.005187/0.005187, allocations: 96.39 kB / 15.73 MB, free: 6 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.001458/0.001458, allocations: 189.4 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.523/2.523, allocations: 469.8 MB / 0.7425 GB, free: 7.273 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 63.91 kB / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2645, allocations: 159.1 MB / 1.22 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003536/0.268, allocations: 2.251 MB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002059/0.2701, allocations: 1.274 MB / 1.224 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001934/0.2703, allocations: 7.938 kB / 1.224 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0004368/0.2708, allocations: 167.3 kB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003906/0.2712, allocations: 171.2 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005792/0.2718, allocations: 250.6 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004888/0.2723, allocations: 406.9 kB / 1.225 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001985/0.2725, allocations: 101.2 kB / 1.225 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002446/0.2727, allocations: 171.3 kB / 1.225 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002233/0.273, allocations: 175.3 kB / 1.225 GB, free: 9.328 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.069e-05/0.273, allocations: 24 kB / 1.225 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001636/0.2732, allocations: 75.97 kB / 1.225 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.2733, allocations: 111.6 kB / 1.225 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001655/0.2735, allocations: 163 kB / 1.225 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005313/0.274, allocations: 497.9 kB / 1.226 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.274, allocations: 0 / 1.226 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2741, allocations: 0 / 1.226 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.027e-06/0.2741, allocations: 0 / 1.226 GB, free: 8.473 MB / 0.9825 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.00109/0.2752, allocations: 0.731 MB / 1.227 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.2752, allocations: 15.97 kB / 1.227 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.004e-05/0.2753, allocations: 50.73 kB / 1.227 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.823e-05/0.2754, allocations: 48.66 kB / 1.227 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005384/0.2759, allocations: 406.6 kB / 1.227 GB, free: 7.137 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.2759, allocations: 20.06 kB / 1.227 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.577e-05/0.276, allocations: 15.98 kB / 1.227 GB, free: 7.102 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003237/0.2763, allocations: 181.2 kB / 1.227 GB, free: 6.91 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.2763, allocations: 0 / 1.227 GB, free: 6.91 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.2763, allocations: 4 kB / 1.227 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.2764, allocations: 4 kB / 1.227 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002031/0.2766, allocations: 91.89 kB / 1.227 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001067/0.2776, allocations: 0.7933 MB / 1.228 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003101/0.278, allocations: 133.4 kB / 1.228 GB, free: 5.812 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.2781, allocations: 53.7 kB / 1.228 GB, free: 5.754 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.2781, allocations: 3.984 kB / 1.228 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002253/0.2783, allocations: 125.2 kB / 1.228 GB, free: 5.609 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 4.137e-06/0.2784, allocations: 3.938 kB / 1.228 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0005128/0.2789, allocations: 217.3 kB / 1.229 GB, free: 5.387 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.372e-05/0.279, allocations: 114.8 kB / 1.229 GB, free: 5.25 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006481/0.2796, allocations: 0.5759 MB / 1.229 GB, free: 4.668 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.2797, allocations: 33.7 kB / 1.229 GB, free: 4.629 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.2798, allocations: 196.6 kB / 1.23 GB, free: 4.434 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.317e-05/0.2799, allocations: 35.72 kB / 1.23 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.28, allocations: 77.64 kB / 1.23 GB, free: 4.316 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001655/0.2802, allocations: 358.7 kB / 1.23 GB, free: 3.957 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001932/0.2804, allocations: 108 kB / 1.23 GB, free: 3.852 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002386/0.2806, allocations: 166.7 kB / 1.23 GB, free: 3.668 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003026/0.2809, allocations: 189.6 kB / 1.23 GB, free: 3.473 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2809, allocations: 0 / 1.23 GB, free: 3.473 MB / 0.9825 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005552/0.2815, allocations: 345.1 kB / 1.231 GB, free: 3.129 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.2815, allocations: 4 kB / 1.231 GB, free: 3.125 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.2815, allocations: 4 kB / 1.231 GB, free: 3.121 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.2815, allocations: 0 / 1.231 GB, free: 3.121 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.2817, allocations: 48.41 kB / 1.231 GB, free: 3.074 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.2817, allocations: 4.094 kB / 1.231 GB, free: 3.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002012/0.2819, allocations: 43.86 kB / 1.231 GB, free: 3.027 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.958e-05/0.282, allocations: 12 kB / 1.231 GB, free: 3.016 MB / 0.9825 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.0001939/0.2822, allocations: 199.4 kB / 1.231 GB, free: 2.809 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.23e-05/0.2822, allocations: 43.72 kB / 1.231 GB, free: 2.766 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.004e-05/0.2823, allocations: 39.38 kB / 1.231 GB, free: 2.723 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.2823, allocations: 4 kB / 1.231 GB, free: 2.719 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2823, allocations: 4 kB / 1.231 GB, free: 2.715 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.2823, allocations: 3.984 kB / 1.231 GB, free: 2.711 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002951/0.2826, allocations: 333.3 kB / 1.231 GB, free: 2.336 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.2826, allocations: 0 / 1.231 GB, free: 2.336 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.602e-05/0.2827, allocations: 11.98 kB / 1.231 GB, free: 2.324 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.2827, allocations: 48 / 1.231 GB, free: 2.324 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.2827, allocations: 11.98 kB / 1.231 GB, free: 2.312 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2827, allocations: 3.938 kB / 1.231 GB, free: 2.309 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2827, allocations: 0 / 1.231 GB, free: 2.309 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003515/0.2831, allocations: 221.5 kB / 1.232 GB, free: 2.07 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.441e-05/0.2832, allocations: 120.9 kB / 1.232 GB, free: 1.934 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.612e-05/0.2832, allocations: 8 kB / 1.232 GB, free: 1.926 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.2834, allocations: 15.92 kB / 1.232 GB, free: 1.91 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.281e-05/0.2834, allocations: 19.97 kB / 1.232 GB, free: 1.891 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.2834, allocations: 7.984 kB / 1.232 GB, free: 1.883 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003788/0.2838, allocations: 363.1 kB / 1.232 GB, free: 1.527 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2838, allocations: 0 / 1.232 GB, free: 1.527 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000285/0.2841, allocations: 79.81 kB / 1.232 GB, free: 1.449 MB / 0.9825 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.001912/0.286, allocations: 1.061 MB / 1.233 GB, free: 0.5195 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003901/0.2864, allocations: 197.8 kB / 1.233 GB, free: 336 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.2865, allocations: 0 / 1.233 GB, free: 336 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001305/0.2866, allocations: 63.84 kB / 1.234 GB, free: 272 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004598/0.2871, allocations: 107.7 kB / 1.234 GB, free: 176 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004204/0.2913, allocations: 3.519 MB / 1.237 GB, free: 12.53 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003989/0.2917, allocations: 0.8105 MB / 1.238 GB, free: 11.69 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.000134/0.2918, allocations: 59.17 kB / 1.238 GB, free: 11.63 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001806/0.292, allocations: 127.4 kB / 1.238 GB, free: 11.51 MB / 0.9981 GB Notification: Performance of SimCode: time 4.6e-07/0.292, allocations: 0 / 1.238 GB, free: 11.51 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.108/1.4, allocations: 8.394 MB / 1.246 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/13.53, allocations: 16.19 kB / 1.246 GB, free: 3.262 MB / 0.9981 GB (rm -f Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat --tempDir=temp_Buildings_11_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches