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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: translateModel(Buildings.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_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.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_latest_Buildings.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.001436/0.001436, 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.001351/0.001351, allocations: 193.2 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.443/1.443, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.86/2.86, allocations: 472.6 MB / 0.7451 GB, free: 4.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002512/0.002512, allocations: 62.59 kB / 0.912 GB, free: 33.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4127/0.4153, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.006889/0.4222, allocations: 2.255 MB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.004283/0.4266, allocations: 1.274 MB / 1.072 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005214/0.4271, allocations: 7.938 kB / 1.072 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0009348/0.4281, allocations: 175.3 kB / 1.072 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0009689/0.4292, allocations: 167.2 kB / 1.072 GB, free: 6.531 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001419/0.4306, allocations: 243.4 kB / 1.072 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0009737/0.4316, allocations: 410.9 kB / 1.073 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004578/0.4321, allocations: 101.2 kB / 1.073 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005077/0.4326, allocations: 171.3 kB / 1.073 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004514/0.4331, allocations: 183.3 kB / 1.073 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.763e-05/0.4332, allocations: 24 kB / 1.073 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003624/0.4336, allocations: 71.97 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002214/0.4338, allocations: 111.6 kB / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003423/0.4342, allocations: 166.9 kB / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.00108/0.4353, allocations: 482.6 kB / 1.074 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.4353, allocations: 0 / 1.074 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.954e-06/0.4353, allocations: 0 / 1.074 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.992e-05/0.4354, allocations: 0 / 1.074 GB, free: 4.602 MB / 0.8262 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.002254/0.4376, allocations: 0.7196 MB / 1.075 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.008e-05/0.4377, allocations: 12.03 kB / 1.075 GB, free: 3.82 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001963/0.4379, allocations: 40.47 kB / 1.075 GB, free: 3.781 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.439, allocations: 406.2 kB / 1.075 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.009e-05/0.439, allocations: 8.375 kB / 1.075 GB, free: 3.34 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.608e-05/0.4391, allocations: 19.94 kB / 1.075 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006183/0.4397, allocations: 181.1 kB / 1.075 GB, free: 3.129 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.4398, allocations: 0 / 1.075 GB, free: 3.129 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.118e-05/0.4398, allocations: 8 kB / 1.075 GB, free: 3.121 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.4398, allocations: 4 kB / 1.075 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004032/0.4402, allocations: 83.95 kB / 1.075 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002022/0.4423, allocations: 0.7893 MB / 1.076 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005933/0.4429, allocations: 145.4 kB / 1.076 GB, free: 2.027 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001726/0.4431, allocations: 45.7 kB / 1.076 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.8e-05/0.4431, allocations: 4 kB / 1.076 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004295/0.4436, allocations: 140.9 kB / 1.076 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 2.545e-06/0.4436, allocations: 0 / 1.076 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.001016/0.4446, allocations: 213 kB / 1.077 GB, free: 1.602 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.992e-05/0.4447, allocations: 110.8 kB / 1.077 GB, free: 1.469 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001272/0.446, allocations: 0.5759 MB / 1.077 GB, free: 0.8867 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.26e-05/0.4461, allocations: 33.7 kB / 1.077 GB, free: 0.8477 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002689/0.4464, allocations: 200.4 kB / 1.077 GB, free: 0.6484 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.479e-05/0.4465, allocations: 35.61 kB / 1.077 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001885/0.4467, allocations: 73.69 kB / 1.078 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002429/0.4469, allocations: 354.7 kB / 1.078 GB, free: 184 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003518/0.4473, allocations: 104 kB / 1.078 GB, free: 80 kB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004685/0.4478, allocations: 169.8 kB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006004/0.4484, allocations: 189.8 kB / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.4484, allocations: 0 / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001084/0.4495, allocations: 347.4 kB / 1.079 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/0.4496, allocations: 7.938 kB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/0.4496, allocations: 0 / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.634e-05/0.4496, allocations: 4 kB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003542/0.45, allocations: 47.91 kB / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.147e-05/0.45, allocations: 11.98 kB / 1.079 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004484/0.4505, allocations: 36.02 kB / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.969e-05/0.4506, allocations: 19.94 kB / 1.079 GB, free: 15.22 MB / 0.8419 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.0003859/0.451, allocations: 201.2 kB / 1.079 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.4511, allocations: 39.53 kB / 1.079 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001491/0.4513, allocations: 39.38 kB / 1.079 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.4513, allocations: 3.938 kB / 1.079 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.4513, allocations: 4 kB / 1.079 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.4513, allocations: 0 / 1.079 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005459/0.4519, allocations: 337.3 kB / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.4519, allocations: 4 kB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.06e-05/0.452, allocations: 8 kB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.452, allocations: 0 / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.386e-05/0.452, allocations: 3.984 kB / 1.079 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.452, allocations: 4 kB / 1.079 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4521, allocations: 0 / 1.079 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006416/0.4527, allocations: 221.2 kB / 1.08 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001855/0.4529, allocations: 120.6 kB / 1.08 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.576e-05/0.453, allocations: 4 kB / 1.08 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002368/0.4533, allocations: 19.92 kB / 1.08 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.4534, allocations: 19.97 kB / 1.08 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.831e-05/0.4535, allocations: 7.984 kB / 1.08 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0007354/0.4542, allocations: 359.1 kB / 1.08 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.61e-07/0.4542, allocations: 0 / 1.08 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006511/0.4549, allocations: 67.94 kB / 1.08 GB, free: 13.69 MB / 0.8419 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.00172/0.4566, allocations: 430.8 kB / 1.081 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008271/0.4575, allocations: 203.8 kB / 1.081 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.4575, allocations: 0 / 1.081 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002489/0.4577, allocations: 59.91 kB / 1.081 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008847/0.4586, allocations: 106.2 kB / 1.081 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.4605, allocations: 0.6036 MB / 1.082 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006674/0.4611, allocations: 0.8145 MB / 1.082 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002772/0.4614, allocations: 59.19 kB / 1.082 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/0.4616, allocations: 35.36 kB / 1.082 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of SimCode: time 9.52e-07/0.4616, allocations: 0 / 1.082 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of Templates: time 0.01983/0.4815, allocations: 4.742 MB / 1.087 GB, free: 6.805 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile (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 & ./Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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