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.0008078/0.0008077, allocations: 99.42 kB / 16.02 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008951/0.0008951, allocations: 181.8 kB / 16.92 MB, free: 6.918 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.363/1.363, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.643/2.643, allocations: 462.6 MB / 0.7371 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003494/0.0003497, allocations: 8.594 kB / 0.9034 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3304, allocations: 159.6 MB / 1.059 GB, free: 5 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.002585/0.3331, allocations: 1.946 MB / 1.061 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002073/0.3352, allocations: 1.236 MB / 1.062 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001539/0.3353, allocations: 4 kB / 1.062 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005/0.3359, allocations: 167.5 kB / 1.063 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003118/0.3362, allocations: 147.5 kB / 1.063 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000529/0.3367, allocations: 229.1 kB / 1.063 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004278/0.3372, allocations: 378.9 kB / 1.063 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002265/0.3374, allocations: 97.27 kB / 1.063 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001902/0.3376, allocations: 139.3 kB / 1.064 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/0.3378, allocations: 159.3 kB / 1.064 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.639e-05/0.3378, allocations: 8 kB / 1.064 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001486/0.338, allocations: 59.95 kB / 1.064 GB, free: 456 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.3381, allocations: 95.55 kB / 1.064 GB, free: 360 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001601/0.3383, allocations: 172.6 kB / 1.064 GB, free: 180 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004102/0.3387, allocations: 387.4 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3387, allocations: 0 / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.703e-06/0.3387, allocations: 3.844 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.3387, allocations: 0 / 1.064 GB, free: 15.79 MB / 0.8262 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.001026/0.3398, allocations: 0.6498 MB / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.3398, allocations: 15.97 kB / 1.065 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.886e-05/0.3399, allocations: 48.36 kB / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000519/0.3404, allocations: 406.2 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.679e-05/0.3405, allocations: 8.375 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.162e-05/0.3405, allocations: 19.94 kB / 1.066 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003209/0.3408, allocations: 176.1 kB / 1.066 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.3409, allocations: 4 kB / 1.066 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.3409, allocations: 8 kB / 1.066 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.3409, allocations: 4 kB / 1.066 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002004/0.3411, allocations: 83.95 kB / 1.066 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.3422, allocations: 0.8049 MB / 1.067 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003058/0.3426, allocations: 137.4 kB / 1.067 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.3427, allocations: 53.7 kB / 1.067 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.3427, allocations: 0 / 1.067 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002421/0.343, allocations: 129 kB / 1.067 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.122e-06/0.343, allocations: 0 / 1.067 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0005466/0.3435, allocations: 221.1 kB / 1.067 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.378e-05/0.3436, allocations: 106.8 kB / 1.067 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006361/0.3443, allocations: 0.572 MB / 1.068 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.3443, allocations: 33.7 kB / 1.068 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001532/0.3445, allocations: 196.4 kB / 1.068 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.855e-05/0.3445, allocations: 39.69 kB / 1.068 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.165e-05/0.3446, allocations: 41.64 kB / 1.068 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001492/0.3447, allocations: 354.7 kB / 1.068 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.3449, allocations: 112 kB / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002199/0.3452, allocations: 165.8 kB / 1.069 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002975/0.3455, allocations: 195 kB / 1.069 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.3455, allocations: 0 / 1.069 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005166/0.346, allocations: 337 kB / 1.069 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.346, allocations: 4 kB / 1.069 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.346, allocations: 0 / 1.069 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.346, allocations: 4 kB / 1.069 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001888/0.3462, allocations: 47.91 kB / 1.069 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.617e-06/0.3463, allocations: 12.03 kB / 1.069 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002187/0.3465, allocations: 51.72 kB / 1.069 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.892e-05/0.3465, allocations: 8 kB / 1.069 GB, free: 10.5 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.000204/0.3467, allocations: 203.4 kB / 1.069 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.736e-05/0.3468, allocations: 39.53 kB / 1.069 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.579e-05/0.3469, allocations: 39.38 kB / 1.07 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3469, allocations: 0 / 1.07 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.3469, allocations: 7.938 kB / 1.07 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3469, allocations: 0 / 1.07 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002784/0.3472, allocations: 337.3 kB / 1.07 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3472, allocations: 0.5 kB / 1.07 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.508e-05/0.3472, allocations: 8 kB / 1.07 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3472, allocations: 0 / 1.07 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.3473, allocations: 11.98 kB / 1.07 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3473, allocations: 8 kB / 1.07 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3473, allocations: 0 / 1.07 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003338/0.3476, allocations: 213.3 kB / 1.07 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.3477, allocations: 124.5 kB / 1.07 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.759e-05/0.3478, allocations: 8 kB / 1.07 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.3479, allocations: 27.97 kB / 1.07 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.173e-05/0.348, allocations: 15.97 kB / 1.07 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.348, allocations: 12 kB / 1.07 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003712/0.3484, allocations: 351.1 kB / 1.071 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3484, allocations: 0 / 1.071 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002964/0.3487, allocations: 71.92 kB / 1.071 GB, free: 8.949 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.001016/0.3497, allocations: 430.8 kB / 1.071 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003864/0.3501, allocations: 199.7 kB / 1.071 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3501, allocations: 0 / 1.071 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001292/0.3503, allocations: 59.91 kB / 1.071 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005271/0.3508, allocations: 90.3 kB / 1.071 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009511/0.3518, allocations: 0.7386 MB / 1.072 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.3521, allocations: 0.8148 MB / 1.073 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.53e-05/0.3522, allocations: 31.42 kB / 1.073 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.3522, allocations: 0 / 1.073 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of Templates: time 0.007176/0.3594, allocations: 5 MB / 1.078 GB, free: 1.727 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