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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001067/0.001068, allocations: 91.53 kB / 16.02 MB, free: 80 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.001212/0.001212, allocations: 179.6 kB / 16.92 MB, free: 6.652 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.422/1.422, allocations: 223.3 MB / 241 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.691/2.691, allocations: 437.8 MB / 0.7128 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003689/0.000369, allocations: 12.19 kB / 0.8735 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6142/0.6146, allocations: 153.8 MB / 1.024 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.002357/0.617, allocations: 1.941 MB / 1.026 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002056/0.6191, allocations: 1.233 MB / 1.027 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.6193, allocations: 7.938 kB / 1.027 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003977/0.6197, allocations: 159.5 kB / 1.027 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002872/0.62, allocations: 151.5 kB / 1.027 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004787/0.6204, allocations: 219.5 kB / 1.027 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003677/0.6208, allocations: 390.7 kB / 1.028 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001954/0.621, allocations: 101.2 kB / 1.028 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.6212, allocations: 135.3 kB / 1.028 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001825/0.6214, allocations: 163.2 kB / 1.028 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.973e-05/0.6214, allocations: 8 kB / 1.028 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001616/0.6216, allocations: 51.97 kB / 1.028 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.6217, allocations: 95.59 kB / 1.028 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.6219, allocations: 168.7 kB / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003671/0.6222, allocations: 389 kB / 1.029 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.6223, allocations: 0 / 1.029 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.934e-06/0.6223, allocations: 4 kB / 1.029 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.6223, allocations: 0 / 1.029 GB, free: 10.7 MB / 0.7794 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.00097/0.6232, allocations: 0.6497 MB / 1.029 GB, free: 10 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.6233, allocations: 15.98 kB / 1.029 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.887e-05/0.6234, allocations: 48.39 kB / 1.029 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005081/0.6239, allocations: 410.2 kB / 1.03 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/0.6239, allocations: 12.38 kB / 1.03 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.254e-05/0.624, allocations: 15.94 kB / 1.03 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003163/0.6243, allocations: 172.2 kB / 1.03 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.6243, allocations: 0 / 1.03 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.96e-05/0.6243, allocations: 11.94 kB / 1.03 GB, free: 9.277 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.689e-06/0.6244, allocations: 4 kB / 1.03 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001895/0.6245, allocations: 91.89 kB / 1.03 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.6256, allocations: 0.797 MB / 1.031 GB, free: 8.328 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.6259, allocations: 133.4 kB / 1.031 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.6261, allocations: 53.69 kB / 1.031 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.6261, allocations: 4 kB / 1.031 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002328/0.6263, allocations: 125 kB / 1.031 GB, free: 7.977 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.383e-06/0.6263, allocations: 0 / 1.031 GB, free: 7.977 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0004943/0.6268, allocations: 221.1 kB / 1.031 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.369e-05/0.6269, allocations: 102.8 kB / 1.032 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005929/0.6275, allocations: 0.5798 MB / 1.032 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/0.6275, allocations: 37.7 kB / 1.032 GB, free: 7 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.6277, allocations: 192.5 kB / 1.032 GB, free: 6.809 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.62e-05/0.6277, allocations: 39.55 kB / 1.032 GB, free: 6.77 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.189e-05/0.6278, allocations: 41.69 kB / 1.032 GB, free: 6.723 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.6279, allocations: 354.7 kB / 1.033 GB, free: 6.367 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.6281, allocations: 99.95 kB / 1.033 GB, free: 6.27 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002195/0.6283, allocations: 171.1 kB / 1.033 GB, free: 6.082 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002935/0.6286, allocations: 186.7 kB / 1.033 GB, free: 5.887 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.6286, allocations: 4 kB / 1.033 GB, free: 5.883 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005363/0.6292, allocations: 345 kB / 1.034 GB, free: 5.539 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.6292, allocations: 10.12 kB / 1.034 GB, free: 5.531 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.6292, allocations: 4 kB / 1.034 GB, free: 5.527 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.6292, allocations: 0 / 1.034 GB, free: 5.527 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.6294, allocations: 48.41 kB / 1.034 GB, free: 5.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.6295, allocations: 4 kB / 1.034 GB, free: 5.477 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002479/0.6297, allocations: 51.91 kB / 1.034 GB, free: 5.426 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.258e-05/0.6298, allocations: 12 kB / 1.034 GB, free: 5.414 MB / 0.7794 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.0001888/0.6299, allocations: 204 kB / 1.034 GB, free: 5.207 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.185e-05/0.63, allocations: 43.42 kB / 1.034 GB, free: 5.164 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.954e-05/0.6301, allocations: 39.38 kB / 1.034 GB, free: 5.125 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.6301, allocations: 4 kB / 1.034 GB, free: 5.121 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.6301, allocations: 0 / 1.034 GB, free: 5.121 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.6301, allocations: 7.938 kB / 1.034 GB, free: 5.113 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002712/0.6304, allocations: 333.4 kB / 1.034 GB, free: 4.738 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.6304, allocations: 0 / 1.034 GB, free: 4.738 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.85e-05/0.6304, allocations: 11.94 kB / 1.034 GB, free: 4.727 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.6304, allocations: 0 / 1.034 GB, free: 4.727 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.679e-05/0.6305, allocations: 7.984 kB / 1.034 GB, free: 4.719 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.6305, allocations: 0 / 1.034 GB, free: 4.719 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.6305, allocations: 0 / 1.034 GB, free: 4.719 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00033/0.6308, allocations: 217.3 kB / 1.034 GB, free: 4.484 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.989e-05/0.6309, allocations: 124.6 kB / 1.035 GB, free: 4.344 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.973e-05/0.631, allocations: 8 kB / 1.035 GB, free: 4.336 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.6311, allocations: 15.98 kB / 1.035 GB, free: 4.32 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.838e-05/0.6312, allocations: 31.89 kB / 1.035 GB, free: 4.289 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.6312, allocations: 4 kB / 1.035 GB, free: 4.285 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003601/0.6316, allocations: 363.1 kB / 1.035 GB, free: 3.934 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6316, allocations: 0 / 1.035 GB, free: 3.934 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003094/0.6319, allocations: 71.89 kB / 1.035 GB, free: 3.863 MB / 0.7794 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.0009404/0.6328, allocations: 422.9 kB / 1.035 GB, free: 3.598 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000401/0.6333, allocations: 203.7 kB / 1.036 GB, free: 3.398 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.6333, allocations: 4.188 kB / 1.036 GB, free: 3.395 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.6334, allocations: 59.97 kB / 1.036 GB, free: 3.336 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005459/0.634, allocations: 94.2 kB / 1.036 GB, free: 3.25 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009838/0.635, allocations: 0.7386 MB / 1.037 GB, free: 2.48 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.6353, allocations: 0.8071 MB / 1.037 GB, free: 1.648 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.884e-05/0.6354, allocations: 35.42 kB / 1.037 GB, free: 1.613 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.6354, allocations: 0 / 1.037 GB, free: 1.613 MB / 0.7794 GB Notification: Performance of Templates: time 0.007708/0.6431, allocations: 5.005 MB / 1.042 GB, free: 12.62 MB / 0.795 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