Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001296/0.001296, allocations: 196 kB / 16.14 MB, free: 6.688 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.682/1.682, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.91/2.91, allocations: 472.6 MB / 0.7447 GB, free: 5.039 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 62.06 kB / 0.9114 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.2961, allocations: 159.9 MB / 1.068 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002594/0.2987, allocations: 1.586 MB / 1.069 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007428/0.2995, allocations: 462.8 kB / 1.07 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.746e-05/0.2996, allocations: 0 / 1.07 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.735e-05/0.2997, allocations: 7.922 kB / 1.07 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.692e-05/0.2997, allocations: 3.938 kB / 1.07 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001984/0.2999, allocations: 31.91 kB / 1.07 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001174/0.3, allocations: 71.83 kB / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.3002, allocations: 24.16 kB / 1.07 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001226/0.3003, allocations: 39.8 kB / 1.07 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.097e-05/0.3004, allocations: 31.88 kB / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.839e-05/0.3004, allocations: 4 kB / 1.07 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.841e-05/0.3004, allocations: 7.938 kB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.927e-05/0.3005, allocations: 15.98 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.795e-05/0.3006, allocations: 31.8 kB / 1.07 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001147/0.3007, allocations: 68.06 kB / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.3007, allocations: 0 / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.71e-07/0.3007, allocations: 0 / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.3007, allocations: 0 / 1.07 GB, free: 8.539 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008258/0.3015, allocations: 446.5 kB / 1.07 GB, free: 8.043 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.3016, allocations: 12.03 kB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.831e-05/0.3017, allocations: 12.84 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002488/0.3019, allocations: 188.2 kB / 1.07 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.3019, allocations: 8.312 kB / 1.07 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.357e-05/0.302, allocations: 4.375 kB / 1.07 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003316/0.3023, allocations: 97.75 kB / 1.071 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.3023, allocations: 0 / 1.071 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.947e-05/0.3024, allocations: 4 kB / 1.071 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.3024, allocations: 0 / 1.071 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003019/0.3027, allocations: 79.92 kB / 1.071 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006482/0.3033, allocations: 332.6 kB / 1.071 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003071/0.3037, allocations: 90.39 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001873/0.3039, allocations: 56.94 kB / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.3039, allocations: 0 / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003731/0.3043, allocations: 103.4 kB / 1.071 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.3043, allocations: 0 / 1.071 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0006775/0.305, allocations: 211.2 kB / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.823e-05/0.3051, allocations: 85.11 kB / 1.071 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.3052, allocations: 130.1 kB / 1.072 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.3052, allocations: 25.7 kB / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.125e-05/0.3053, allocations: 100.1 kB / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.645e-05/0.3054, allocations: 19.72 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.983e-05/0.3054, allocations: 33.64 kB / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.3056, allocations: 326.8 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001882/0.3058, allocations: 47.97 kB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001742/0.3059, allocations: 47.95 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003384/0.3063, allocations: 169.9 kB / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3063, allocations: 0 / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000458/0.3068, allocations: 212.9 kB / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.903e-05/0.3068, allocations: 59.39 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.3068, allocations: 3.984 kB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.3069, allocations: 288 / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.307, allocations: 15.98 kB / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.307, allocations: 320 / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001347/0.3071, allocations: 31.86 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/0.3072, allocations: 7.938 kB / 1.073 GB, free: 5.34 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (act1.count,$PRE.act1.count,act1.T_start,$PRE.act1.T_start,reqCou.nInc,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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.0001188/0.3073, allocations: 149.2 kB / 1.073 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.063e-05/0.3073, allocations: 7.906 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.17e-05/0.3074, allocations: 12.72 kB / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3074, allocations: 0 / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.3074, allocations: 0 / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3074, allocations: 3.984 kB / 1.073 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005546/0.3079, allocations: 436.2 kB / 1.073 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.308, allocations: 3.984 kB / 1.073 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.835e-05/0.3081, allocations: 19.92 kB / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3081, allocations: 0 / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.3081, allocations: 4 kB / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.3081, allocations: 7.875 kB / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3081, allocations: 0 / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004251/0.3085, allocations: 269.1 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.797e-05/0.3086, allocations: 85.02 kB / 1.074 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.677e-05/0.3086, allocations: 4 kB / 1.074 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00015/0.3088, allocations: 19.91 kB / 1.074 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.551e-05/0.3089, allocations: 19.98 kB / 1.074 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.3089, allocations: 7.984 kB / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.819e-05/0.309, allocations: 101.8 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.309, allocations: 0 / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002432/0.3092, allocations: 24 kB / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,reqCou.nInc,act1.T_start,act1.count) * Number of discrete states: 2 (act1.count,reqCou.nInc) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.0001033/0.3093, allocations: 99.19 kB / 1.074 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004478/0.3098, allocations: 226.7 kB / 1.074 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3098, allocations: 0 / 1.074 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002244/0.31, allocations: 107.3 kB / 1.074 GB, free: 3.602 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.3103, allocations: 14.81 kB / 1.074 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004868/0.3108, allocations: 220.9 kB / 1.074 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.3111, allocations: 0.6926 MB / 1.075 GB, free: 2.633 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.36e-05/0.3112, allocations: 15.77 kB / 1.075 GB, free: 2.617 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.977e-05/0.3112, allocations: 11.42 kB / 1.075 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of SimCode: time 1.683e-06/0.3112, allocations: 4 kB / 1.075 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of Templates: time 0.004069/0.3153, allocations: 1.156 MB / 1.076 GB, free: 1.465 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)