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: translateModel(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 106.3 kB / 16.41 MB, free: 6.414 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.001958/0.001957, allocations: 189.7 kB / 17.34 MB, free: 5.691 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.366/1.366, allocations: 222.9 MB / 241 MB, free: 15.06 MB / 206.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.449/2.449, allocations: 437 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001464, allocations: 55.91 kB / 1.019 GB, free: 9.402 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9217/0.9231, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003818/0.927, allocations: 2.251 MB / 1.17 GB, free: 1.578 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002217/0.9293, allocations: 1.271 MB / 1.171 GB, free: 304 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001949/0.9295, allocations: 7.938 kB / 1.171 GB, free: 296 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0005124/0.93, allocations: 171.3 kB / 1.171 GB, free: 124 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0004054/0.9305, allocations: 175.3 kB / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.000603/0.9311, allocations: 250.8 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004689/0.9316, allocations: 403 kB / 1.172 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002461/0.9318, allocations: 109.2 kB / 1.172 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002429/0.9321, allocations: 183.3 kB / 1.172 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000211/0.9323, allocations: 179.2 kB / 1.172 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 5.483e-05/0.9323, allocations: 27.98 kB / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001661/0.9325, allocations: 75.97 kB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.9326, allocations: 111.6 kB / 1.172 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001644/0.9328, allocations: 163 kB / 1.173 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.000616/0.9334, allocations: 0.4982 MB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.9335, allocations: 0 / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.303e-06/0.9335, allocations: 0 / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.286e-06/0.9335, allocations: 0 / 1.173 GB, free: 13.98 MB / 0.9044 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.001127/0.9346, allocations: 0.7232 MB / 1.174 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.9347, allocations: 12.88 kB / 1.174 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.685e-05/0.9347, allocations: 44.66 kB / 1.174 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005643/0.9353, allocations: 418.6 kB / 1.174 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.9353, allocations: 8.375 kB / 1.174 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.423e-05/0.9354, allocations: 27.88 kB / 1.174 GB, free: 12.67 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003363/0.9357, allocations: 180.1 kB / 1.174 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.9358, allocations: 0 / 1.174 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.954e-05/0.9358, allocations: 4 kB / 1.174 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.9358, allocations: 4 kB / 1.174 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002239/0.936, allocations: 87.89 kB / 1.174 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001088/0.9371, allocations: 0.7856 MB / 1.175 GB, free: 11.54 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003232/0.9375, allocations: 149.4 kB / 1.175 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.9376, allocations: 45.7 kB / 1.175 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.947e-05/0.9376, allocations: 7.938 kB / 1.175 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002425/0.9379, allocations: 129 kB / 1.176 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=12): time 3.076e-06/0.9379, allocations: 3.984 kB / 1.176 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12): time 0.000528/0.9384, allocations: 221.3 kB / 1.176 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.046e-05/0.9385, allocations: 102.8 kB / 1.176 GB, free: 10.82 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006442/0.9392, allocations: 0.5799 MB / 1.176 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.119e-05/0.9392, allocations: 33.7 kB / 1.176 GB, free: 10.19 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.9394, allocations: 196.5 kB / 1.177 GB, free: 9.996 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.71e-05/0.9394, allocations: 39.73 kB / 1.177 GB, free: 9.957 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.9395, allocations: 73.64 kB / 1.177 GB, free: 9.879 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001519/0.9397, allocations: 354.8 kB / 1.177 GB, free: 9.523 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000207/0.9399, allocations: 107.9 kB / 1.177 GB, free: 9.418 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002322/0.9401, allocations: 178.9 kB / 1.177 GB, free: 9.223 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003101/0.9405, allocations: 194.7 kB / 1.178 GB, free: 9.02 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.9405, allocations: 0 / 1.178 GB, free: 9.02 MB / 0.9044 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005758/0.9411, allocations: 344.4 kB / 1.178 GB, free: 8.68 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.9411, allocations: 8 kB / 1.178 GB, free: 8.672 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-06/0.9411, allocations: 3.938 kB / 1.178 GB, free: 8.668 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.9411, allocations: 4 kB / 1.178 GB, free: 8.664 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001955/0.9413, allocations: 43.97 kB / 1.178 GB, free: 8.621 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.9413, allocations: 7.938 kB / 1.178 GB, free: 8.613 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.9415, allocations: 39.8 kB / 1.178 GB, free: 8.574 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.369e-05/0.9416, allocations: 12 kB / 1.178 GB, free: 8.562 MB / 0.9044 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.9418, allocations: 203.5 kB / 1.178 GB, free: 8.355 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.678e-05/0.9419, allocations: 43.72 kB / 1.178 GB, free: 8.312 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.173e-05/0.942, allocations: 39.38 kB / 1.178 GB, free: 8.273 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.942, allocations: 0 / 1.178 GB, free: 8.273 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.942, allocations: 0 / 1.178 GB, free: 8.273 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.942, allocations: 4 kB / 1.178 GB, free: 8.27 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003223/0.9423, allocations: 333.3 kB / 1.179 GB, free: 7.895 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.9423, allocations: 0.5 kB / 1.179 GB, free: 7.895 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.268e-05/0.9424, allocations: 4 kB / 1.179 GB, free: 7.891 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.9424, allocations: 8 kB / 1.179 GB, free: 7.883 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.9424, allocations: 7.984 kB / 1.179 GB, free: 7.875 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.9424, allocations: 4 kB / 1.179 GB, free: 7.871 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.9424, allocations: 0 / 1.179 GB, free: 7.871 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003599/0.9428, allocations: 221.5 kB / 1.179 GB, free: 7.633 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.9429, allocations: 116.9 kB / 1.179 GB, free: 7.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.748e-05/0.943, allocations: 8 kB / 1.179 GB, free: 7.492 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.9431, allocations: 15.98 kB / 1.179 GB, free: 7.477 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.597e-05/0.9432, allocations: 23.97 kB / 1.179 GB, free: 7.453 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/0.9432, allocations: 4 kB / 1.179 GB, free: 7.449 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0003916/0.9436, allocations: 363.1 kB / 1.179 GB, free: 7.098 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9436, allocations: 0 / 1.179 GB, free: 7.098 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003121/0.9439, allocations: 67.89 kB / 1.179 GB, free: 7.031 MB / 0.9044 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.001068/0.945, allocations: 448.9 kB / 1.18 GB, free: 6.746 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004453/0.9454, allocations: 198.2 kB / 1.18 GB, free: 6.555 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.9454, allocations: 0 / 1.18 GB, free: 6.555 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.9456, allocations: 55.92 kB / 1.18 GB, free: 6.5 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000485/0.9461, allocations: 97.58 kB / 1.18 GB, free: 6.41 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.9471, allocations: 0.6519 MB / 1.181 GB, free: 5.723 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004164/0.9476, allocations: 0.8068 MB / 1.182 GB, free: 4.891 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.07e-05/0.9477, allocations: 35.42 kB / 1.182 GB, free: 4.855 MB / 0.9044 GB Notification: Performance of SimCode: time 3.41e-07/0.9477, allocations: 0 / 1.182 GB, free: 4.855 MB / 0.9044 GB Notification: Performance of Templates: time 0.008157/0.9558, allocations: 5.106 MB / 1.187 GB, free: 15.77 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile (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 & ./Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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