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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001534/0.001534, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002017/0.002017, allocations: 192 kB / 16.14 MB, free: 6.711 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.427/1.427, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.78/2.78, allocations: 461.9 MB / 0.7342 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 69.84 kB / 0.8984 GB, free: 37.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3127, allocations: 157.4 MB / 1.052 GB, free: 8.805 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003714/0.3165, allocations: 2.305 MB / 1.054 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002319/0.3188, allocations: 1.259 MB / 1.056 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001994/0.3191, allocations: 4 kB / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004743/0.3196, allocations: 171.5 kB / 1.056 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003156/0.3199, allocations: 147.5 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005228/0.3204, allocations: 218.8 kB / 1.056 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003913/0.3208, allocations: 382.9 kB / 1.056 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/0.3211, allocations: 97.27 kB / 1.057 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002183/0.3213, allocations: 147.3 kB / 1.057 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001986/0.3215, allocations: 171.3 kB / 1.057 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.917e-05/0.3215, allocations: 12 kB / 1.057 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001687/0.3217, allocations: 59.95 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.3219, allocations: 103.6 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001584/0.322, allocations: 151 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004964/0.3225, allocations: 478.5 kB / 1.058 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3225, allocations: 0 / 1.058 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.82e-07/0.3225, allocations: 0 / 1.058 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.853e-06/0.3226, allocations: 0 / 1.058 GB, free: 3.121 MB / 0.8106 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.001236/0.3238, allocations: 0.708 MB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.3238, allocations: 8.031 kB / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.215e-05/0.3239, allocations: 44.38 kB / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005612/0.3245, allocations: 410.2 kB / 1.059 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.3245, allocations: 12.38 kB / 1.059 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.371e-05/0.3246, allocations: 15.94 kB / 1.059 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003623/0.325, allocations: 184.5 kB / 1.059 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.325, allocations: 3.984 kB / 1.059 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.508e-05/0.325, allocations: 11.98 kB / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.325, allocations: 0 / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002174/0.3252, allocations: 91.89 kB / 1.059 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/0.3264, allocations: 0.7816 MB / 1.06 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003296/0.3267, allocations: 137.4 kB / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.3268, allocations: 49.69 kB / 1.06 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.3269, allocations: 4 kB / 1.06 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002641/0.3272, allocations: 125 kB / 1.06 GB, free: 364 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=12): time 1.543e-06/0.3272, allocations: 0 / 1.06 GB, free: 364 kB / 0.8106 GB Notification: Performance of matching and sorting (n=12): time 0.0005534/0.3277, allocations: 217.1 kB / 1.06 GB, free: 140 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.757e-05/0.3278, allocations: 106.8 kB / 1.06 GB, free: 8 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006766/0.3285, allocations: 0.5837 MB / 1.061 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.3285, allocations: 29.7 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.3287, allocations: 208.3 kB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.843e-05/0.3288, allocations: 31.7 kB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.3289, allocations: 73.59 kB / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000158/0.329, allocations: 358.7 kB / 1.062 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001967/0.3292, allocations: 104 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.3295, allocations: 174.8 kB / 1.062 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003185/0.3298, allocations: 190.9 kB / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3298, allocations: 3.938 kB / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005679/0.3304, allocations: 333 kB / 1.062 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.3304, allocations: 11.98 kB / 1.062 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3305, allocations: 0 / 1.062 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/0.3305, allocations: 4 kB / 1.062 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002016/0.3307, allocations: 48.42 kB / 1.063 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.3307, allocations: 3.938 kB / 1.063 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/0.3309, allocations: 43.72 kB / 1.063 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.429e-05/0.331, allocations: 15.98 kB / 1.063 GB, free: 13.75 MB / 0.8262 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.0002035/0.3312, allocations: 205.1 kB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.456e-05/0.3313, allocations: 35.53 kB / 1.063 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.109e-05/0.3313, allocations: 47.36 kB / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.3314, allocations: 0 / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3314, allocations: 0 / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3314, allocations: 0 / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003019/0.3317, allocations: 333.3 kB / 1.063 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.3317, allocations: 7.984 kB / 1.063 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.397e-05/0.3317, allocations: 8 kB / 1.063 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.3317, allocations: 4 kB / 1.063 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.3318, allocations: 0 / 1.063 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3318, allocations: 0 / 1.063 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3318, allocations: 4 kB / 1.063 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003696/0.3322, allocations: 221.2 kB / 1.063 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/0.3323, allocations: 120.6 kB / 1.064 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.131e-05/0.3323, allocations: 8 kB / 1.064 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.3325, allocations: 19.97 kB / 1.064 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.885e-05/0.3325, allocations: 19.97 kB / 1.064 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.3326, allocations: 8 kB / 1.064 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003876/0.333, allocations: 359.1 kB / 1.064 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.333, allocations: 0 / 1.064 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003224/0.3333, allocations: 67.84 kB / 1.064 GB, free: 12.21 MB / 0.8262 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.0009923/0.3343, allocations: 428.3 kB / 1.064 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004478/0.3348, allocations: 203.7 kB / 1.065 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3348, allocations: 0 / 1.065 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.3349, allocations: 55.92 kB / 1.065 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005243/0.3355, allocations: 107.2 kB / 1.065 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009752/0.3365, allocations: 0.6874 MB / 1.065 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003822/0.3369, allocations: 0.8071 MB / 1.066 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001497/0.337, allocations: 63.17 kB / 1.066 GB, free: 9.98 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.07e-05/0.3371, allocations: 35.42 kB / 1.066 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.3371, allocations: 0 / 1.066 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of Templates: time 0.008964/0.3461, allocations: 4.433 MB / 1.071 GB, free: 5.559 MB / 0.8262 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