Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.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.Templates.Plants.Controls.Utilities.Validation.CountTrue,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008594/0.0008593, allocations: 90.44 kB / 15.36 MB, free: 0.7383 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.006822/0.006822, allocations: 172.5 kB / 16.26 MB, free: 6.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.448/1.448, allocations: 223.3 MB / 240.3 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.875/2.875, allocations: 473.4 MB / 0.7469 GB, free: 6.109 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005305/0.0005306, allocations: 11.84 kB / 0.9158 GB, free: 33.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3598/0.3604, allocations: 162.2 MB / 1.074 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.001238/0.3617, allocations: 0.5695 MB / 1.075 GB, free: 7 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002768/0.362, allocations: 83.64 kB / 1.075 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.339e-05/0.3621, allocations: 4 kB / 1.075 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.3622, allocations: 15.84 kB / 1.075 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.3623, allocations: 15.94 kB / 1.075 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 7.769e-05/0.3624, allocations: 31.98 kB / 1.075 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002589/0.3627, allocations: 235.5 kB / 1.075 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003778/0.363, allocations: 278.3 kB / 1.075 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.562e-05/0.3631, allocations: 71.53 kB / 1.075 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.3633, allocations: 95.36 kB / 1.075 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.517e-05/0.3633, allocations: 8 kB / 1.075 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.865e-05/0.3633, allocations: 4 kB / 1.076 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.52e-05/0.3634, allocations: 47.73 kB / 1.076 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001357/0.3635, allocations: 132.8 kB / 1.076 GB, free: 5.984 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003762/0.3639, allocations: 410.4 kB / 1.076 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3639, allocations: 0 / 1.076 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.544e-06/0.3639, allocations: 0 / 1.076 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.555e-05/0.364, allocations: 0 / 1.076 GB, free: 5.582 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0007285/0.3647, allocations: 0.5188 MB / 1.077 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3647, allocations: 16.03 kB / 1.077 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.3648, allocations: 40.41 kB / 1.077 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004281/0.3653, allocations: 336 kB / 1.077 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.151e-05/0.3654, allocations: 37.02 kB / 1.077 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.119e-05/0.3654, allocations: 32.38 kB / 1.077 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006982/0.3661, allocations: 400 kB / 1.077 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.3662, allocations: 192 / 1.077 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.642e-05/0.3662, allocations: 23.88 kB / 1.077 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.3662, allocations: 15.98 kB / 1.077 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000523/0.3667, allocations: 295.8 kB / 1.078 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.3684, allocations: 1.057 MB / 1.079 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001635/0.3686, allocations: 93.16 kB / 1.079 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.4e-05/0.3687, allocations: 45.78 kB / 1.079 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.3687, allocations: 0 / 1.079 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.3687, allocations: 38.56 kB / 1.079 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.022e-06/0.3687, allocations: 0 / 1.079 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.000366/0.3691, allocations: 169.5 kB / 1.079 GB, free: 2.297 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.633e-05/0.3692, allocations: 81.05 kB / 1.079 GB, free: 2.199 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005749/0.3698, allocations: 0.5091 MB / 1.08 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.3698, allocations: 29.7 kB / 1.08 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.3699, allocations: 203.4 kB / 1.08 GB, free: 1.449 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.584e-05/0.37, allocations: 19.86 kB / 1.08 GB, free: 1.43 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.812e-05/0.37, allocations: 37.69 kB / 1.08 GB, free: 1.387 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.3702, allocations: 342.8 kB / 1.08 GB, free: 1.043 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.3703, allocations: 71.94 kB / 1.08 GB, free: 0.9727 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.3704, allocations: 85.62 kB / 1.08 GB, free: 0.8828 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001591/0.3706, allocations: 117.6 kB / 1.081 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3706, allocations: 0 / 1.081 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002973/0.3709, allocations: 205.1 kB / 1.081 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.3709, allocations: 9.406 kB / 1.081 GB, free: 0.5469 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.3709, allocations: 4 kB / 1.081 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.3709, allocations: 0 / 1.081 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.3711, allocations: 35.92 kB / 1.081 GB, free: 0.5078 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.3711, allocations: 0 / 1.081 GB, free: 0.5078 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.626e-05/0.3712, allocations: 39.47 kB / 1.081 GB, free: 480 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/0.3712, allocations: 11.98 kB / 1.081 GB, free: 468 kB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (couTru.booToInt[1].y,couTru.booToInt[2].y,couTru.booToInt[3].y,couTru.booToInt[4].y,couTru.booToInt[5].y,couTru.booToInt[6].y,couTru.intEqu.y,couTru.mulMin.y,couTru.y,couTruAllFal.booToInt[1].y,couTruAllFal.booToInt[2].y,couTruAllFal.booToInt[3].y,couTruAllFal.booToInt[4].y,couTruAllFal.booToInt[5].y,couTruAllFal.booToInt[6].y,couTruAllFal.intEqu.y,couTruAllFal.mulMin.y,couTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.0002309/0.3715, allocations: 199.5 kB / 1.081 GB, free: 256 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.256e-05/0.3716, allocations: 31.53 kB / 1.081 GB, free: 224 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002807/0.3718, allocations: 114 kB / 1.081 GB, free: 96 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.3719, allocations: 7.938 kB / 1.081 GB, free: 88 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.3719, allocations: 0 / 1.081 GB, free: 88 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3719, allocations: 7.922 kB / 1.081 GB, free: 80 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006864/0.3726, allocations: 0.6604 MB / 1.082 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.3726, allocations: 0 / 1.082 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.542e-05/0.3726, allocations: 4 kB / 1.082 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.3726, allocations: 0 / 1.082 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.3726, allocations: 0 / 1.082 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.3726, allocations: 4 kB / 1.082 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.3727, allocations: 3.984 kB / 1.082 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001999/0.3729, allocations: 139.3 kB / 1.082 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.373, allocations: 120.6 kB / 1.082 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.11e-05/0.373, allocations: 4 kB / 1.082 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.516e-05/0.3731, allocations: 8 kB / 1.082 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.703e-05/0.3731, allocations: 8.188 kB / 1.082 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.3731, allocations: 4 kB / 1.082 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004305/0.3736, allocations: 391 kB / 1.082 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3736, allocations: 0 / 1.082 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002643/0.3738, allocations: 39.94 kB / 1.082 GB, free: 14.59 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (couTru.y,couTru.intEqu.y,couTruAllFal.y,couTruAllFal.intEqu.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0001724/0.374, allocations: 103.2 kB / 1.083 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002055/0.3742, allocations: 103.8 kB / 1.083 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3742, allocations: 4 kB / 1.083 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.909e-05/0.3743, allocations: 19.98 kB / 1.083 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.3746, allocations: 33.5 kB / 1.083 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008095/0.3754, allocations: 0.5784 MB / 1.083 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.3758, allocations: 0.795 MB / 1.084 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001198/0.376, allocations: 54.94 kB / 1.084 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.24e-05/0.376, allocations: 27.38 kB / 1.084 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of SimCode: time 2.11e-07/0.376, allocations: 0 / 1.084 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of Templates: time 0.0051/0.3811, allocations: 1.861 MB / 1.086 GB, free: 10.95 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.makefile (rm -f Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe ; mkfifo Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe >> ../files/Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.sim & ./Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe 2>&1)