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.007584/0.007584, allocations: 101.6 kB / 15.88 MB, free: 6.328 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.001825/0.001825, allocations: 194.4 kB / 16.79 MB, free: 6.254 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.402/1.402, allocations: 222.9 MB / 240.5 MB, free: 4.434 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.701/2.701, allocations: 437 MB / 0.7106 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 59.91 kB / 0.8692 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6087/0.6102, allocations: 151.6 MB / 1.017 GB, free: 2.75 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003934/0.6142, allocations: 2.307 MB / 1.02 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002168/0.6164, allocations: 1.252 MB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002664/0.6167, allocations: 7.938 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005164/0.6173, allocations: 163.5 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004314/0.6177, allocations: 151.5 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006536/0.6184, allocations: 219.4 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005399/0.6189, allocations: 382.8 kB / 1.022 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002454/0.6192, allocations: 105.2 kB / 1.022 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002739/0.6195, allocations: 143.3 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000237/0.6197, allocations: 171.3 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.989e-05/0.6198, allocations: 8 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001961/0.62, allocations: 67.91 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.6201, allocations: 103.6 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001712/0.6203, allocations: 146.9 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004192/0.6207, allocations: 393.1 kB / 1.023 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.6207, allocations: 0 / 1.023 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.162e-06/0.6207, allocations: 0 / 1.023 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.206e-05/0.6208, allocations: 0 / 1.023 GB, free: 13.14 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.001266/0.622, allocations: 0.7079 MB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.6221, allocations: 15.98 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.6222, allocations: 44.38 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005902/0.6228, allocations: 414.1 kB / 1.024 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.6228, allocations: 16.31 kB / 1.024 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.369e-05/0.6229, allocations: 15.94 kB / 1.024 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003519/0.6232, allocations: 180.1 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.6233, allocations: 3.984 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.6233, allocations: 4 kB / 1.024 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.6233, allocations: 4 kB / 1.024 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002173/0.6235, allocations: 91.89 kB / 1.024 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001185/0.6247, allocations: 0.7854 MB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003345/0.6251, allocations: 141.3 kB / 1.025 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.6252, allocations: 49.73 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.68e-05/0.6252, allocations: 0 / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000249/0.6255, allocations: 133 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 2.194e-06/0.6255, allocations: 0 / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0005602/0.6261, allocations: 217.1 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.267e-05/0.6261, allocations: 102.8 kB / 1.026 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006498/0.6268, allocations: 0.5798 MB / 1.026 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.607e-05/0.6268, allocations: 29.81 kB / 1.026 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/0.627, allocations: 204.4 kB / 1.026 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.845e-05/0.627, allocations: 35.55 kB / 1.026 GB, free: 9.152 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.6272, allocations: 77.59 kB / 1.026 GB, free: 9.07 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.6273, allocations: 358.7 kB / 1.027 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.6275, allocations: 107.9 kB / 1.027 GB, free: 8.605 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.6278, allocations: 159.1 kB / 1.027 GB, free: 8.43 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003189/0.6281, allocations: 190.8 kB / 1.027 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.6281, allocations: 0 / 1.027 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005809/0.6287, allocations: 342.3 kB / 1.028 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.6287, allocations: 9.031 kB / 1.028 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.6287, allocations: 4 kB / 1.028 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.6288, allocations: 4 kB / 1.028 GB, free: 7.875 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002041/0.629, allocations: 51.91 kB / 1.028 GB, free: 7.824 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.629, allocations: 0 / 1.028 GB, free: 7.824 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002392/0.6292, allocations: 43.81 kB / 1.028 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.361e-05/0.6293, allocations: 8 kB / 1.028 GB, free: 7.773 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.000214/0.6295, allocations: 200 kB / 1.028 GB, free: 7.57 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.43e-05/0.6296, allocations: 43.42 kB / 1.028 GB, free: 7.527 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.359e-05/0.6297, allocations: 43.36 kB / 1.028 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.6297, allocations: 4 kB / 1.028 GB, free: 7.48 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.6297, allocations: 0 / 1.028 GB, free: 7.48 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.6297, allocations: 0 / 1.028 GB, free: 7.48 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003038/0.63, allocations: 333.4 kB / 1.028 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.63, allocations: 7.938 kB / 1.028 GB, free: 7.098 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.485e-05/0.63, allocations: 4 kB / 1.028 GB, free: 7.094 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.63, allocations: 0 / 1.028 GB, free: 7.094 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/0.6301, allocations: 15.98 kB / 1.028 GB, free: 7.078 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.6301, allocations: 0 / 1.028 GB, free: 7.078 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.6301, allocations: 0 / 1.028 GB, free: 7.078 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003614/0.6305, allocations: 217.3 kB / 1.029 GB, free: 6.844 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.6306, allocations: 124.6 kB / 1.029 GB, free: 6.703 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.603e-05/0.6306, allocations: 8 kB / 1.029 GB, free: 6.695 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.6308, allocations: 15.98 kB / 1.029 GB, free: 6.68 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.767e-05/0.6309, allocations: 23.97 kB / 1.029 GB, free: 6.656 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.112e-05/0.6309, allocations: 7.984 kB / 1.029 GB, free: 6.648 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003926/0.6313, allocations: 359.1 kB / 1.029 GB, free: 6.301 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6313, allocations: 0 / 1.029 GB, free: 6.301 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003231/0.6316, allocations: 67.91 kB / 1.029 GB, free: 6.234 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.001019/0.6326, allocations: 441.9 kB / 1.03 GB, free: 5.953 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004265/0.6331, allocations: 195.8 kB / 1.03 GB, free: 5.762 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.6331, allocations: 0 / 1.03 GB, free: 5.762 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.6333, allocations: 63.91 kB / 1.03 GB, free: 5.699 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005259/0.6338, allocations: 91.5 kB / 1.03 GB, free: 5.617 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.6349, allocations: 0.7244 MB / 1.031 GB, free: 4.863 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.6353, allocations: 0.811 MB / 1.031 GB, free: 4.027 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.666e-05/0.6354, allocations: 31.42 kB / 1.031 GB, free: 3.996 MB / 0.7794 GB Notification: Performance of SimCode: time 2.7e-07/0.6354, allocations: 0 / 1.031 GB, free: 3.996 MB / 0.7794 GB Notification: Performance of Templates: time 0.008794/0.6442, allocations: 5.071 MB / 1.036 GB, free: 14.95 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