Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Controls.Continuous.Examples.NumberOfRequests.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.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.Continuous.Examples.NumberOfRequests") translateModel(Buildings.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.Continuous.Examples.NumberOfRequests") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00161/0.00161, 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.001818/0.001818, allocations: 192.2 kB / 16.25 MB, free: 6.633 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.53/1.53, allocations: 222.9 MB / 239.9 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.018/3.018, allocations: 472.6 MB / 0.7448 GB, free: 4.953 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 64.41 kB / 0.9115 GB, free: 33.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3034, allocations: 159.9 MB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.00265/0.3061, allocations: 1.539 MB / 1.069 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007441/0.3069, allocations: 470.8 kB / 1.07 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.664e-05/0.307, allocations: 0 / 1.07 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001062/0.3071, allocations: 3.938 kB / 1.07 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.65e-05/0.3071, allocations: 7.938 kB / 1.07 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002055/0.3073, allocations: 35.94 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001622/0.3075, allocations: 103.7 kB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.923e-05/0.3076, allocations: 16.17 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.3078, allocations: 43.89 kB / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.252e-05/0.3078, allocations: 47.77 kB / 1.07 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.693e-05/0.3079, allocations: 8 kB / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.76e-05/0.3079, allocations: 8 kB / 1.07 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.524e-05/0.3079, allocations: 15.92 kB / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.177e-05/0.308, allocations: 39.84 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.00014/0.3082, allocations: 83.77 kB / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3082, allocations: 0 / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3082, allocations: 0 / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.722e-06/0.3082, allocations: 0 / 1.07 GB, free: 8.395 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007157/0.3089, allocations: 454.8 kB / 1.07 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.309, allocations: 8.031 kB / 1.07 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.408e-05/0.309, allocations: 8.938 kB / 1.07 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002014/0.3092, allocations: 188.1 kB / 1.071 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.3093, allocations: 8.375 kB / 1.071 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.172e-05/0.3093, allocations: 16.36 kB / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003192/0.3096, allocations: 113.7 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.3096, allocations: 3.938 kB / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.3096, allocations: 8 kB / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.3097, allocations: 0 / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002947/0.31, allocations: 91.86 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005429/0.3105, allocations: 328.8 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003044/0.3108, allocations: 102.5 kB / 1.071 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.311, allocations: 80.88 kB / 1.071 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.465e-05/0.3111, allocations: 0 / 1.071 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003447/0.3114, allocations: 119.3 kB / 1.071 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.633e-06/0.3114, allocations: 0 / 1.071 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0006998/0.3121, allocations: 279.2 kB / 1.072 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.807e-05/0.3122, allocations: 85.11 kB / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.147e-05/0.3123, allocations: 135.9 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.3123, allocations: 25.7 kB / 1.072 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.591e-05/0.3124, allocations: 96.05 kB / 1.072 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.502e-05/0.3124, allocations: 23.73 kB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.744e-05/0.3125, allocations: 25.72 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.3126, allocations: 334.7 kB / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001888/0.3128, allocations: 63.95 kB / 1.073 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.313, allocations: 63.95 kB / 1.073 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003354/0.3133, allocations: 181.9 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.3133, allocations: 0 / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004785/0.3138, allocations: 264.9 kB / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.063e-05/0.3139, allocations: 71.39 kB / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.3139, allocations: 0 / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.3139, allocations: 0 / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.314, allocations: 11.98 kB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.314, allocations: 0 / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.3142, allocations: 23.97 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.277e-05/0.3143, allocations: 12 kB / 1.073 GB, free: 4.941 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,numReq.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * 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.000121/0.3144, allocations: 155.4 kB / 1.073 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.243e-05/0.3144, allocations: 15.89 kB / 1.073 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.796e-05/0.3145, allocations: 8.375 kB / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.3145, allocations: 0 / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3145, allocations: 0 / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3145, allocations: 4 kB / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001465/0.3147, allocations: 189.5 kB / 1.073 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3147, allocations: 256 / 1.073 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.872e-05/0.3148, allocations: 19.98 kB / 1.073 GB, free: 4.492 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.3148, allocations: 7.938 kB / 1.073 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.3148, allocations: 0 / 1.073 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3148, allocations: 96 / 1.073 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3148, allocations: 3.938 kB / 1.073 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004739/0.3153, allocations: 250.6 kB / 1.074 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.384e-05/0.3153, allocations: 92.94 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.699e-05/0.3154, allocations: 4 kB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.3155, allocations: 19.98 kB / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.3156, allocations: 35.89 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.3157, allocations: 8 kB / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.153e-05/0.3157, allocations: 95.27 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3157, allocations: 0 / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002136/0.316, allocations: 27.94 kB / 1.074 GB, free: 3.914 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,numReq.y,pulse.T_start,pulse.count) * Number of discrete states: 2 (pulse.count,numReq.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * 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.0001021/0.3161, allocations: 111.2 kB / 1.074 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005016/0.3166, allocations: 266.7 kB / 1.074 GB, free: 3.512 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3166, allocations: 0 / 1.074 GB, free: 3.512 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002446/0.3168, allocations: 135.3 kB / 1.074 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002269/0.3171, allocations: 21.39 kB / 1.075 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005565/0.3176, allocations: 231.2 kB / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.3179, allocations: 0.6942 MB / 1.075 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.485e-05/0.318, allocations: 7.984 kB / 1.075 GB, free: 2.367 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.035e-05/0.318, allocations: 11.44 kB / 1.075 GB, free: 2.355 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.318, allocations: 0 / 1.075 GB, free: 2.355 MB / 0.8262 GB Notification: Performance of Templates: time 0.004396/0.3224, allocations: 1.687 MB / 1.077 GB, free: 0.6758 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f Buildings_3.0.0_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_3.0.0_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)