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.00211/0.00211, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001834/0.001834, allocations: 193.5 kB / 16.14 MB, free: 6.629 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.483/1.483, allocations: 222.9 MB / 239.8 MB, free: 4.621 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.777/2.777, allocations: 437 MB / 0.71 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.001921, allocations: 63.91 kB / 0.8686 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8043/0.8062, allocations: 151.6 MB / 1.017 GB, free: 2.844 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004263/0.8105, allocations: 2.295 MB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00217/0.8127, allocations: 1.271 MB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001761/0.8129, allocations: 7.938 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004811/0.8134, allocations: 151.5 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003262/0.8138, allocations: 151.5 kB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005579/0.8144, allocations: 220.9 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000423/0.8148, allocations: 382.8 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002344/0.815, allocations: 105.2 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00022/0.8153, allocations: 151.3 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002096/0.8155, allocations: 171.2 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.184e-05/0.8155, allocations: 12 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001615/0.8157, allocations: 55.98 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001275/0.8158, allocations: 103.5 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001617/0.816, allocations: 154.9 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005025/0.8165, allocations: 472.4 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.8165, allocations: 0 / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.51e-07/0.8165, allocations: 4 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.081e-06/0.8166, allocations: 4 kB / 1.022 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.001212/0.8178, allocations: 0.7041 MB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.8178, allocations: 15.98 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.971e-05/0.8179, allocations: 44.38 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005945/0.8185, allocations: 410.2 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.8186, allocations: 12.38 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.328e-05/0.8186, allocations: 19.94 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003687/0.819, allocations: 176.1 kB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.819, allocations: 4 kB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.819, allocations: 0 / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.819, allocations: 4 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002346/0.8193, allocations: 87.89 kB / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001225/0.8205, allocations: 0.7932 MB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003509/0.8209, allocations: 141.4 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.821, allocations: 53.64 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.821, allocations: 4 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000271/0.8213, allocations: 133 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.502e-06/0.8213, allocations: 0 / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0005685/0.8219, allocations: 213.1 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.014e-05/0.822, allocations: 110.8 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006832/0.8227, allocations: 0.5759 MB / 1.026 GB, free: 9.43 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.271e-05/0.8227, allocations: 33.7 kB / 1.026 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001662/0.8229, allocations: 196.4 kB / 1.026 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.685e-05/0.8229, allocations: 35.62 kB / 1.026 GB, free: 9.16 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.8231, allocations: 77.59 kB / 1.026 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001844/0.8233, allocations: 358.7 kB / 1.026 GB, free: 8.719 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.8235, allocations: 104 kB / 1.026 GB, free: 8.617 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.8237, allocations: 167.1 kB / 1.027 GB, free: 8.434 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003265/0.8241, allocations: 186.9 kB / 1.027 GB, free: 8.238 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.8241, allocations: 0 / 1.027 GB, free: 8.238 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005994/0.8247, allocations: 346.9 kB / 1.027 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.8247, allocations: 4 kB / 1.027 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.8247, allocations: 0 / 1.027 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.8248, allocations: 4 kB / 1.027 GB, free: 7.887 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002163/0.825, allocations: 52.41 kB / 1.027 GB, free: 7.836 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.825, allocations: 7.938 kB / 1.027 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002162/0.8252, allocations: 39.91 kB / 1.027 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.756e-05/0.8253, allocations: 12 kB / 1.027 GB, free: 7.777 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.0002253/0.8255, allocations: 199.4 kB / 1.027 GB, free: 7.574 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.379e-05/0.8256, allocations: 43.44 kB / 1.027 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.097e-05/0.8257, allocations: 39.38 kB / 1.027 GB, free: 7.492 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.8257, allocations: 112 / 1.027 GB, free: 7.492 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.8257, allocations: 11.94 kB / 1.027 GB, free: 7.48 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.8257, allocations: 0 / 1.027 GB, free: 7.48 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003478/0.826, allocations: 329.4 kB / 1.028 GB, free: 7.109 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.8261, allocations: 0 / 1.028 GB, free: 7.109 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.65e-05/0.8261, allocations: 8 kB / 1.028 GB, free: 7.102 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.8261, allocations: 0 / 1.028 GB, free: 7.102 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.927e-05/0.8261, allocations: 11.98 kB / 1.028 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.8261, allocations: 0 / 1.028 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.8261, allocations: 3.984 kB / 1.028 GB, free: 7.086 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003861/0.8265, allocations: 217.3 kB / 1.028 GB, free: 6.852 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.8267, allocations: 124.6 kB / 1.028 GB, free: 6.711 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.271e-05/0.8267, allocations: 8 kB / 1.028 GB, free: 6.703 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.8269, allocations: 11.98 kB / 1.028 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.14e-05/0.8269, allocations: 19.97 kB / 1.028 GB, free: 6.672 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.827, allocations: 7.984 kB / 1.028 GB, free: 6.664 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004268/0.8274, allocations: 363.1 kB / 1.028 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.984e-06/0.8274, allocations: 0 / 1.028 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003269/0.8277, allocations: 75.83 kB / 1.029 GB, free: 6.238 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.001528/0.8293, allocations: 423.5 kB / 1.029 GB, free: 5.973 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004709/0.8297, allocations: 202.5 kB / 1.029 GB, free: 5.777 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.8298, allocations: 192 / 1.029 GB, free: 5.777 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.8299, allocations: 63.91 kB / 1.029 GB, free: 5.715 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005262/0.8304, allocations: 88.39 kB / 1.029 GB, free: 5.633 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.8315, allocations: 0.6951 MB / 1.03 GB, free: 4.914 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004391/0.832, allocations: 0.8031 MB / 1.031 GB, free: 4.086 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001567/0.8321, allocations: 59.2 kB / 1.031 GB, free: 4.023 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.176e-05/0.8322, allocations: 35.42 kB / 1.031 GB, free: 3.988 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.8322, allocations: 0 / 1.031 GB, free: 3.988 MB / 0.7794 GB Notification: Performance of Templates: time 0.009722/0.842, allocations: 4.46 MB / 1.035 GB, free: 15.57 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=400 -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