Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Experimental.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_10_Buildings_Experimental_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.001525/0.001525, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.276/1.276, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.461/2.461, allocations: 437.1 MB / 0.7104 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 55.91 kB / 0.8694 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5265/0.5278, allocations: 151.6 MB / 1.017 GB, free: 2.449 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003359/0.5312, allocations: 2.246 MB / 1.02 GB, free: 188 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001834/0.5331, allocations: 1.275 MB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.5332, allocations: 11.94 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003805/0.5336, allocations: 167.3 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003105/0.5339, allocations: 175.2 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004645/0.5344, allocations: 243.8 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003914/0.5348, allocations: 414.7 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/0.535, allocations: 101.3 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001779/0.5352, allocations: 171.3 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.5354, allocations: 175.3 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.737e-05/0.5354, allocations: 28 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001433/0.5356, allocations: 79.97 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.5357, allocations: 111.6 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.5358, allocations: 166.9 kB / 1.023 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004339/0.5363, allocations: 488.6 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.5363, allocations: 0 / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.042e-06/0.5363, allocations: 0 / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.5363, allocations: 0 / 1.023 GB, free: 12.61 MB / 0.7794 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.0009275/0.5372, allocations: 0.708 MB / 1.024 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.055e-05/0.5373, allocations: 8.031 kB / 1.024 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.697e-05/0.5373, allocations: 46.73 kB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.47e-05/0.5374, allocations: 48.38 kB / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004654/0.5379, allocations: 414.1 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.5379, allocations: 12.12 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.765e-05/0.5379, allocations: 19.94 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.5383, allocations: 177.1 kB / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.5383, allocations: 0 / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.954e-05/0.5383, allocations: 8 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.445e-06/0.5383, allocations: 4 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001883/0.5385, allocations: 87.89 kB / 1.025 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009648/0.5395, allocations: 0.7932 MB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003051/0.5398, allocations: 141.4 kB / 1.025 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.5399, allocations: 45.7 kB / 1.026 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.5399, allocations: 4 kB / 1.026 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000213/0.5401, allocations: 125 kB / 1.026 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.503e-06/0.5402, allocations: 4 kB / 1.026 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0004951/0.5407, allocations: 217.1 kB / 1.026 GB, free: 9.559 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.5407, allocations: 110.8 kB / 1.026 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005754/0.5413, allocations: 0.572 MB / 1.027 GB, free: 8.848 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.934e-05/0.5413, allocations: 37.69 kB / 1.027 GB, free: 8.805 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.5415, allocations: 192.5 kB / 1.027 GB, free: 8.613 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.082e-05/0.5415, allocations: 43.53 kB / 1.027 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.712e-05/0.5416, allocations: 73.59 kB / 1.027 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.5417, allocations: 358.7 kB / 1.027 GB, free: 8.133 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001869/0.5419, allocations: 108 kB / 1.027 GB, free: 8.027 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/0.5422, allocations: 171.1 kB / 1.027 GB, free: 7.84 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000289/0.5425, allocations: 182.3 kB / 1.028 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5425, allocations: 0 / 1.028 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005362/0.543, allocations: 351.3 kB / 1.028 GB, free: 7.301 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.543, allocations: 4 kB / 1.028 GB, free: 7.297 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.543, allocations: 0 / 1.028 GB, free: 7.297 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.5431, allocations: 4 kB / 1.028 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000181/0.5433, allocations: 47.91 kB / 1.028 GB, free: 7.246 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.5433, allocations: 4 kB / 1.028 GB, free: 7.242 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002057/0.5435, allocations: 35.81 kB / 1.028 GB, free: 7.207 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.354e-05/0.5435, allocations: 12.11 kB / 1.028 GB, free: 7.195 MB / 0.7794 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.0001723/0.5437, allocations: 207.5 kB / 1.028 GB, free: 6.984 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.583e-05/0.5438, allocations: 43.44 kB / 1.028 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.653e-05/0.5438, allocations: 39.38 kB / 1.028 GB, free: 6.902 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.5438, allocations: 0 / 1.028 GB, free: 6.902 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.5438, allocations: 0 / 1.028 GB, free: 6.902 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.5439, allocations: 7.984 kB / 1.028 GB, free: 6.895 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002569/0.5441, allocations: 325.4 kB / 1.029 GB, free: 6.527 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.5441, allocations: 0 / 1.029 GB, free: 6.527 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.418e-05/0.5442, allocations: 15.94 kB / 1.029 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.5442, allocations: 3.984 kB / 1.029 GB, free: 6.508 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.5442, allocations: 0 / 1.029 GB, free: 6.508 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.5442, allocations: 4 kB / 1.029 GB, free: 6.504 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.5442, allocations: 0.5 kB / 1.029 GB, free: 6.504 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003432/0.5446, allocations: 213.3 kB / 1.029 GB, free: 6.273 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.642e-05/0.5447, allocations: 120.6 kB / 1.029 GB, free: 6.137 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.028e-05/0.5447, allocations: 16 kB / 1.029 GB, free: 6.121 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.5448, allocations: 15.98 kB / 1.029 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.997e-05/0.5449, allocations: 23.91 kB / 1.029 GB, free: 6.082 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.5449, allocations: 7.984 kB / 1.029 GB, free: 6.074 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003572/0.5453, allocations: 359.1 kB / 1.029 GB, free: 5.73 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5453, allocations: 0 / 1.029 GB, free: 5.73 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002971/0.5456, allocations: 71.83 kB / 1.029 GB, free: 5.66 MB / 0.7794 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.001407/0.547, allocations: 1.065 MB / 1.031 GB, free: 4.723 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003935/0.5474, allocations: 207.9 kB / 1.031 GB, free: 4.52 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.5474, allocations: 4.062 kB / 1.031 GB, free: 4.516 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001352/0.5476, allocations: 63.91 kB / 1.031 GB, free: 4.453 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004663/0.548, allocations: 98.09 kB / 1.031 GB, free: 4.367 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003931/0.552, allocations: 3.563 MB / 1.034 GB, free: 0.6875 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/0.5523, allocations: 0.8029 MB / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001383/0.5525, allocations: 58.94 kB / 1.035 GB, free: 15.8 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.5527, allocations: 119.4 kB / 1.035 GB, free: 15.69 MB / 0.795 GB Notification: Performance of SimCode: time 2.8e-07/0.5527, allocations: 0 / 1.035 GB, free: 15.69 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.91/3.463, allocations: 8.301 MB / 1.043 GB, free: 7.574 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/15.76, allocations: 6.344 kB / 1.043 GB, free: 7.57 MB / 0.795 GB (rm -f Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat --tempDir=temp_Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches