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.001685/0.001685, allocations: 117.9 kB / 16.37 MB, free: 6.012 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.001833/0.001833, allocations: 190.4 kB / 17.31 MB, free: 5.613 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.318/1.318, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.498/2.498, allocations: 442.6 MB / 0.7165 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001364, allocations: 63.53 kB / 0.8773 GB, free: 11.01 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2643, allocations: 153 MB / 1.027 GB, free: 2.086 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003426/0.2678, allocations: 2.267 MB / 1.029 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001857/0.2697, allocations: 1.275 MB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.2698, allocations: 12 kB / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004291/0.2703, allocations: 163.3 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003218/0.2706, allocations: 171.2 kB / 1.031 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000497/0.2711, allocations: 250.6 kB / 1.031 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003898/0.2715, allocations: 406.9 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.2717, allocations: 109.2 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.2719, allocations: 167.3 kB / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001866/0.2721, allocations: 183.2 kB / 1.032 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.918e-05/0.2721, allocations: 28 kB / 1.032 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001368/0.2723, allocations: 75.97 kB / 1.032 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.2724, allocations: 111.7 kB / 1.032 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.2726, allocations: 162.9 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004443/0.273, allocations: 498.2 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.273, allocations: 0 / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.373e-06/0.273, allocations: 0 / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.273, allocations: 0 / 1.032 GB, free: 12.23 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.0009786/0.274, allocations: 0.7119 MB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.038e-05/0.2741, allocations: 8.031 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.908e-05/0.2741, allocations: 44.38 kB / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005252/0.2747, allocations: 414.2 kB / 1.034 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/0.2747, allocations: 8.375 kB / 1.034 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.917e-05/0.2747, allocations: 19.94 kB / 1.034 GB, free: 10.95 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003046/0.275, allocations: 181.1 kB / 1.034 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.2751, allocations: 0 / 1.034 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.277e-05/0.2751, allocations: 8 kB / 1.034 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.2751, allocations: 4 kB / 1.034 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002006/0.2753, allocations: 91.83 kB / 1.034 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.2764, allocations: 0.7854 MB / 1.035 GB, free: 9.809 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003005/0.2767, allocations: 137.4 kB / 1.035 GB, free: 9.656 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.2768, allocations: 49.7 kB / 1.035 GB, free: 9.602 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.2768, allocations: 3.938 kB / 1.035 GB, free: 9.598 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002293/0.277, allocations: 125.1 kB / 1.035 GB, free: 9.457 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=12): time 1.513e-06/0.2771, allocations: 4 kB / 1.035 GB, free: 9.453 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12): time 0.000485/0.2775, allocations: 221.1 kB / 1.035 GB, free: 9.23 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/0.2776, allocations: 102.8 kB / 1.035 GB, free: 9.105 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005789/0.2782, allocations: 0.5759 MB / 1.036 GB, free: 8.523 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.2782, allocations: 29.7 kB / 1.036 GB, free: 8.488 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.2784, allocations: 208.3 kB / 1.036 GB, free: 8.281 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.996e-05/0.2784, allocations: 27.69 kB / 1.036 GB, free: 8.254 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.2785, allocations: 81.59 kB / 1.036 GB, free: 8.168 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.2786, allocations: 354.7 kB / 1.036 GB, free: 7.812 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/0.2788, allocations: 108 kB / 1.037 GB, free: 7.707 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002152/0.279, allocations: 162.5 kB / 1.037 GB, free: 7.527 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002879/0.2793, allocations: 194.8 kB / 1.037 GB, free: 7.324 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.2794, allocations: 0 / 1.037 GB, free: 7.324 MB / 0.8106 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005219/0.2799, allocations: 336.2 kB / 1.037 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.2799, allocations: 11.94 kB / 1.037 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.2799, allocations: 0 / 1.037 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.2799, allocations: 12.12 kB / 1.037 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001898/0.2801, allocations: 43.97 kB / 1.037 GB, free: 6.926 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.2801, allocations: 3.938 kB / 1.037 GB, free: 6.922 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002043/0.2804, allocations: 51.83 kB / 1.037 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.932e-05/0.2804, allocations: 11.94 kB / 1.037 GB, free: 6.859 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.0001739/0.2806, allocations: 199.4 kB / 1.038 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.063e-05/0.2806, allocations: 39.53 kB / 1.038 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.273e-05/0.2807, allocations: 43.36 kB / 1.038 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.2807, allocations: 4 kB / 1.038 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.2807, allocations: 0 / 1.038 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.2807, allocations: 0 / 1.038 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002689/0.281, allocations: 337.3 kB / 1.038 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.281, allocations: 0 / 1.038 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.678e-05/0.2811, allocations: 8 kB / 1.038 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2811, allocations: 0 / 1.038 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.2811, allocations: 11.98 kB / 1.038 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2811, allocations: 0 / 1.038 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2811, allocations: 4 kB / 1.038 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000331/0.2814, allocations: 209.3 kB / 1.038 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/0.2816, allocations: 116.6 kB / 1.038 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.275e-05/0.2816, allocations: 15.92 kB / 1.038 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.2817, allocations: 15.92 kB / 1.038 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.804e-05/0.2818, allocations: 23.97 kB / 1.038 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.2818, allocations: 8 kB / 1.038 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003529/0.2822, allocations: 363.1 kB / 1.039 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2822, allocations: 0 / 1.039 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003072/0.2825, allocations: 71.84 kB / 1.039 GB, free: 5.32 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.0009318/0.2834, allocations: 419.2 kB / 1.039 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003962/0.2839, allocations: 199.8 kB / 1.039 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2839, allocations: 0 / 1.039 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.284, allocations: 55.92 kB / 1.039 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004662/0.2845, allocations: 103.9 kB / 1.04 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008573/0.2854, allocations: 0.6076 MB / 1.04 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/0.2857, allocations: 0.8067 MB / 1.041 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001531/0.2859, allocations: 59.19 kB / 1.041 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.564e-05/0.286, allocations: 39.42 kB / 1.041 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of SimCode: time 3.8e-07/0.286, allocations: 0 / 1.041 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of Templates: time 0.01032/0.2963, allocations: 4.736 MB / 1.046 GB, free: 14.46 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 -s gbode -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