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.001197/0.001197, allocations: 108 kB / 15.61 MB, free: 152 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.001396/0.001396, allocations: 195 kB / 16.53 MB, free: 6.664 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.383/1.383, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.819/2.819, allocations: 472.6 MB / 0.7451 GB, free: 4.672 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 62.06 kB / 0.912 GB, free: 33.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3041, allocations: 159.9 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002667/0.3069, allocations: 1.51 MB / 1.07 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007643/0.3076, allocations: 462.7 kB / 1.07 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.283e-05/0.3077, allocations: 4 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001059/0.3078, allocations: 11.86 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.403e-05/0.3079, allocations: 11.88 kB / 1.07 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002024/0.3081, allocations: 27.91 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001425/0.3083, allocations: 83.81 kB / 1.07 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.3084, allocations: 32.16 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.3085, allocations: 35.8 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.055e-05/0.3086, allocations: 39.89 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.683e-05/0.3086, allocations: 11.98 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.813e-05/0.3087, allocations: 7.938 kB / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.169e-05/0.3087, allocations: 8 kB / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.736e-05/0.3088, allocations: 35.8 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001243/0.3089, allocations: 64.05 kB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3089, allocations: 3.938 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.572e-06/0.3089, allocations: 0 / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.3089, allocations: 8 kB / 1.07 GB, free: 8.086 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.0007048/0.3096, allocations: 450.5 kB / 1.071 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.3097, allocations: 12.03 kB / 1.071 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.99e-05/0.3097, allocations: 8.844 kB / 1.071 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.31, allocations: 188.2 kB / 1.071 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.255e-06/0.31, allocations: 384 / 1.071 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.31, allocations: 12.38 kB / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002883/0.3103, allocations: 101.7 kB / 1.071 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.3103, allocations: 0 / 1.071 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.3103, allocations: 0 / 1.071 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.3103, allocations: 4 kB / 1.071 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002831/0.3106, allocations: 75.86 kB / 1.071 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005441/0.3112, allocations: 332.7 kB / 1.072 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.3115, allocations: 86.55 kB / 1.072 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.3117, allocations: 52.88 kB / 1.072 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.73e-05/0.3117, allocations: 3.984 kB / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002988/0.312, allocations: 107.3 kB / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.853e-06/0.312, allocations: 0 / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0006083/0.3126, allocations: 203.2 kB / 1.072 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.374e-05/0.3127, allocations: 93.05 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.3128, allocations: 131.9 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.3128, allocations: 25.7 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.759e-05/0.3129, allocations: 100.1 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.145e-05/0.3129, allocations: 19.72 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.555e-05/0.313, allocations: 25.7 kB / 1.072 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.3131, allocations: 322.8 kB / 1.073 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/0.3133, allocations: 51.95 kB / 1.073 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.3135, allocations: 51.95 kB / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003144/0.3138, allocations: 166 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3138, allocations: 0 / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004252/0.3143, allocations: 216.9 kB / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.278e-05/0.3143, allocations: 64.95 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.3143, allocations: 0 / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.3143, allocations: 4 kB / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.3145, allocations: 19.92 kB / 1.073 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.628e-06/0.3145, allocations: 0 / 1.073 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.3146, allocations: 19.92 kB / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.3147, allocations: 11.94 kB / 1.073 GB, free: 4.891 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.0001036/0.3148, allocations: 147.5 kB / 1.073 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.882e-05/0.3148, allocations: 11.91 kB / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.071e-05/0.3148, allocations: 8.719 kB / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3148, allocations: 0 / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3148, allocations: 0 / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3149, allocations: 4 kB / 1.073 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000556/0.3154, allocations: 428.4 kB / 1.074 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3154, allocations: 4 kB / 1.074 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.169e-05/0.3155, allocations: 15.97 kB / 1.074 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.3155, allocations: 4 kB / 1.074 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.3156, allocations: 4 kB / 1.074 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.3156, allocations: 7.875 kB / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.3156, allocations: 80 / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004284/0.316, allocations: 273 kB / 1.074 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.879e-05/0.316, allocations: 85.02 kB / 1.074 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/0.3161, allocations: 0 / 1.074 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.3162, allocations: 23.91 kB / 1.074 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.3164, allocations: 19.98 kB / 1.074 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.3164, allocations: 96 / 1.074 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.31e-05/0.3164, allocations: 107.2 kB / 1.074 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.362e-06/0.3165, allocations: 4 kB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002423/0.3167, allocations: 19.94 kB / 1.074 GB, free: 3.625 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.0001291/0.3168, allocations: 107.8 kB / 1.075 GB, free: 3.512 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004813/0.3173, allocations: 218.7 kB / 1.075 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3173, allocations: 0 / 1.075 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002128/0.3176, allocations: 115.3 kB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.3178, allocations: 8 kB / 1.075 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000563/0.3184, allocations: 206.8 kB / 1.075 GB, free: 2.914 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002571/0.3187, allocations: 0.6972 MB / 1.076 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.94e-05/0.3188, allocations: 15.75 kB / 1.076 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.873e-05/0.3188, allocations: 15.44 kB / 1.076 GB, free: 2.16 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.3188, allocations: 4 kB / 1.076 GB, free: 2.156 MB / 0.8262 GB Notification: Performance of Templates: time 0.003836/0.3226, allocations: 1.319 MB / 1.077 GB, free: 0.8555 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)