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.001313/0.001313, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001467/0.001467, allocations: 192.4 kB / 16.25 MB, free: 6.621 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.349/1.349, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.774/2.774, allocations: 472.6 MB / 0.7448 GB, free: 4.914 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 73.31 kB / 0.9115 GB, free: 33.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3045, allocations: 159.9 MB / 1.068 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003568/0.3081, allocations: 2.299 MB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001967/0.3101, allocations: 1.243 MB / 1.071 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.3103, allocations: 7.938 kB / 1.071 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004493/0.3108, allocations: 175.4 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003421/0.3111, allocations: 147.5 kB / 1.071 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005067/0.3116, allocations: 219.6 kB / 1.072 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004067/0.3121, allocations: 406.9 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002075/0.3123, allocations: 109.2 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.3125, allocations: 175.2 kB / 1.072 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/0.3127, allocations: 175.3 kB / 1.073 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.941e-05/0.3127, allocations: 24 kB / 1.073 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000153/0.3129, allocations: 83.95 kB / 1.073 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001091/0.313, allocations: 111.6 kB / 1.073 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.3132, allocations: 167 kB / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004549/0.3136, allocations: 482.6 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.3136, allocations: 4 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3136, allocations: 0 / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.193e-06/0.3136, allocations: 0 / 1.073 GB, free: 4.992 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.001053/0.3147, allocations: 0.7139 MB / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.3148, allocations: 12.03 kB / 1.074 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.754e-05/0.3149, allocations: 40.47 kB / 1.074 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005284/0.3154, allocations: 414.2 kB / 1.074 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.087e-05/0.3154, allocations: 12.38 kB / 1.075 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.794e-05/0.3155, allocations: 15.94 kB / 1.075 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003381/0.3158, allocations: 169.7 kB / 1.075 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.3158, allocations: 0 / 1.075 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.34e-05/0.3158, allocations: 11.98 kB / 1.075 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.3159, allocations: 7.938 kB / 1.075 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002175/0.3161, allocations: 83.95 kB / 1.075 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.3172, allocations: 0.7932 MB / 1.076 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003112/0.3175, allocations: 133.4 kB / 1.076 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.3176, allocations: 53.69 kB / 1.076 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.3176, allocations: 0 / 1.076 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002498/0.3179, allocations: 133 kB / 1.076 GB, free: 2.227 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.3179, allocations: 0 / 1.076 GB, free: 2.227 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0005141/0.3184, allocations: 217 kB / 1.076 GB, free: 2.008 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.85e-05/0.3185, allocations: 110.8 kB / 1.076 GB, free: 1.875 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006416/0.3191, allocations: 0.5759 MB / 1.077 GB, free: 1.293 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/0.3192, allocations: 33.7 kB / 1.077 GB, free: 1.254 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.3193, allocations: 200.4 kB / 1.077 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.401e-05/0.3194, allocations: 31.61 kB / 1.077 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.3195, allocations: 77.69 kB / 1.077 GB, free: 0.9414 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3196, allocations: 358.7 kB / 1.077 GB, free: 0.582 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001827/0.3198, allocations: 103.9 kB / 1.078 GB, free: 492 kB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002265/0.3201, allocations: 169.8 kB / 1.078 GB, free: 300 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002956/0.3204, allocations: 187.4 kB / 1.078 GB, free: 100 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.3204, allocations: 4 kB / 1.078 GB, free: 96 kB / 0.8262 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005367/0.3209, allocations: 346.5 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.321, allocations: 4 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.321, allocations: 8.094 kB / 1.078 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.321, allocations: 0 / 1.078 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.3212, allocations: 43.92 kB / 1.078 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.3212, allocations: 4 kB / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002163/0.3214, allocations: 35.92 kB / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.341e-05/0.3215, allocations: 23.92 kB / 1.078 GB, free: 15.63 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.0001877/0.3217, allocations: 195.4 kB / 1.078 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.104e-05/0.3217, allocations: 39.53 kB / 1.079 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.4e-05/0.3218, allocations: 43.36 kB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3218, allocations: 4.047 kB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.3218, allocations: 3.984 kB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.3218, allocations: 0 / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002941/0.3221, allocations: 337.3 kB / 1.079 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3221, allocations: 0 / 1.079 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.64e-05/0.3222, allocations: 11.94 kB / 1.079 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3222, allocations: 0 / 1.079 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.3222, allocations: 4 kB / 1.079 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3222, allocations: 4.5 kB / 1.079 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-06/0.3222, allocations: 0 / 1.079 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003364/0.3226, allocations: 217.3 kB / 1.079 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.086e-05/0.3227, allocations: 120.6 kB / 1.079 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.975e-05/0.3227, allocations: 4 kB / 1.079 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.3228, allocations: 27.91 kB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.836e-05/0.3229, allocations: 23.91 kB / 1.079 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.3229, allocations: 8 kB / 1.079 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003883/0.3233, allocations: 355.1 kB / 1.08 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3233, allocations: 0 / 1.08 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003019/0.3237, allocations: 71.92 kB / 1.08 GB, free: 14.09 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.000983/0.3246, allocations: 429.8 kB / 1.08 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004149/0.3251, allocations: 203.8 kB / 1.08 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.3251, allocations: 0 / 1.08 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001335/0.3252, allocations: 60.05 kB / 1.08 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004901/0.3257, allocations: 91.64 kB / 1.08 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009762/0.3267, allocations: 0.6975 MB / 1.081 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.3271, allocations: 0.8106 MB / 1.082 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001421/0.3272, allocations: 58.92 kB / 1.082 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.1e-05/0.3273, allocations: 35.42 kB / 1.082 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.3274, allocations: 0 / 1.082 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of Templates: time 0.008928/0.3363, allocations: 4.619 MB / 1.087 GB, free: 7.246 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)