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.001884/0.001884, allocations: 108 kB / 15.6 MB, free: 132 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.002225/0.002225, allocations: 193.3 kB / 16.53 MB, free: 6.391 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.494/1.494, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.797/2.797, allocations: 437 MB / 0.7104 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 59.91 kB / 0.8692 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7132/0.7152, allocations: 151.6 MB / 1.017 GB, free: 2.461 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004685/0.7199, allocations: 2.25 MB / 1.02 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002499/0.7225, allocations: 1.279 MB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001959/0.7227, allocations: 7.938 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005525/0.7233, allocations: 171.2 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004175/0.7237, allocations: 179.2 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006399/0.7243, allocations: 235.3 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004942/0.7248, allocations: 410.8 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002572/0.7251, allocations: 97.27 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002475/0.7254, allocations: 175.3 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002379/0.7256, allocations: 179.3 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.188e-05/0.7257, allocations: 24 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002069/0.7259, allocations: 79.91 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001423/0.726, allocations: 107.7 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001926/0.7262, allocations: 166.9 kB / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005762/0.7268, allocations: 488.3 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.7268, allocations: 0 / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.633e-06/0.7268, allocations: 0 / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.965e-06/0.7269, allocations: 0 / 1.023 GB, free: 12.63 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.001301/0.7282, allocations: 0.704 MB / 1.024 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.7282, allocations: 11.98 kB / 1.024 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.7283, allocations: 56.3 kB / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006264/0.729, allocations: 414.2 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.729, allocations: 8.375 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.052e-05/0.7291, allocations: 19.94 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003748/0.7294, allocations: 176.6 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.7295, allocations: 0 / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.445e-05/0.7295, allocations: 8 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.7295, allocations: 4 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002249/0.7297, allocations: 91.89 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00127/0.731, allocations: 0.7854 MB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003588/0.7314, allocations: 137.4 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.7315, allocations: 49.7 kB / 1.025 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.991e-05/0.7316, allocations: 8 kB / 1.025 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002687/0.7318, allocations: 121 kB / 1.025 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.7318, allocations: 0 / 1.025 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0006862/0.7325, allocations: 225.1 kB / 1.026 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.149e-05/0.7326, allocations: 106.8 kB / 1.026 GB, free: 9.496 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008025/0.7334, allocations: 0.5759 MB / 1.026 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.7335, allocations: 33.7 kB / 1.026 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/0.7337, allocations: 192.4 kB / 1.027 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.409e-05/0.7337, allocations: 39.53 kB / 1.027 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.7338, allocations: 73.59 kB / 1.027 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001844/0.734, allocations: 362.7 kB / 1.027 GB, free: 8.203 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.7342, allocations: 107.9 kB / 1.027 GB, free: 8.098 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002681/0.7345, allocations: 171.1 kB / 1.027 GB, free: 7.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003352/0.7349, allocations: 187.3 kB / 1.027 GB, free: 7.715 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.7349, allocations: 0.5 kB / 1.027 GB, free: 7.715 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006284/0.7355, allocations: 346.7 kB / 1.028 GB, free: 7.371 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.7355, allocations: 4 kB / 1.028 GB, free: 7.367 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.7356, allocations: 0 / 1.028 GB, free: 7.367 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.7356, allocations: 4.094 kB / 1.028 GB, free: 7.363 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002186/0.7358, allocations: 59.91 kB / 1.028 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.7358, allocations: 4 kB / 1.028 GB, free: 7.301 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002327/0.7361, allocations: 35.81 kB / 1.028 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.469e-05/0.7361, allocations: 11.98 kB / 1.028 GB, free: 7.254 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.0002297/0.7363, allocations: 195.4 kB / 1.028 GB, free: 7.055 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.863e-05/0.7364, allocations: 43.44 kB / 1.028 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.296e-05/0.7365, allocations: 47.36 kB / 1.028 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.7365, allocations: 112 / 1.028 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/0.7365, allocations: 3.938 kB / 1.028 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.7366, allocations: 8.031 kB / 1.028 GB, free: 6.953 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003526/0.7369, allocations: 329.4 kB / 1.029 GB, free: 6.582 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.7369, allocations: 0 / 1.029 GB, free: 6.582 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.612e-05/0.737, allocations: 8 kB / 1.029 GB, free: 6.574 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.737, allocations: 0 / 1.029 GB, free: 6.574 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.737, allocations: 7.984 kB / 1.029 GB, free: 6.566 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.737, allocations: 4 kB / 1.029 GB, free: 6.562 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.737, allocations: 3.938 kB / 1.029 GB, free: 6.559 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003799/0.7374, allocations: 209.4 kB / 1.029 GB, free: 6.332 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.7375, allocations: 116.6 kB / 1.029 GB, free: 6.199 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.354e-05/0.7376, allocations: 11.98 kB / 1.029 GB, free: 6.188 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.7377, allocations: 15.98 kB / 1.029 GB, free: 6.172 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.787e-05/0.7378, allocations: 23.97 kB / 1.029 GB, free: 6.148 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.7378, allocations: 8 kB / 1.029 GB, free: 6.141 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004307/0.7383, allocations: 359.1 kB / 1.029 GB, free: 5.797 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.829e-06/0.7383, allocations: 0 / 1.029 GB, free: 5.797 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000325/0.7386, allocations: 71.84 kB / 1.029 GB, free: 5.727 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.001605/0.7402, allocations: 437.7 kB / 1.03 GB, free: 5.449 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004931/0.7407, allocations: 210.3 kB / 1.03 GB, free: 5.246 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.7407, allocations: 0 / 1.03 GB, free: 5.246 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001421/0.7409, allocations: 51.98 kB / 1.03 GB, free: 5.195 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005275/0.7414, allocations: 99.78 kB / 1.03 GB, free: 5.109 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.7425, allocations: 0.6193 MB / 1.031 GB, free: 4.465 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004888/0.743, allocations: 0.8145 MB / 1.031 GB, free: 3.621 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.000177/0.7432, allocations: 59.17 kB / 1.032 GB, free: 3.559 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.31e-05/0.7433, allocations: 39.42 kB / 1.032 GB, free: 3.52 MB / 0.7794 GB Notification: Performance of SimCode: time 5.21e-07/0.7433, allocations: 3.938 kB / 1.032 GB, free: 3.516 MB / 0.7794 GB Notification: Performance of Templates: time 0.01061/0.7539, allocations: 4.735 MB / 1.036 GB, free: 14.83 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