Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.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.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.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.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.0007746/0.0007746, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005281/0.005281, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.424/1.424, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.81/2.81, allocations: 462.7 MB / 0.7364 GB, free: 292 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003634/0.0003637, allocations: 10.06 kB / 0.9028 GB, free: 36.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3192, allocations: 159.6 MB / 1.059 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.002574/0.3218, allocations: 1.939 MB / 1.061 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001885/0.3237, allocations: 1.24 MB / 1.062 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.3239, allocations: 7.938 kB / 1.062 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004337/0.3243, allocations: 159.5 kB / 1.062 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003024/0.3246, allocations: 159.4 kB / 1.062 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004866/0.3251, allocations: 214.9 kB / 1.062 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003981/0.3255, allocations: 382.9 kB / 1.063 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002122/0.3258, allocations: 101.2 kB / 1.063 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.326, allocations: 143.2 kB / 1.063 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.3261, allocations: 155.3 kB / 1.063 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.79e-05/0.3262, allocations: 8 kB / 1.063 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.3263, allocations: 59.91 kB / 1.063 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.3264, allocations: 87.66 kB / 1.063 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.3266, allocations: 172.6 kB / 1.063 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004055/0.327, allocations: 466.5 kB / 1.064 GB, free: 200 kB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.327, allocations: 4 kB / 1.064 GB, free: 196 kB / 0.8106 GB Notification: Performance of FrontEnd: time 1.763e-06/0.327, allocations: 0 / 1.064 GB, free: 196 kB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.122e-06/0.327, allocations: 0 / 1.064 GB, free: 196 kB / 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.0009869/0.328, allocations: 0.6538 MB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.3281, allocations: 15.97 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.831e-05/0.3282, allocations: 44.38 kB / 1.065 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004881/0.3286, allocations: 402.4 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.475e-05/0.3287, allocations: 12.38 kB / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.434e-05/0.3287, allocations: 19.88 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003147/0.329, allocations: 176.7 kB / 1.065 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.3291, allocations: 0 / 1.065 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.032e-05/0.3291, allocations: 8 kB / 1.065 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.3291, allocations: 4 kB / 1.065 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001926/0.3293, allocations: 87.89 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001086/0.3304, allocations: 0.8048 MB / 1.066 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003023/0.3307, allocations: 141.4 kB / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.3308, allocations: 49.7 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/0.3309, allocations: 4 kB / 1.066 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002259/0.3311, allocations: 125 kB / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.3311, allocations: 0 / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0005186/0.3316, allocations: 217.1 kB / 1.066 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.598e-05/0.3317, allocations: 102.8 kB / 1.067 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006266/0.3323, allocations: 0.5837 MB / 1.067 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.3324, allocations: 33.7 kB / 1.067 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.3325, allocations: 200.4 kB / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.008e-05/0.3326, allocations: 39.59 kB / 1.067 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.266e-05/0.3326, allocations: 37.7 kB / 1.067 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.3328, allocations: 354.7 kB / 1.068 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.333, allocations: 99.95 kB / 1.068 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.3332, allocations: 178.9 kB / 1.068 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002878/0.3335, allocations: 186.5 kB / 1.068 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.634e-06/0.3335, allocations: 0 / 1.068 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005202/0.334, allocations: 347.3 kB / 1.069 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.3341, allocations: 4 kB / 1.069 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3341, allocations: 4 kB / 1.069 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.3341, allocations: 0 / 1.069 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.3343, allocations: 47.91 kB / 1.069 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.3343, allocations: 4 kB / 1.069 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002244/0.3345, allocations: 51.81 kB / 1.069 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.525e-05/0.3346, allocations: 16 kB / 1.069 GB, free: 10.89 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.0001964/0.3348, allocations: 199.5 kB / 1.069 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.805e-05/0.3348, allocations: 39.47 kB / 1.069 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.835e-05/0.3349, allocations: 39.88 kB / 1.069 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.3349, allocations: 4 kB / 1.069 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.3349, allocations: 7.938 kB / 1.069 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.335, allocations: 0 / 1.069 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002932/0.3353, allocations: 337.3 kB / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3353, allocations: 0 / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.827e-05/0.3353, allocations: 8 kB / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3353, allocations: 0 / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.3353, allocations: 7.984 kB / 1.069 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.3353, allocations: 3.938 kB / 1.069 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3354, allocations: 0 / 1.069 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003434/0.3357, allocations: 213.4 kB / 1.069 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.813e-05/0.3358, allocations: 124.5 kB / 1.07 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.857e-05/0.3359, allocations: 8 kB / 1.07 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/0.336, allocations: 19.97 kB / 1.07 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.234e-05/0.3361, allocations: 23.97 kB / 1.07 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.3361, allocations: 11.94 kB / 1.07 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003711/0.3365, allocations: 363.1 kB / 1.07 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3365, allocations: 0 / 1.07 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003004/0.3368, allocations: 63.94 kB / 1.07 GB, free: 9.348 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.001007/0.3378, allocations: 438.3 kB / 1.071 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003928/0.3382, allocations: 194 kB / 1.071 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3382, allocations: 4.062 kB / 1.071 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.3384, allocations: 59.91 kB / 1.071 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005103/0.3389, allocations: 88.89 kB / 1.071 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009481/0.3398, allocations: 0.7056 MB / 1.072 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003381/0.3402, allocations: 0.807 MB / 1.072 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001378/0.3403, allocations: 58.94 kB / 1.072 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.035e-05/0.3404, allocations: 31.42 kB / 1.072 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.3404, allocations: 0 / 1.072 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of Templates: time 0.008765/0.3492, allocations: 4.386 MB / 1.077 GB, free: 2.738 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile (rm -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches