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.001555/0.001555, allocations: 105.3 kB / 16.41 MB, free: 6.414 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.001622/0.001622, allocations: 191.6 kB / 17.34 MB, free: 5.691 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: 222.9 MB / 241 MB, free: 15.14 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.434/2.434, allocations: 437 MB / 0.7112 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001596, allocations: 64.12 kB / 1.019 GB, free: 9.422 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9234/0.925, allocations: 151.6 MB / 1.167 GB, free: 3.832 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003774/0.9288, allocations: 2.255 MB / 1.17 GB, free: 1.562 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002294/0.9312, allocations: 1.275 MB / 1.171 GB, free: 284 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000284/0.9315, allocations: 7.938 kB / 1.171 GB, free: 276 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0005506/0.9321, allocations: 175.2 kB / 1.171 GB, free: 100 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0005112/0.9326, allocations: 171.2 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006965/0.9333, allocations: 237.7 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0005555/0.9339, allocations: 407 kB / 1.172 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002586/0.9341, allocations: 111 kB / 1.172 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003772/0.9345, allocations: 183.3 kB / 1.172 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002679/0.9348, allocations: 179.3 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 5.8e-05/0.9349, allocations: 27.94 kB / 1.172 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001963/0.9351, allocations: 75.97 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.9352, allocations: 111.6 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001667/0.9354, allocations: 159 kB / 1.173 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0006734/0.9361, allocations: 0.4946 MB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.9361, allocations: 4 kB / 1.173 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.613e-06/0.9361, allocations: 0 / 1.173 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.123e-05/0.9361, allocations: 0 / 1.173 GB, free: 13.97 MB / 0.9044 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.9375, allocations: 0.7232 MB / 1.174 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.9376, allocations: 12.88 kB / 1.174 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001175/0.9377, allocations: 44.66 kB / 1.174 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006113/0.9383, allocations: 422.5 kB / 1.174 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.9384, allocations: 16.31 kB / 1.174 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.698e-05/0.9384, allocations: 19.94 kB / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003633/0.9388, allocations: 180.1 kB / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.9388, allocations: 0 / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.9388, allocations: 8 kB / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.9388, allocations: 4 kB / 1.174 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002102/0.9391, allocations: 91.89 kB / 1.174 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.9402, allocations: 0.7778 MB / 1.175 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003202/0.9406, allocations: 141.4 kB / 1.175 GB, free: 11.37 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.9407, allocations: 49.7 kB / 1.175 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.9407, allocations: 11.92 kB / 1.175 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002466/0.941, allocations: 129 kB / 1.176 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.941, allocations: 0 / 1.176 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12): time 0.0005518/0.9416, allocations: 213.3 kB / 1.176 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.245e-05/0.9416, allocations: 114.8 kB / 1.176 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006492/0.9423, allocations: 0.576 MB / 1.176 GB, free: 10.22 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.393e-05/0.9423, allocations: 33.7 kB / 1.176 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.9425, allocations: 196.5 kB / 1.177 GB, free: 9.988 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.388e-05/0.9425, allocations: 39.72 kB / 1.177 GB, free: 9.949 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.9426, allocations: 77.75 kB / 1.177 GB, free: 9.867 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.9428, allocations: 358.7 kB / 1.177 GB, free: 9.508 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001944/0.943, allocations: 104 kB / 1.177 GB, free: 9.406 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002335/0.9432, allocations: 174.9 kB / 1.177 GB, free: 9.215 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003024/0.9435, allocations: 190.9 kB / 1.178 GB, free: 9.016 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.9435, allocations: 8 kB / 1.178 GB, free: 9.008 MB / 0.9044 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005475/0.9441, allocations: 337.2 kB / 1.178 GB, free: 8.672 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.9441, allocations: 4 kB / 1.178 GB, free: 8.668 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.188e-06/0.9441, allocations: 4 kB / 1.178 GB, free: 8.664 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.9442, allocations: 3.938 kB / 1.178 GB, free: 8.66 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001896/0.9444, allocations: 43.97 kB / 1.178 GB, free: 8.617 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.9444, allocations: 7.938 kB / 1.178 GB, free: 8.609 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002326/0.9446, allocations: 43.95 kB / 1.178 GB, free: 8.566 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.032e-05/0.9446, allocations: 12.05 kB / 1.178 GB, free: 8.555 MB / 0.9044 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.0002049/0.9449, allocations: 199.9 kB / 1.178 GB, free: 8.352 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.391e-05/0.9449, allocations: 43.7 kB / 1.178 GB, free: 8.309 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.341e-05/0.945, allocations: 39.38 kB / 1.178 GB, free: 8.27 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.945, allocations: 4 kB / 1.178 GB, free: 8.266 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.945, allocations: 0 / 1.178 GB, free: 8.266 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.945, allocations: 4 kB / 1.178 GB, free: 8.262 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003051/0.9453, allocations: 337.3 kB / 1.179 GB, free: 7.883 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.9454, allocations: 0 / 1.179 GB, free: 7.883 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.48e-05/0.9454, allocations: 8 kB / 1.179 GB, free: 7.875 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.9454, allocations: 0 / 1.179 GB, free: 7.875 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.216e-05/0.9454, allocations: 7.984 kB / 1.179 GB, free: 7.867 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.9455, allocations: 0 / 1.179 GB, free: 7.867 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.9455, allocations: 0 / 1.179 GB, free: 7.867 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003722/0.9458, allocations: 225.5 kB / 1.179 GB, free: 7.625 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.946, allocations: 120.9 kB / 1.179 GB, free: 7.488 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.445e-05/0.946, allocations: 8 kB / 1.179 GB, free: 7.48 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.9462, allocations: 11.98 kB / 1.179 GB, free: 7.469 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.565e-05/0.9462, allocations: 19.97 kB / 1.179 GB, free: 7.449 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.9463, allocations: 8 kB / 1.179 GB, free: 7.441 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0004138/0.9467, allocations: 359.1 kB / 1.179 GB, free: 7.094 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9467, allocations: 8 kB / 1.179 GB, free: 7.086 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003418/0.947, allocations: 67.89 kB / 1.179 GB, free: 7.02 MB / 0.9044 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.0009892/0.948, allocations: 439.1 kB / 1.18 GB, free: 6.746 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004246/0.9485, allocations: 198.3 kB / 1.18 GB, free: 6.555 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.9485, allocations: 0 / 1.18 GB, free: 6.555 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.000141/0.9486, allocations: 60.11 kB / 1.18 GB, free: 6.496 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000515/0.9492, allocations: 106.2 kB / 1.18 GB, free: 6.402 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009928/0.9502, allocations: 0.6495 MB / 1.181 GB, free: 5.715 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003445/0.9505, allocations: 0.8107 MB / 1.182 GB, free: 4.879 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.335e-05/0.9506, allocations: 35.42 kB / 1.182 GB, free: 4.844 MB / 0.9044 GB Notification: Performance of SimCode: time 2.21e-07/0.9506, allocations: 0 / 1.182 GB, free: 4.844 MB / 0.9044 GB Notification: Performance of Templates: time 0.008279/0.9589, allocations: 5.097 MB / 1.187 GB, free: 15.77 MB / 0.92 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=480 -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