Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.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.001339/0.001339, 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.001192/0.001192, allocations: 192.5 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.374/1.374, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.847/2.847, allocations: 472.6 MB / 0.7451 GB, free: 4.668 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 66.22 kB / 0.912 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2952/0.2964, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003752/0.3002, allocations: 2.247 MB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001938/0.3022, allocations: 1.267 MB / 1.072 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001601/0.3024, allocations: 4 kB / 1.072 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004248/0.3028, allocations: 183.3 kB / 1.072 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003364/0.3032, allocations: 175.2 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004996/0.3037, allocations: 250.6 kB / 1.072 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003868/0.3041, allocations: 402.9 kB / 1.073 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/0.3043, allocations: 109.2 kB / 1.073 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.3045, allocations: 167.3 kB / 1.073 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001994/0.3047, allocations: 179.3 kB / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.905e-05/0.3047, allocations: 24 kB / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001549/0.3049, allocations: 75.97 kB / 1.073 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001245/0.305, allocations: 115.6 kB / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001472/0.3052, allocations: 162.9 kB / 1.073 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004474/0.3057, allocations: 482.6 kB / 1.074 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.3057, allocations: 0 / 1.074 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.462e-06/0.3057, allocations: 0 / 1.074 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.153e-06/0.3057, allocations: 0 / 1.074 GB, free: 4.609 MB / 0.8262 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.0009924/0.3067, allocations: 0.7157 MB / 1.075 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 2.981e-05/0.3067, allocations: 12.03 kB / 1.075 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.998e-05/0.3068, allocations: 40.47 kB / 1.075 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004798/0.3073, allocations: 410.2 kB / 1.075 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.3073, allocations: 12.38 kB / 1.075 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.866e-05/0.3074, allocations: 15.94 kB / 1.075 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003013/0.3077, allocations: 181.2 kB / 1.075 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.3077, allocations: 0 / 1.075 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.783e-05/0.3077, allocations: 4 kB / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.3077, allocations: 8 kB / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002016/0.3079, allocations: 91.89 kB / 1.075 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009955/0.3089, allocations: 0.7893 MB / 1.076 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003067/0.3092, allocations: 137.4 kB / 1.076 GB, free: 2.035 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.3094, allocations: 49.69 kB / 1.076 GB, free: 1.98 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.3094, allocations: 0 / 1.076 GB, free: 1.98 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.3096, allocations: 129 kB / 1.076 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.252e-06/0.3096, allocations: 4 kB / 1.076 GB, free: 1.832 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0004767/0.3101, allocations: 225 kB / 1.077 GB, free: 1.605 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.116e-05/0.3102, allocations: 102.8 kB / 1.077 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005928/0.3108, allocations: 0.5759 MB / 1.077 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.3108, allocations: 29.7 kB / 1.077 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001424/0.311, allocations: 204.4 kB / 1.077 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.347e-05/0.311, allocations: 31.61 kB / 1.077 GB, free: 0.6289 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.3111, allocations: 77.67 kB / 1.078 GB, free: 0.5469 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.3112, allocations: 354.7 kB / 1.078 GB, free: 196 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.3114, allocations: 108 kB / 1.078 GB, free: 88 kB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002324/0.3117, allocations: 165.8 kB / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003109/0.312, allocations: 195.5 kB / 1.078 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.312, allocations: 0 / 1.078 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005321/0.3125, allocations: 346.6 kB / 1.079 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.3126, allocations: 8 kB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.3126, allocations: 96 / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.3126, allocations: 8 kB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.3128, allocations: 43.92 kB / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.3128, allocations: 3.984 kB / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002068/0.313, allocations: 43.92 kB / 1.079 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.634e-05/0.313, allocations: 11.94 kB / 1.079 GB, free: 15.23 MB / 0.8419 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.0001976/0.3132, allocations: 196 kB / 1.079 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.324e-05/0.3133, allocations: 39.53 kB / 1.079 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.938e-05/0.3134, allocations: 43.36 kB / 1.079 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.3134, allocations: 4.5 kB / 1.079 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.3134, allocations: 0 / 1.079 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3134, allocations: 0 / 1.079 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003294/0.3138, allocations: 337.2 kB / 1.079 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.3138, allocations: 8 kB / 1.079 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.601e-05/0.3138, allocations: 7.938 kB / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.3138, allocations: 4 kB / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/0.3138, allocations: 4 kB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.3139, allocations: 7.984 kB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.3139, allocations: 4 kB / 1.079 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003639/0.3142, allocations: 205.3 kB / 1.08 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.3144, allocations: 116.6 kB / 1.08 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.272e-05/0.3144, allocations: 11.98 kB / 1.08 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.3146, allocations: 15.92 kB / 1.08 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.482e-05/0.3146, allocations: 31.91 kB / 1.08 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/0.3147, allocations: 4 kB / 1.08 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004021/0.3151, allocations: 363.1 kB / 1.08 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.91e-07/0.3151, allocations: 0 / 1.08 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003104/0.3154, allocations: 63.94 kB / 1.08 GB, free: 13.7 MB / 0.8419 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.001072/0.3165, allocations: 426.8 kB / 1.081 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004365/0.3169, allocations: 211.8 kB / 1.081 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.3169, allocations: 0 / 1.081 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001375/0.3171, allocations: 55.92 kB / 1.081 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004911/0.3176, allocations: 100.8 kB / 1.081 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009235/0.3185, allocations: 0.6116 MB / 1.082 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003862/0.3189, allocations: 0.8145 MB / 1.082 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001378/0.319, allocations: 55.19 kB / 1.082 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.64e-05/0.3191, allocations: 35.42 kB / 1.082 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.3191, allocations: 0 / 1.082 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of Templates: time 0.009133/0.3283, allocations: 4.732 MB / 1.087 GB, free: 6.824 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile (rm -f Buildings_3.0.0_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_3.0.0_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_3.0.0_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_3.0.0_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1)