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.001584/0.001583, allocations: 102.6 kB / 16.27 MB, free: 5.863 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.001541/0.001541, allocations: 190.4 kB / 17.2 MB, free: 5.512 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.415/1.415, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.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.525/2.525, allocations: 437.1 MB / 0.711 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 69.11 kB / 0.8699 GB, free: 2.191 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.319, allocations: 151.6 MB / 1.018 GB, free: 10.63 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004108/0.3231, allocations: 2.25 MB / 1.02 GB, free: 8.363 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002259/0.3254, allocations: 1.279 MB / 1.021 GB, free: 7.074 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001717/0.3256, allocations: 7.938 kB / 1.021 GB, free: 7.066 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0004669/0.3261, allocations: 171.3 kB / 1.022 GB, free: 6.898 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0003682/0.3265, allocations: 167.2 kB / 1.022 GB, free: 6.734 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005967/0.3271, allocations: 253.2 kB / 1.022 GB, free: 6.488 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004866/0.3276, allocations: 410.8 kB / 1.022 GB, free: 6.086 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002269/0.3279, allocations: 101.2 kB / 1.023 GB, free: 5.984 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002197/0.3281, allocations: 167.3 kB / 1.023 GB, free: 5.82 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002264/0.3283, allocations: 179.3 kB / 1.023 GB, free: 5.645 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.8e-05/0.3284, allocations: 24 kB / 1.023 GB, free: 5.621 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000187/0.3286, allocations: 79.95 kB / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.3287, allocations: 107.6 kB / 1.023 GB, free: 5.438 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001652/0.3289, allocations: 170.9 kB / 1.023 GB, free: 5.27 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0005392/0.3294, allocations: 494.6 kB / 1.024 GB, free: 4.785 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3294, allocations: 0 / 1.024 GB, free: 4.785 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.183e-06/0.3294, allocations: 0 / 1.024 GB, free: 4.785 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.3295, allocations: 0 / 1.024 GB, free: 4.785 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.001155/0.3306, allocations: 0.704 MB / 1.024 GB, free: 4.031 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.3307, allocations: 12.88 kB / 1.024 GB, free: 4.02 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.464e-05/0.3308, allocations: 52.31 kB / 1.024 GB, free: 3.969 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005721/0.3313, allocations: 406.2 kB / 1.025 GB, free: 3.531 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.3314, allocations: 12.38 kB / 1.025 GB, free: 3.52 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.172e-05/0.3314, allocations: 23.92 kB / 1.025 GB, free: 3.496 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003417/0.3318, allocations: 177.7 kB / 1.025 GB, free: 3.309 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.3318, allocations: 3.938 kB / 1.025 GB, free: 3.305 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.3318, allocations: 4 kB / 1.025 GB, free: 3.301 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.3318, allocations: 8 kB / 1.025 GB, free: 3.293 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002062/0.3321, allocations: 83.95 kB / 1.025 GB, free: 3.211 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001185/0.3333, allocations: 0.7932 MB / 1.026 GB, free: 2.359 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003455/0.3336, allocations: 133.4 kB / 1.026 GB, free: 2.211 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.3337, allocations: 53.7 kB / 1.026 GB, free: 2.152 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.478e-05/0.3338, allocations: 3.984 kB / 1.026 GB, free: 2.148 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002592/0.334, allocations: 125 kB / 1.026 GB, free: 2.008 MB / 0.795 GB Notification: Performance of pre-optimization done (n=12): time 3.186e-06/0.334, allocations: 4 kB / 1.026 GB, free: 2.004 MB / 0.795 GB Notification: Performance of matching and sorting (n=12): time 0.0005541/0.3346, allocations: 213.1 kB / 1.026 GB, free: 1.789 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.045e-05/0.3347, allocations: 110.8 kB / 1.027 GB, free: 1.656 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000721/0.3354, allocations: 0.5759 MB / 1.027 GB, free: 1.074 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.3355, allocations: 33.7 kB / 1.027 GB, free: 1.035 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000174/0.3356, allocations: 204.3 kB / 1.027 GB, free: 0.832 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.475e-05/0.3357, allocations: 27.7 kB / 1.027 GB, free: 0.8047 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/0.3358, allocations: 77.59 kB / 1.027 GB, free: 0.7227 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001785/0.336, allocations: 362.7 kB / 1.028 GB, free: 368 kB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001965/0.3362, allocations: 104 kB / 1.028 GB, free: 264 kB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002502/0.3365, allocations: 163.1 kB / 1.028 GB, free: 80 kB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000339/0.3368, allocations: 188.1 kB / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3368, allocations: 4 kB / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005836/0.3374, allocations: 339.3 kB / 1.028 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.3374, allocations: 4 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.3375, allocations: 4 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.3375, allocations: 4.094 kB / 1.029 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001999/0.3377, allocations: 47.91 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.3377, allocations: 4 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002239/0.3379, allocations: 43.72 kB / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.468e-05/0.338, allocations: 12.11 kB / 1.029 GB, free: 15.43 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.0002208/0.3382, allocations: 203.9 kB / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.742e-05/0.3383, allocations: 39.53 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.935e-05/0.3384, allocations: 39.38 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.3384, allocations: 4 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3384, allocations: 0 / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.3384, allocations: 7.922 kB / 1.029 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003486/0.3387, allocations: 337.3 kB / 1.029 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3388, allocations: 0 / 1.029 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.821e-05/0.3388, allocations: 15.92 kB / 1.029 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.3388, allocations: 4.031 kB / 1.029 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.3388, allocations: 4 kB / 1.029 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3388, allocations: 0 / 1.029 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3388, allocations: 4 kB / 1.029 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000371/0.3392, allocations: 209.4 kB / 1.029 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.3393, allocations: 120.6 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.178e-05/0.3394, allocations: 8 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/0.3395, allocations: 11.98 kB / 1.03 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.708e-05/0.3396, allocations: 31.84 kB / 1.03 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.3397, allocations: 11.98 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004105/0.3401, allocations: 355.1 kB / 1.03 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3401, allocations: 4 kB / 1.03 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003178/0.3404, allocations: 75.83 kB / 1.03 GB, free: 13.88 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.001545/0.342, allocations: 420.7 kB / 1.03 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004697/0.3424, allocations: 199.8 kB / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.3424, allocations: 4 kB / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.3426, allocations: 59.91 kB / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005291/0.3431, allocations: 109.3 kB / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.3442, allocations: 0.6484 MB / 1.031 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.3447, allocations: 0.8145 MB / 1.032 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.903e-05/0.3448, allocations: 35.42 kB / 1.032 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of SimCode: time 3.01e-07/0.3448, allocations: 0 / 1.032 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of Templates: time 0.008528/0.3533, allocations: 5.063 MB / 1.037 GB, free: 6.668 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=400 -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