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.001461/0.001461, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001656/0.001656, allocations: 191.9 kB / 16.25 MB, free: 6.621 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.347/1.347, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.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.583/2.583, allocations: 437 MB / 0.71 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 55.91 kB / 0.8687 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6679/0.6692, allocations: 151.6 MB / 1.017 GB, free: 2.754 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003755/0.673, allocations: 2.303 MB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002421/0.6755, allocations: 1.256 MB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002305/0.6757, allocations: 4 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0006485/0.6764, allocations: 159.5 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004324/0.6769, allocations: 155.4 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006485/0.6775, allocations: 216.8 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005313/0.6781, allocations: 414.8 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002707/0.6784, allocations: 97.25 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002368/0.6786, allocations: 175.3 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002398/0.6789, allocations: 183.3 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.62e-05/0.6789, allocations: 24 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001985/0.6791, allocations: 83.95 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001398/0.6793, allocations: 107.6 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001826/0.6795, allocations: 174.9 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005941/0.6801, allocations: 492.3 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.6801, allocations: 0 / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.314e-06/0.6801, allocations: 0 / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.275e-06/0.6801, allocations: 0 / 1.022 GB, free: 12.93 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.001316/0.6814, allocations: 0.7118 MB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.6815, allocations: 15.98 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.6816, allocations: 44.38 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005728/0.6822, allocations: 410.2 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.747e-05/0.6822, allocations: 12.36 kB / 1.024 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.279e-05/0.6823, allocations: 19.94 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003659/0.6826, allocations: 172.1 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.6827, allocations: 4 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.557e-05/0.6827, allocations: 7.938 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.6827, allocations: 4 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002105/0.6829, allocations: 91.88 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.6841, allocations: 0.7854 MB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003446/0.6845, allocations: 137.4 kB / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.6846, allocations: 53.69 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.6847, allocations: 7.938 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000269/0.6849, allocations: 125.1 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.934e-06/0.685, allocations: 0 / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0005737/0.6855, allocations: 213.1 kB / 1.025 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.108e-05/0.6856, allocations: 106.8 kB / 1.025 GB, free: 9.797 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007063/0.6864, allocations: 0.5837 MB / 1.026 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.429e-05/0.6864, allocations: 33.7 kB / 1.026 GB, free: 9.168 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.6866, allocations: 192.5 kB / 1.026 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.064e-05/0.6866, allocations: 39.55 kB / 1.026 GB, free: 8.938 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.6868, allocations: 77.59 kB / 1.026 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001699/0.6869, allocations: 358.7 kB / 1.027 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001977/0.6871, allocations: 99.95 kB / 1.027 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002481/0.6874, allocations: 175.1 kB / 1.027 GB, free: 8.207 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003498/0.6878, allocations: 184.1 kB / 1.027 GB, free: 8.016 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.6878, allocations: 0 / 1.027 GB, free: 8.016 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005725/0.6884, allocations: 341.9 kB / 1.027 GB, free: 7.676 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.6884, allocations: 4 kB / 1.027 GB, free: 7.672 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.6884, allocations: 7.922 kB / 1.027 GB, free: 7.664 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.6884, allocations: 4 kB / 1.027 GB, free: 7.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.6886, allocations: 43.98 kB / 1.027 GB, free: 7.617 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.6887, allocations: 7.938 kB / 1.027 GB, free: 7.609 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002102/0.6889, allocations: 39.91 kB / 1.027 GB, free: 7.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.112e-05/0.6889, allocations: 19.98 kB / 1.027 GB, free: 7.551 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.0002289/0.6892, allocations: 192 kB / 1.028 GB, free: 7.355 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.414e-05/0.6892, allocations: 47.42 kB / 1.028 GB, free: 7.309 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.492e-05/0.6893, allocations: 43.47 kB / 1.028 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.6893, allocations: 3.938 kB / 1.028 GB, free: 7.262 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-05/0.6894, allocations: 4 kB / 1.028 GB, free: 7.258 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.6894, allocations: 0 / 1.028 GB, free: 7.258 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003511/0.6897, allocations: 329.4 kB / 1.028 GB, free: 6.887 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.6897, allocations: 4.5 kB / 1.028 GB, free: 6.883 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.851e-05/0.6898, allocations: 11.98 kB / 1.028 GB, free: 6.871 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.6898, allocations: 0 / 1.028 GB, free: 6.871 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.6898, allocations: 8 kB / 1.028 GB, free: 6.863 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.6898, allocations: 3.938 kB / 1.028 GB, free: 6.859 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.6898, allocations: 0 / 1.028 GB, free: 6.859 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003626/0.6902, allocations: 217.3 kB / 1.028 GB, free: 6.625 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.6903, allocations: 124.6 kB / 1.028 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.011e-05/0.6904, allocations: 0 / 1.028 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.6905, allocations: 23.97 kB / 1.028 GB, free: 6.461 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.566e-05/0.6906, allocations: 19.97 kB / 1.028 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.6906, allocations: 4 kB / 1.028 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003981/0.691, allocations: 359.1 kB / 1.029 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.691, allocations: 3.938 kB / 1.029 GB, free: 6.086 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003334/0.6914, allocations: 71.89 kB / 1.029 GB, free: 6.016 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.001189/0.6926, allocations: 426.8 kB / 1.029 GB, free: 5.75 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004796/0.693, allocations: 207.7 kB / 1.029 GB, free: 5.547 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.768e-06/0.6931, allocations: 0 / 1.029 GB, free: 5.547 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001647/0.6932, allocations: 59.91 kB / 1.029 GB, free: 5.488 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005667/0.6938, allocations: 104.1 kB / 1.03 GB, free: 5.398 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.695, allocations: 0.6973 MB / 1.03 GB, free: 4.676 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004199/0.6954, allocations: 0.8106 MB / 1.031 GB, free: 3.84 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001737/0.6956, allocations: 59.17 kB / 1.031 GB, free: 3.777 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.486e-05/0.6957, allocations: 39.36 kB / 1.031 GB, free: 3.738 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.6957, allocations: 0 / 1.031 GB, free: 3.738 MB / 0.7794 GB Notification: Performance of Templates: time 0.00905/0.7048, allocations: 4.614 MB / 1.036 GB, free: 15.17 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/jenkins/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