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.000917/0.0009169, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.0009824/0.0009825, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.533/1.533, allocations: 223.3 MB / 240 MB, free: 5.434 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.724/2.724, allocations: 437.7 MB / 0.7117 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003823, allocations: 12 kB / 0.8722 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7798/0.7802, allocations: 153.8 MB / 1.022 GB, free: 156 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.002635/0.7828, allocations: 1.891 MB / 1.024 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001863/0.7847, allocations: 1.179 MB / 1.025 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.7849, allocations: 7.938 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004666/0.7854, allocations: 155.5 kB / 1.026 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002909/0.7857, allocations: 131.5 kB / 1.026 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004845/0.7862, allocations: 202.8 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003947/0.7866, allocations: 354.8 kB / 1.026 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/0.7867, allocations: 72.59 kB / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000185/0.7869, allocations: 139.3 kB / 1.026 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001888/0.7871, allocations: 147.4 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.959e-05/0.7872, allocations: 8 kB / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001411/0.7873, allocations: 55.97 kB / 1.027 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.7874, allocations: 87.66 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.986e-05/0.7875, allocations: 77.52 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003738/0.7879, allocations: 396.8 kB / 1.027 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.7879, allocations: 0 / 1.027 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.513e-06/0.7879, allocations: 0 / 1.027 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.7879, allocations: 0 / 1.027 GB, free: 11.26 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.001055/0.789, allocations: 0.6535 MB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.789, allocations: 16.52 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.96e-05/0.7891, allocations: 43.44 kB / 1.028 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004989/0.7896, allocations: 389.1 kB / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.7897, allocations: 8 kB / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.824e-05/0.7897, allocations: 23.95 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003061/0.79, allocations: 176.1 kB / 1.028 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.79, allocations: 0 / 1.028 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.79, allocations: 4 kB / 1.028 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.7901, allocations: 4 kB / 1.028 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001837/0.7902, allocations: 87.89 kB / 1.029 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.7913, allocations: 0.7933 MB / 1.029 GB, free: 8.91 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000289/0.7916, allocations: 145.4 kB / 1.029 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.7917, allocations: 53.66 kB / 1.029 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-05/0.7918, allocations: 4 kB / 1.029 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002286/0.792, allocations: 129 kB / 1.03 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.792, allocations: 4 kB / 1.03 GB, free: 8.539 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0004756/0.7925, allocations: 221 kB / 1.03 GB, free: 8.316 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.7926, allocations: 102.8 kB / 1.03 GB, free: 8.191 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006132/0.7932, allocations: 0.576 MB / 1.03 GB, free: 7.609 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.7932, allocations: 29.7 kB / 1.031 GB, free: 7.574 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.7934, allocations: 200.4 kB / 1.031 GB, free: 7.375 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.232e-05/0.7934, allocations: 31.55 kB / 1.031 GB, free: 7.344 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.403e-05/0.7934, allocations: 8 kB / 1.031 GB, free: 7.336 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.7936, allocations: 362.8 kB / 1.031 GB, free: 6.973 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.7938, allocations: 99.95 kB / 1.031 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002131/0.794, allocations: 166.8 kB / 1.031 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001846/0.7942, allocations: 109.1 kB / 1.031 GB, free: 6.586 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.7942, allocations: 0 / 1.031 GB, free: 6.586 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005099/0.7947, allocations: 346.2 kB / 1.032 GB, free: 6.242 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.7947, allocations: 9.25 kB / 1.032 GB, free: 6.234 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.7947, allocations: 0 / 1.032 GB, free: 6.234 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.7948, allocations: 4 kB / 1.032 GB, free: 6.23 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001844/0.7949, allocations: 47.91 kB / 1.032 GB, free: 6.184 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.795, allocations: 96 / 1.032 GB, free: 6.184 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002091/0.7952, allocations: 51.81 kB / 1.032 GB, free: 6.133 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.114e-05/0.7952, allocations: 15.94 kB / 1.032 GB, free: 6.117 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 ($whenCondition2,$PRE.TTanBot.tab.nextTimeEvent,$whenCondition1,$PRE.TTanTop.tab.nextTimeEvent,$PRE.tanSta.hysCha.y,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEventScaled,$PRE.tanSta.hysEmp.y,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001924/0.7954, allocations: 195.6 kB / 1.032 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.571e-05/0.7955, allocations: 47.42 kB / 1.032 GB, free: 5.871 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.775e-05/0.7956, allocations: 43.38 kB / 1.032 GB, free: 5.828 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.7956, allocations: 0 / 1.032 GB, free: 5.828 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.7956, allocations: 0 / 1.032 GB, free: 5.828 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.7956, allocations: 0 / 1.032 GB, free: 5.828 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002697/0.7959, allocations: 333.3 kB / 1.032 GB, free: 5.453 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.7959, allocations: 4 kB / 1.032 GB, free: 5.449 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.188e-05/0.7959, allocations: 4 kB / 1.032 GB, free: 5.445 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.229e-06/0.7959, allocations: 4 kB / 1.033 GB, free: 5.441 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.7959, allocations: 7.938 kB / 1.033 GB, free: 5.434 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.7959, allocations: 0 / 1.033 GB, free: 5.434 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.7959, allocations: 8.5 kB / 1.033 GB, free: 5.426 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003136/0.7963, allocations: 205.4 kB / 1.033 GB, free: 5.203 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.821e-05/0.7964, allocations: 124.6 kB / 1.033 GB, free: 5.062 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.016e-05/0.7964, allocations: 12 kB / 1.033 GB, free: 5.051 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.7966, allocations: 27.92 kB / 1.033 GB, free: 5.023 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.211e-05/0.7966, allocations: 23.97 kB / 1.033 GB, free: 5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.7967, allocations: 7.938 kB / 1.033 GB, free: 4.992 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003777/0.797, allocations: 359.1 kB / 1.033 GB, free: 4.645 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7971, allocations: 0 / 1.033 GB, free: 4.645 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003098/0.7974, allocations: 67.89 kB / 1.033 GB, free: 4.578 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009925/0.7984, allocations: 440 kB / 1.034 GB, free: 4.297 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003808/0.7988, allocations: 191.8 kB / 1.034 GB, free: 4.109 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.7988, allocations: 0 / 1.034 GB, free: 4.109 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001246/0.7989, allocations: 59.91 kB / 1.034 GB, free: 4.051 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004617/0.7994, allocations: 92.42 kB / 1.034 GB, free: 3.965 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009105/0.8003, allocations: 0.6726 MB / 1.035 GB, free: 3.266 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003631/0.8007, allocations: 0.811 MB / 1.036 GB, free: 2.43 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001374/0.8008, allocations: 54.88 kB / 1.036 GB, free: 2.371 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.168e-05/0.8009, allocations: 31.42 kB / 1.036 GB, free: 2.34 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.8009, allocations: 0 / 1.036 GB, free: 2.34 MB / 0.7794 GB Notification: Performance of Templates: time 0.008413/0.8093, allocations: 4.293 MB / 1.04 GB, free: 14.09 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