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.001689/0.001688, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001713/0.001713, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.357/1.357, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.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.444/2.444, allocations: 437 MB / 0.711 GB, free: 4.539 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001478, allocations: 64.41 kB / 0.8699 GB, free: 2.207 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3015, allocations: 151.6 MB / 1.018 GB, free: 10.67 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004689/0.3063, allocations: 2.261 MB / 1.02 GB, free: 8.391 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002553/0.3089, allocations: 1.279 MB / 1.021 GB, free: 7.102 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003347/0.3092, allocations: 4 kB / 1.021 GB, free: 7.098 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0005471/0.3099, allocations: 171.3 kB / 1.022 GB, free: 6.93 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0005246/0.3104, allocations: 163.2 kB / 1.022 GB, free: 6.77 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007456/0.3112, allocations: 260.9 kB / 1.022 GB, free: 6.52 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0005788/0.3118, allocations: 410.8 kB / 1.022 GB, free: 6.117 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002699/0.312, allocations: 101.2 kB / 1.022 GB, free: 6.016 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003462/0.3124, allocations: 171.3 kB / 1.023 GB, free: 5.848 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002846/0.3127, allocations: 187.3 kB / 1.023 GB, free: 5.664 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.687e-05/0.3128, allocations: 24 kB / 1.023 GB, free: 5.641 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002288/0.313, allocations: 71.98 kB / 1.023 GB, free: 5.57 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.3132, allocations: 111.6 kB / 1.023 GB, free: 5.461 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001977/0.3134, allocations: 166.9 kB / 1.023 GB, free: 5.297 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006922/0.3141, allocations: 494.6 kB / 1.024 GB, free: 4.812 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3141, allocations: 0 / 1.024 GB, free: 4.812 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.163e-06/0.3141, allocations: 0 / 1.024 GB, free: 4.812 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.326e-05/0.3141, allocations: 0 / 1.024 GB, free: 4.812 MB / 0.795 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.001461/0.3156, allocations: 0.7079 MB / 1.024 GB, free: 4.055 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.3156, allocations: 12.88 kB / 1.024 GB, free: 4.043 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/0.3158, allocations: 48.36 kB / 1.024 GB, free: 3.996 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006948/0.3165, allocations: 406.2 kB / 1.025 GB, free: 3.559 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.715e-05/0.3165, allocations: 12.38 kB / 1.025 GB, free: 3.547 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.198e-05/0.3166, allocations: 15.94 kB / 1.025 GB, free: 3.531 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003862/0.3169, allocations: 185.2 kB / 1.025 GB, free: 3.336 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.317, allocations: 0 / 1.025 GB, free: 3.336 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.576e-05/0.317, allocations: 4 kB / 1.025 GB, free: 3.332 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.317, allocations: 4 kB / 1.025 GB, free: 3.328 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002299/0.3173, allocations: 87.89 kB / 1.025 GB, free: 3.242 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.3187, allocations: 0.7932 MB / 1.026 GB, free: 2.391 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003706/0.3191, allocations: 133.4 kB / 1.026 GB, free: 2.242 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.3192, allocations: 53.69 kB / 1.026 GB, free: 2.184 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-05/0.3192, allocations: 0 / 1.026 GB, free: 2.184 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002933/0.3195, allocations: 129 kB / 1.026 GB, free: 2.039 MB / 0.795 GB Notification: Performance of pre-optimization done (n=12): time 2.114e-06/0.3196, allocations: 0 / 1.026 GB, free: 2.039 MB / 0.795 GB Notification: Performance of matching and sorting (n=12): time 0.0006128/0.3202, allocations: 213.6 kB / 1.026 GB, free: 1.824 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.206e-05/0.3203, allocations: 114.8 kB / 1.026 GB, free: 1.688 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000766/0.321, allocations: 0.572 MB / 1.027 GB, free: 1.109 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.414e-05/0.3211, allocations: 37.7 kB / 1.027 GB, free: 1.066 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001662/0.3213, allocations: 204.3 kB / 1.027 GB, free: 0.8633 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.161e-05/0.3213, allocations: 27.7 kB / 1.027 GB, free: 0.8359 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.3214, allocations: 81.58 kB / 1.027 GB, free: 0.75 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001441/0.3216, allocations: 354.7 kB / 1.028 GB, free: 404 kB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.3218, allocations: 104 kB / 1.028 GB, free: 300 kB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002321/0.322, allocations: 167.1 kB / 1.028 GB, free: 112 kB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003416/0.3224, allocations: 185.8 kB / 1.028 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.3224, allocations: 8.062 kB / 1.028 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005869/0.323, allocations: 343.1 kB / 1.028 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.323, allocations: 7.938 kB / 1.028 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.3231, allocations: 7.984 kB / 1.028 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.3231, allocations: 0 / 1.028 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001976/0.3233, allocations: 43.92 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.3233, allocations: 7.984 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002336/0.3235, allocations: 43.72 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.832e-05/0.3236, allocations: 16.2 kB / 1.029 GB, free: 15.44 MB / 0.8106 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.0001996/0.3238, allocations: 203.4 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.235e-05/0.3239, allocations: 35.53 kB / 1.029 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.826e-05/0.3239, allocations: 43.36 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.324, allocations: 4 kB / 1.029 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.324, allocations: 0 / 1.029 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.324, allocations: 0 / 1.029 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002928/0.3243, allocations: 337.3 kB / 1.029 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3243, allocations: 4 kB / 1.029 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.926e-05/0.3243, allocations: 11.94 kB / 1.029 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3243, allocations: 0 / 1.029 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.3244, allocations: 7.984 kB / 1.029 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.3244, allocations: 0 / 1.029 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3244, allocations: 0 / 1.029 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000355/0.3247, allocations: 209.4 kB / 1.029 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.3248, allocations: 120.6 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.795e-05/0.3249, allocations: 11.98 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.3251, allocations: 11.98 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.705e-05/0.3251, allocations: 23.91 kB / 1.03 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.3251, allocations: 8 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003777/0.3255, allocations: 359.1 kB / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.753e-06/0.3255, allocations: 4 kB / 1.03 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003387/0.3259, allocations: 75.78 kB / 1.03 GB, free: 13.91 MB / 0.8106 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.001018/0.3269, allocations: 422.2 kB / 1.03 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004632/0.3274, allocations: 195.8 kB / 1.031 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.3274, allocations: 4 kB / 1.031 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001465/0.3276, allocations: 59.91 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005239/0.3281, allocations: 114.9 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.3291, allocations: 0.6503 MB / 1.031 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.3295, allocations: 0.8106 MB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.153e-05/0.3296, allocations: 35.42 kB / 1.032 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.3296, allocations: 3.938 kB / 1.032 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of Templates: time 0.008642/0.3382, allocations: 5.059 MB / 1.037 GB, free: 6.699 MB / 0.8106 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