Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001394/0.001394, allocations: 120.2 kB / 16.37 MB, free: 6.016 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.001352/0.001353, allocations: 193 kB / 17.31 MB, free: 5.613 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.36/1.36, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.444/2.444, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001305, allocations: 60.47 kB / 0.8774 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3235, allocations: 153 MB / 1.027 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003636/0.3272, allocations: 2.261 MB / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002049/0.3293, allocations: 1.275 MB / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.3294, allocations: 11.94 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004615/0.3299, allocations: 171.3 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003465/0.3303, allocations: 167.2 kB / 1.031 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005367/0.3308, allocations: 243.4 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004055/0.3313, allocations: 410.9 kB / 1.031 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002082/0.3315, allocations: 101.3 kB / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/0.3317, allocations: 171.3 kB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001968/0.3319, allocations: 183.2 kB / 1.032 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.089e-05/0.3319, allocations: 28 kB / 1.032 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001476/0.3321, allocations: 71.97 kB / 1.032 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.3322, allocations: 107.7 kB / 1.032 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001473/0.3324, allocations: 167 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000482/0.3329, allocations: 498.2 kB / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3329, allocations: 0 / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.233e-06/0.3329, allocations: 0 / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.975e-06/0.3329, allocations: 0 / 1.032 GB, free: 12.22 MB / 0.8106 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.001042/0.3339, allocations: 0.7119 MB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.334, allocations: 12.03 kB / 1.033 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.831e-05/0.3341, allocations: 48.36 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005661/0.3347, allocations: 410.2 kB / 1.034 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.3347, allocations: 16.31 kB / 1.034 GB, free: 10.95 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.42e-05/0.3347, allocations: 15.94 kB / 1.034 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003599/0.3351, allocations: 181.2 kB / 1.034 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.3351, allocations: 0 / 1.034 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.014e-05/0.3351, allocations: 4 kB / 1.034 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.3352, allocations: 4 kB / 1.034 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002087/0.3354, allocations: 87.89 kB / 1.034 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.3364, allocations: 0.7854 MB / 1.035 GB, free: 9.801 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002953/0.3367, allocations: 137.4 kB / 1.035 GB, free: 9.648 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.977e-05/0.3369, allocations: 49.69 kB / 1.035 GB, free: 9.594 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.3369, allocations: 7.984 kB / 1.035 GB, free: 9.586 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002249/0.3371, allocations: 121.1 kB / 1.035 GB, free: 9.449 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=12): time 1.303e-06/0.3371, allocations: 7.938 kB / 1.035 GB, free: 9.441 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12): time 0.0004857/0.3376, allocations: 209.2 kB / 1.035 GB, free: 9.23 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/0.3377, allocations: 114.7 kB / 1.035 GB, free: 9.094 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005884/0.3383, allocations: 0.5759 MB / 1.036 GB, free: 8.512 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.639e-05/0.3383, allocations: 33.7 kB / 1.036 GB, free: 8.473 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.3385, allocations: 196.3 kB / 1.036 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.175e-05/0.3385, allocations: 35.69 kB / 1.036 GB, free: 8.242 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.3386, allocations: 85.58 kB / 1.036 GB, free: 8.152 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.3388, allocations: 358.7 kB / 1.036 GB, free: 7.793 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.3389, allocations: 99.95 kB / 1.037 GB, free: 7.695 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.3392, allocations: 166.5 kB / 1.037 GB, free: 7.512 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002853/0.3395, allocations: 191.2 kB / 1.037 GB, free: 7.312 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3395, allocations: 0 / 1.037 GB, free: 7.312 MB / 0.8106 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005214/0.34, allocations: 344.5 kB / 1.037 GB, free: 6.973 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.34, allocations: 4 kB / 1.037 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.34, allocations: 0 / 1.037 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.3401, allocations: 8.094 kB / 1.037 GB, free: 6.961 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.3402, allocations: 44.42 kB / 1.037 GB, free: 6.918 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.3403, allocations: 7.984 kB / 1.037 GB, free: 6.91 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002019/0.3405, allocations: 39.83 kB / 1.037 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.499e-05/0.3405, allocations: 19.94 kB / 1.037 GB, free: 6.852 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.0001795/0.3407, allocations: 199.4 kB / 1.038 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.141e-05/0.3408, allocations: 43.53 kB / 1.038 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.591e-05/0.3408, allocations: 43.36 kB / 1.038 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.3408, allocations: 48 / 1.038 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3409, allocations: 7.984 kB / 1.038 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.3409, allocations: 0 / 1.038 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002759/0.3411, allocations: 333.3 kB / 1.038 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.3412, allocations: 0 / 1.038 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.435e-05/0.3412, allocations: 8 kB / 1.038 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.3412, allocations: 0 / 1.038 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.3412, allocations: 7.938 kB / 1.038 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.3412, allocations: 3.984 kB / 1.038 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3412, allocations: 4 kB / 1.038 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003294/0.3416, allocations: 209.4 kB / 1.038 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.3417, allocations: 116.6 kB / 1.038 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.957e-05/0.3417, allocations: 7.984 kB / 1.038 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.3419, allocations: 19.92 kB / 1.038 GB, free: 5.77 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.449e-05/0.3419, allocations: 23.97 kB / 1.038 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.342, allocations: 4 kB / 1.038 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003492/0.3423, allocations: 363.1 kB / 1.039 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3423, allocations: 0 / 1.039 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003057/0.3426, allocations: 75.84 kB / 1.039 GB, free: 5.312 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.0009471/0.3436, allocations: 423.2 kB / 1.039 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004349/0.344, allocations: 201.7 kB / 1.039 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.344, allocations: 3.938 kB / 1.039 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.3442, allocations: 51.98 kB / 1.039 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004697/0.3447, allocations: 99.2 kB / 1.04 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008868/0.3456, allocations: 0.6076 MB / 1.04 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.3459, allocations: 0.8106 MB / 1.041 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001255/0.346, allocations: 63.17 kB / 1.041 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.256e-05/0.3461, allocations: 35.42 kB / 1.041 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of SimCode: time 2.21e-07/0.3461, allocations: 0 / 1.041 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of Templates: time 0.008671/0.3548, allocations: 4.737 MB / 1.046 GB, free: 14.45 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile (rm -f Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches