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.001645/0.001645, allocations: 103.2 kB / 16.35 MB, free: 6.285 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.001661/0.001661, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.309/1.309, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.434/2.434, allocations: 437.1 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 68.02 kB / 0.8707 GB, free: 1.398 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2829, allocations: 151.6 MB / 1.019 GB, free: 9.809 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003982/0.2869, allocations: 2.257 MB / 1.021 GB, free: 7.531 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002108/0.2891, allocations: 1.279 MB / 1.022 GB, free: 6.242 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.2892, allocations: 11.94 kB / 1.022 GB, free: 6.23 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.000465/0.2897, allocations: 163.3 kB / 1.022 GB, free: 6.07 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.000361/0.2901, allocations: 175.2 kB / 1.023 GB, free: 5.898 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005465/0.2907, allocations: 248 kB / 1.023 GB, free: 5.66 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004398/0.2911, allocations: 418.7 kB / 1.023 GB, free: 5.25 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002252/0.2913, allocations: 97.27 kB / 1.023 GB, free: 5.152 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002268/0.2916, allocations: 171.3 kB / 1.023 GB, free: 4.984 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002287/0.2918, allocations: 171.3 kB / 1.024 GB, free: 4.816 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.438e-05/0.2919, allocations: 31.94 kB / 1.024 GB, free: 4.785 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001703/0.292, allocations: 83.95 kB / 1.024 GB, free: 4.703 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.2922, allocations: 103.7 kB / 1.024 GB, free: 4.602 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001694/0.2924, allocations: 166.9 kB / 1.024 GB, free: 4.438 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0005326/0.2929, allocations: 498.2 kB / 1.024 GB, free: 3.949 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.2929, allocations: 0 / 1.024 GB, free: 3.949 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.606e-06/0.2929, allocations: 0 / 1.024 GB, free: 3.949 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.386e-06/0.2929, allocations: 3.938 kB / 1.024 GB, free: 3.945 MB / 0.795 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.001129/0.2941, allocations: 0.7042 MB / 1.025 GB, free: 3.191 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.2941, allocations: 12.88 kB / 1.025 GB, free: 3.18 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.478e-05/0.2942, allocations: 44.38 kB / 1.025 GB, free: 3.137 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005521/0.2948, allocations: 418.1 kB / 1.026 GB, free: 2.688 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.2948, allocations: 8.375 kB / 1.026 GB, free: 2.68 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.308e-05/0.2948, allocations: 19.94 kB / 1.026 GB, free: 2.66 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003199/0.2952, allocations: 185.1 kB / 1.026 GB, free: 2.465 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.2952, allocations: 3.984 kB / 1.026 GB, free: 2.461 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/0.2952, allocations: 8 kB / 1.026 GB, free: 2.453 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.2952, allocations: 4 kB / 1.026 GB, free: 2.449 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001964/0.2954, allocations: 91.88 kB / 1.026 GB, free: 2.359 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.2965, allocations: 0.7815 MB / 1.027 GB, free: 1.52 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003157/0.2968, allocations: 137.4 kB / 1.027 GB, free: 1.367 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.2969, allocations: 49.69 kB / 1.027 GB, free: 1.312 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.385e-05/0.297, allocations: 7.938 kB / 1.027 GB, free: 1.305 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002398/0.2972, allocations: 125.1 kB / 1.027 GB, free: 1.164 MB / 0.795 GB Notification: Performance of pre-optimization done (n=12): time 1.543e-06/0.2972, allocations: 4 kB / 1.027 GB, free: 1.16 MB / 0.795 GB Notification: Performance of matching and sorting (n=12): time 0.000534/0.2978, allocations: 221.1 kB / 1.027 GB, free: 0.9375 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.819e-05/0.2979, allocations: 106.8 kB / 1.027 GB, free: 0.8086 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006616/0.2985, allocations: 0.5798 MB / 1.028 GB, free: 228 kB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.751e-05/0.2986, allocations: 29.7 kB / 1.028 GB, free: 192 kB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001608/0.2987, allocations: 204.3 kB / 1.028 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.881e-05/0.2988, allocations: 27.66 kB / 1.028 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.2989, allocations: 81.58 kB / 1.028 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.299, allocations: 358.7 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001847/0.2992, allocations: 104 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002297/0.2995, allocations: 163.1 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002963/0.2998, allocations: 195.8 kB / 1.029 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2998, allocations: 0 / 1.029 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005219/0.3003, allocations: 335.5 kB / 1.029 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.3003, allocations: 8 kB / 1.029 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.3003, allocations: 0 / 1.029 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.3004, allocations: 12.03 kB / 1.029 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/0.3006, allocations: 43.98 kB / 1.029 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.3006, allocations: 11.91 kB / 1.029 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002037/0.3008, allocations: 43.72 kB / 1.029 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.119e-05/0.3008, allocations: 8 kB / 1.029 GB, free: 14.57 MB / 0.8106 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.0001874/0.301, allocations: 196.1 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.413e-05/0.3011, allocations: 39.53 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.726e-05/0.3012, allocations: 43.36 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.3012, allocations: 4 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3012, allocations: 0 / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3012, allocations: 0 / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002761/0.3015, allocations: 337.3 kB / 1.03 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3015, allocations: 0 / 1.03 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.469e-05/0.3015, allocations: 8 kB / 1.03 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.3015, allocations: 0 / 1.03 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.3016, allocations: 8 kB / 1.03 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.3016, allocations: 4.484 kB / 1.03 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3016, allocations: 4 kB / 1.03 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003391/0.3019, allocations: 209.3 kB / 1.03 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.302, allocations: 124.6 kB / 1.03 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.724e-05/0.3021, allocations: 8 kB / 1.03 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001214/0.3022, allocations: 19.91 kB / 1.03 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.646e-05/0.3023, allocations: 28.02 kB / 1.03 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-05/0.3023, allocations: 11.98 kB / 1.03 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003805/0.3027, allocations: 359.1 kB / 1.031 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.61e-07/0.3027, allocations: 0 / 1.031 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003122/0.3031, allocations: 71.84 kB / 1.031 GB, free: 13.03 MB / 0.8106 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.0009824/0.304, allocations: 415.6 kB / 1.031 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004214/0.3045, allocations: 203.8 kB / 1.031 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3045, allocations: 0 / 1.031 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001381/0.3046, allocations: 60.05 kB / 1.031 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004923/0.3051, allocations: 112.2 kB / 1.032 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008964/0.306, allocations: 0.5959 MB / 1.032 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.3064, allocations: 0.8029 MB / 1.033 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001339/0.3066, allocations: 58.94 kB / 1.033 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.188e-05/0.3066, allocations: 31.42 kB / 1.033 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of SimCode: time 6.91e-07/0.3067, allocations: 0 / 1.033 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of Templates: time 0.008823/0.3155, allocations: 4.743 MB / 1.038 GB, free: 6.172 MB / 0.8106 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 gbode -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