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.001053/0.001053, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.008959/0.008959, allocations: 170.2 kB / 16.26 MB, free: 6.613 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.438/1.438, allocations: 223.3 MB / 240.3 MB, free: 5.332 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.608/2.608, allocations: 437.8 MB / 0.7121 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004169/0.0004169, allocations: 12 kB / 0.8728 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6856/0.686, allocations: 153.8 MB / 1.023 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.002773/0.6888, allocations: 1.941 MB / 1.025 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002253/0.6911, allocations: 1.236 MB / 1.026 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001739/0.6913, allocations: 7.938 kB / 1.026 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000514/0.6918, allocations: 155.5 kB / 1.026 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003362/0.6922, allocations: 151.5 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005827/0.6928, allocations: 219.6 kB / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004228/0.6932, allocations: 382.8 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002362/0.6935, allocations: 97.25 kB / 1.027 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/0.6937, allocations: 143.3 kB / 1.027 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001929/0.6939, allocations: 159.2 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.123e-05/0.6939, allocations: 8 kB / 1.027 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001439/0.6941, allocations: 51.98 kB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.6942, allocations: 99.58 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001444/0.6943, allocations: 164.6 kB / 1.028 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004367/0.6948, allocations: 472.2 kB / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.6948, allocations: 4 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.093e-06/0.6948, allocations: 0 / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.111e-06/0.6948, allocations: 0 / 1.028 GB, free: 10.52 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.0009894/0.6958, allocations: 0.6514 MB / 1.029 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.6959, allocations: 15.98 kB / 1.029 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.385e-05/0.696, allocations: 44.45 kB / 1.029 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005366/0.6965, allocations: 414.1 kB / 1.029 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.685e-05/0.6965, allocations: 8.375 kB / 1.029 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.459e-05/0.6966, allocations: 19.94 kB / 1.029 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003458/0.6969, allocations: 180.1 kB / 1.029 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.6969, allocations: 8 kB / 1.029 GB, free: 9.094 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.347e-05/0.697, allocations: 4 kB / 1.029 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.697, allocations: 4 kB / 1.029 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002015/0.6972, allocations: 95.77 kB / 1.03 GB, free: 8.992 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.6984, allocations: 0.7932 MB / 1.03 GB, free: 8.141 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002962/0.6987, allocations: 133.5 kB / 1.03 GB, free: 7.992 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.6988, allocations: 61.62 kB / 1.031 GB, free: 7.926 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.479e-05/0.6988, allocations: 3.938 kB / 1.031 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00023/0.6991, allocations: 125.1 kB / 1.031 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.6991, allocations: 0 / 1.031 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.000507/0.6996, allocations: 225.5 kB / 1.031 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.782e-05/0.6997, allocations: 102.8 kB / 1.031 GB, free: 7.43 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00062/0.7003, allocations: 0.5798 MB / 1.032 GB, free: 6.844 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.374e-05/0.7003, allocations: 33.7 kB / 1.032 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.7005, allocations: 192.5 kB / 1.032 GB, free: 6.613 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.514e-05/0.7005, allocations: 35.53 kB / 1.032 GB, free: 6.578 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.66e-05/0.7006, allocations: 41.69 kB / 1.032 GB, free: 6.531 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.7007, allocations: 358.7 kB / 1.032 GB, free: 6.172 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001842/0.7009, allocations: 104 kB / 1.032 GB, free: 6.07 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.7011, allocations: 171.1 kB / 1.032 GB, free: 5.883 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002978/0.7014, allocations: 186.6 kB / 1.033 GB, free: 5.688 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.7015, allocations: 0 / 1.033 GB, free: 5.688 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005472/0.702, allocations: 346.8 kB / 1.033 GB, free: 5.344 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.702, allocations: 9.656 kB / 1.033 GB, free: 5.336 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.7021, allocations: 0 / 1.033 GB, free: 5.336 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.7021, allocations: 4 kB / 1.033 GB, free: 5.332 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001921/0.7023, allocations: 47.97 kB / 1.033 GB, free: 5.285 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.7023, allocations: 7.938 kB / 1.033 GB, free: 5.277 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000221/0.7025, allocations: 47.91 kB / 1.033 GB, free: 5.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.353e-05/0.7026, allocations: 16 kB / 1.033 GB, free: 5.215 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.0002025/0.7028, allocations: 193.5 kB / 1.033 GB, free: 5.02 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.334e-05/0.7028, allocations: 47.42 kB / 1.033 GB, free: 4.973 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.157e-05/0.7029, allocations: 43.36 kB / 1.033 GB, free: 4.93 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.7029, allocations: 0 / 1.033 GB, free: 4.93 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.7029, allocations: 8 kB / 1.033 GB, free: 4.922 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.7029, allocations: 3.938 kB / 1.033 GB, free: 4.918 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003144/0.7033, allocations: 329.4 kB / 1.034 GB, free: 4.547 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.7033, allocations: 0 / 1.034 GB, free: 4.547 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.532e-05/0.7033, allocations: 8 kB / 1.034 GB, free: 4.539 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.7033, allocations: 48 / 1.034 GB, free: 4.539 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.7033, allocations: 11.97 kB / 1.034 GB, free: 4.527 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.7033, allocations: 0 / 1.034 GB, free: 4.527 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.7034, allocations: 0 / 1.034 GB, free: 4.527 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003418/0.7037, allocations: 217.3 kB / 1.034 GB, free: 4.293 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.7038, allocations: 128.6 kB / 1.034 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.909e-05/0.7039, allocations: 8 kB / 1.034 GB, free: 4.141 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.704, allocations: 15.98 kB / 1.034 GB, free: 4.125 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.753e-05/0.7041, allocations: 23.95 kB / 1.034 GB, free: 4.102 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.7041, allocations: 12 kB / 1.034 GB, free: 4.09 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003733/0.7045, allocations: 355.1 kB / 1.034 GB, free: 3.746 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7045, allocations: 4 kB / 1.034 GB, free: 3.742 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003111/0.7048, allocations: 67.89 kB / 1.034 GB, free: 3.676 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.001022/0.7058, allocations: 419.7 kB / 1.035 GB, free: 3.418 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004138/0.7063, allocations: 211.7 kB / 1.035 GB, free: 3.211 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.7063, allocations: 0 / 1.035 GB, free: 3.211 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001312/0.7064, allocations: 63.84 kB / 1.035 GB, free: 3.148 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005285/0.707, allocations: 86.64 kB / 1.035 GB, free: 3.066 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009773/0.708, allocations: 0.7034 MB / 1.036 GB, free: 2.34 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003407/0.7083, allocations: 0.811 MB / 1.037 GB, free: 1.504 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001434/0.7085, allocations: 59.17 kB / 1.037 GB, free: 1.441 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.144e-05/0.7085, allocations: 31.42 kB / 1.037 GB, free: 1.41 MB / 0.7794 GB Notification: Performance of SimCode: time 3.71e-07/0.7086, allocations: 0 / 1.037 GB, free: 1.41 MB / 0.7794 GB Notification: Performance of Templates: time 0.008686/0.7172, allocations: 4.398 MB / 1.041 GB, free: 13.05 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 -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/jenkins/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