Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.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_latest_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_latest_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.007143/0.007143, allocations: 96.19 kB / 15.87 MB, free: 6.289 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.001673/0.001673, allocations: 201.8 kB / 16.79 MB, free: 6.215 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.411/1.411, allocations: 222.9 MB / 240.5 MB, free: 4.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.778/2.778, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 62.62 kB / 0.8991 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3278, allocations: 157.4 MB / 1.053 GB, free: 8.324 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004246/0.3321, allocations: 2.305 MB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002341/0.3344, allocations: 1.263 MB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003167/0.3348, allocations: 7.938 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005577/0.3354, allocations: 155.5 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004701/0.3359, allocations: 147.5 kB / 1.057 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006982/0.3366, allocations: 226.3 kB / 1.057 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005893/0.3372, allocations: 382.9 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002748/0.3375, allocations: 99.5 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003376/0.3378, allocations: 155.2 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002811/0.3381, allocations: 171.3 kB / 1.058 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.188e-05/0.3382, allocations: 12 kB / 1.058 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002024/0.3384, allocations: 59.97 kB / 1.058 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.3385, allocations: 99.59 kB / 1.058 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002233/0.3388, allocations: 151 kB / 1.058 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005279/0.3393, allocations: 391.4 kB / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.3393, allocations: 7.938 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.834e-06/0.3393, allocations: 0 / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.331e-05/0.3393, allocations: 0 / 1.058 GB, free: 2.711 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.001418/0.3408, allocations: 0.7119 MB / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.3408, allocations: 11.97 kB / 1.059 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.341, allocations: 44.38 kB / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006347/0.3416, allocations: 406.2 kB / 1.059 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/0.3416, allocations: 16.36 kB / 1.059 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.695e-05/0.3417, allocations: 15.94 kB / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000369/0.3421, allocations: 180.1 kB / 1.06 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.3421, allocations: 0 / 1.06 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.145e-05/0.3421, allocations: 4 kB / 1.06 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.3421, allocations: 11.97 kB / 1.06 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002242/0.3423, allocations: 87.89 kB / 1.06 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00127/0.3436, allocations: 0.7854 MB / 1.06 GB, free: 296 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003371/0.344, allocations: 133.4 kB / 1.061 GB, free: 144 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.3441, allocations: 53.69 kB / 1.061 GB, free: 84 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.215e-05/0.3441, allocations: 4 kB / 1.061 GB, free: 80 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002871/0.3444, allocations: 129.1 kB / 1.061 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.3445, allocations: 0 / 1.061 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0005785/0.345, allocations: 209.2 kB / 1.061 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.397e-05/0.3451, allocations: 110.8 kB / 1.061 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006859/0.3458, allocations: 0.5837 MB / 1.062 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.3459, allocations: 33.7 kB / 1.062 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.346, allocations: 204.2 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.657e-05/0.3461, allocations: 23.7 kB / 1.062 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/0.3462, allocations: 77.59 kB / 1.062 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001505/0.3464, allocations: 362.7 kB / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/0.3466, allocations: 100.1 kB / 1.062 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002495/0.3468, allocations: 173.8 kB / 1.063 GB, free: 14 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003306/0.3472, allocations: 182.4 kB / 1.063 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.3472, allocations: 4 kB / 1.063 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006394/0.3478, allocations: 342.9 kB / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.675e-05/0.3479, allocations: 9.547 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.3479, allocations: 4 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.3479, allocations: 0.5 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002026/0.3481, allocations: 47.92 kB / 1.063 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.3481, allocations: 4 kB / 1.063 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002366/0.3484, allocations: 43.81 kB / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.964e-05/0.3484, allocations: 19.98 kB / 1.063 GB, free: 13.34 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.0002144/0.3487, allocations: 199.4 kB / 1.063 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.887e-05/0.3487, allocations: 35.53 kB / 1.063 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.701e-05/0.3488, allocations: 43.36 kB / 1.063 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3488, allocations: 4 kB / 1.063 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.3489, allocations: 0 / 1.063 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.3489, allocations: 0 / 1.063 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000319/0.3492, allocations: 333.3 kB / 1.064 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3492, allocations: 4 kB / 1.064 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.211e-05/0.3492, allocations: 15.92 kB / 1.064 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.3493, allocations: 0 / 1.064 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.3493, allocations: 8 kB / 1.064 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.3493, allocations: 0 / 1.064 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3493, allocations: 0 / 1.064 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003741/0.3497, allocations: 213.3 kB / 1.064 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.3498, allocations: 120.6 kB / 1.064 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.792e-05/0.3499, allocations: 8 kB / 1.064 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.35, allocations: 15.97 kB / 1.064 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.777e-05/0.3501, allocations: 24 kB / 1.064 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.615e-05/0.3501, allocations: 8 kB / 1.064 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004061/0.3505, allocations: 359.1 kB / 1.064 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3505, allocations: 3.938 kB / 1.064 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003433/0.3509, allocations: 71.84 kB / 1.065 GB, free: 11.8 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.001066/0.352, allocations: 425.8 kB / 1.065 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004632/0.3524, allocations: 206.5 kB / 1.065 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3524, allocations: 0 / 1.065 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.3526, allocations: 51.98 kB / 1.065 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005413/0.3531, allocations: 94.69 kB / 1.065 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.3543, allocations: 0.7358 MB / 1.066 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003993/0.3547, allocations: 0.811 MB / 1.067 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.3548, allocations: 31.42 kB / 1.067 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.3548, allocations: 0 / 1.067 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of Templates: time 0.00864/0.3635, allocations: 5.054 MB / 1.072 GB, free: 4.531 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile (rm -f Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches