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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001054/0.001059, allocations: 100.2 kB / 16.35 MB, free: 5.828 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.001046/0.001046, allocations: 194.5 kB / 17.29 MB, free: 5.484 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.35/1.35, allocations: 222.9 MB / 241 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.545/2.545, allocations: 437.1 MB / 0.7112 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 63.89 kB / 0.8707 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7381/0.7394, allocations: 151.6 MB / 1.019 GB, free: 2.344 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003877/0.7433, allocations: 2.258 MB / 1.021 GB, free: 68 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001976/0.7453, allocations: 1.283 MB / 1.022 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001783/0.7455, allocations: 7.938 kB / 1.022 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004545/0.746, allocations: 171.3 kB / 1.022 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003514/0.7464, allocations: 171.2 kB / 1.023 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005311/0.7469, allocations: 244.6 kB / 1.023 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000408/0.7473, allocations: 414.8 kB / 1.023 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002074/0.7475, allocations: 101.2 kB / 1.023 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/0.7477, allocations: 167.3 kB / 1.023 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002039/0.7479, allocations: 179.3 kB / 1.024 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.764e-05/0.748, allocations: 24 kB / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001527/0.7481, allocations: 79.91 kB / 1.024 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.7483, allocations: 107.7 kB / 1.024 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001405/0.7484, allocations: 166.9 kB / 1.024 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004677/0.7489, allocations: 488.1 kB / 1.024 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.248e-05/0.7489, allocations: 4 kB / 1.024 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.863e-06/0.7489, allocations: 3.938 kB / 1.024 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.304e-06/0.7489, allocations: 4 kB / 1.024 GB, free: 12.49 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.001093/0.75, allocations: 0.7133 MB / 1.025 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.7501, allocations: 15.98 kB / 1.025 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.383e-05/0.7502, allocations: 44.38 kB / 1.025 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000554/0.7507, allocations: 414.1 kB / 1.026 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.7508, allocations: 16.38 kB / 1.026 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.22e-05/0.7508, allocations: 19.92 kB / 1.026 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000317/0.7511, allocations: 176.7 kB / 1.026 GB, free: 11 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.7511, allocations: 3.938 kB / 1.026 GB, free: 11 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.228e-05/0.7512, allocations: 8 kB / 1.026 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.7512, allocations: 0 / 1.026 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.7514, allocations: 87.95 kB / 1.026 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.7525, allocations: 0.7815 MB / 1.027 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003256/0.7528, allocations: 137.4 kB / 1.027 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.7529, allocations: 49.7 kB / 1.027 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.958e-05/0.7529, allocations: 4 kB / 1.027 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002536/0.7532, allocations: 137 kB / 1.027 GB, free: 9.703 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.763e-06/0.7532, allocations: 0 / 1.027 GB, free: 9.703 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0006082/0.7538, allocations: 213.2 kB / 1.027 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.834e-05/0.7539, allocations: 110.8 kB / 1.027 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006643/0.7546, allocations: 0.5759 MB / 1.028 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.7547, allocations: 41.62 kB / 1.028 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.7548, allocations: 196.5 kB / 1.028 GB, free: 8.531 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.078e-05/0.7549, allocations: 35.53 kB / 1.028 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.755, allocations: 77.59 kB / 1.028 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001645/0.7552, allocations: 358.7 kB / 1.029 GB, free: 8.055 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001928/0.7554, allocations: 99.95 kB / 1.029 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000243/0.7556, allocations: 175.1 kB / 1.029 GB, free: 7.766 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003053/0.7559, allocations: 182.7 kB / 1.029 GB, free: 7.574 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.7559, allocations: 4 kB / 1.029 GB, free: 7.57 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005465/0.7565, allocations: 343.6 kB / 1.029 GB, free: 7.23 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.7565, allocations: 4 kB / 1.029 GB, free: 7.227 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.7565, allocations: 4 kB / 1.029 GB, free: 7.223 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.443e-05/0.7566, allocations: 0 / 1.029 GB, free: 7.223 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.7568, allocations: 51.91 kB / 1.029 GB, free: 7.172 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.7568, allocations: 4 kB / 1.029 GB, free: 7.168 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/0.757, allocations: 35.81 kB / 1.029 GB, free: 7.133 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.6e-05/0.7571, allocations: 12 kB / 1.029 GB, free: 7.121 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.0002251/0.7573, allocations: 203.5 kB / 1.03 GB, free: 6.914 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.795e-05/0.7574, allocations: 39.44 kB / 1.03 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001034/0.7575, allocations: 39.38 kB / 1.03 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.7575, allocations: 4 kB / 1.03 GB, free: 6.832 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.7575, allocations: 0 / 1.03 GB, free: 6.832 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.7575, allocations: 7.922 kB / 1.03 GB, free: 6.824 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003427/0.7579, allocations: 329.4 kB / 1.03 GB, free: 6.453 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.7579, allocations: 0 / 1.03 GB, free: 6.453 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.936e-05/0.7579, allocations: 16.03 kB / 1.03 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.758, allocations: 3.984 kB / 1.03 GB, free: 6.434 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.758, allocations: 8 kB / 1.03 GB, free: 6.426 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.758, allocations: 0.5 kB / 1.03 GB, free: 6.426 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.758, allocations: 0 / 1.03 GB, free: 6.426 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003615/0.7584, allocations: 213.3 kB / 1.03 GB, free: 6.195 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.7585, allocations: 128.5 kB / 1.03 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.249e-05/0.7586, allocations: 12 kB / 1.03 GB, free: 6.039 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.7587, allocations: 11.98 kB / 1.03 GB, free: 6.027 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.272e-05/0.7588, allocations: 19.97 kB / 1.03 GB, free: 6.008 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.906e-05/0.7588, allocations: 15.98 kB / 1.03 GB, free: 5.992 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003904/0.7592, allocations: 351.1 kB / 1.031 GB, free: 5.652 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7592, allocations: 0 / 1.031 GB, free: 5.652 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003108/0.7595, allocations: 71.89 kB / 1.031 GB, free: 5.582 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.001077/0.7606, allocations: 425.3 kB / 1.031 GB, free: 5.316 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004071/0.761, allocations: 199.7 kB / 1.031 GB, free: 5.121 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.761, allocations: 0 / 1.031 GB, free: 5.121 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.7612, allocations: 64.03 kB / 1.032 GB, free: 5.059 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005091/0.7617, allocations: 104.9 kB / 1.032 GB, free: 4.965 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000895/0.7626, allocations: 0.5974 MB / 1.032 GB, free: 4.344 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003491/0.763, allocations: 0.8146 MB / 1.033 GB, free: 3.504 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001261/0.7631, allocations: 50.94 kB / 1.033 GB, free: 3.449 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.486e-05/0.7632, allocations: 35.42 kB / 1.033 GB, free: 3.414 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.7632, allocations: 0 / 1.033 GB, free: 3.414 MB / 0.7794 GB Notification: Performance of Templates: time 0.008735/0.7719, allocations: 4.748 MB / 1.038 GB, free: 14.71 MB / 0.795 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 -s cvode -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