Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_Buildings.Controls.Continuous.Examples.NumberOfRequests") translateModel(Buildings.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001137/0.001137, 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.001297/0.001297, allocations: 191.9 kB / 16.25 MB, free: 6.629 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.39/1.39, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.901/2.901, allocations: 472.6 MB / 0.7448 GB, free: 4.887 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 67.11 kB / 0.9115 GB, free: 33.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.316, allocations: 159.9 MB / 1.068 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.00253/0.3185, allocations: 1.536 MB / 1.069 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007208/0.3193, allocations: 470.8 kB / 1.07 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.176e-05/0.3193, allocations: 0 / 1.07 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001147/0.3195, allocations: 0 / 1.07 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.913e-05/0.3195, allocations: 11.86 kB / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.3197, allocations: 35.95 kB / 1.07 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000163/0.3199, allocations: 99.7 kB / 1.07 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.32, allocations: 20.16 kB / 1.07 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.3202, allocations: 43.91 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.356e-05/0.3203, allocations: 43.81 kB / 1.07 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.3203, allocations: 8 kB / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.773e-05/0.3203, allocations: 8 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.339e-05/0.3204, allocations: 27.86 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.907e-05/0.3205, allocations: 35.86 kB / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.3206, allocations: 75.75 kB / 1.07 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3206, allocations: 4 kB / 1.07 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.764e-06/0.3206, allocations: 0 / 1.07 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.772e-06/0.3206, allocations: 0 / 1.07 GB, free: 8.363 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.0007341/0.3214, allocations: 450.8 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.3214, allocations: 12.03 kB / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.452e-05/0.3215, allocations: 4.938 kB / 1.07 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001926/0.3217, allocations: 196.1 kB / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.3217, allocations: 4.375 kB / 1.071 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.12e-05/0.3217, allocations: 4.375 kB / 1.071 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.3221, allocations: 117.8 kB / 1.071 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.3221, allocations: 0 / 1.071 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/0.3221, allocations: 3.984 kB / 1.071 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.3221, allocations: 11.94 kB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002998/0.3224, allocations: 91.86 kB / 1.071 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005737/0.323, allocations: 328.8 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003094/0.3233, allocations: 110.5 kB / 1.071 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001907/0.3235, allocations: 72.94 kB / 1.071 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.484e-05/0.3236, allocations: 0 / 1.071 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003526/0.3239, allocations: 123.3 kB / 1.071 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.763e-06/0.3239, allocations: 0 / 1.071 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0007124/0.3246, allocations: 279.2 kB / 1.072 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.466e-05/0.3247, allocations: 81.11 kB / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.3248, allocations: 126.4 kB / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.778e-05/0.3249, allocations: 37.64 kB / 1.072 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.016e-05/0.325, allocations: 100 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.558e-05/0.325, allocations: 15.75 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.697e-05/0.3251, allocations: 41.64 kB / 1.072 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.3252, allocations: 318.8 kB / 1.072 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002009/0.3254, allocations: 63.95 kB / 1.073 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001756/0.3256, allocations: 67.94 kB / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003332/0.3259, allocations: 177.9 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3259, allocations: 4 kB / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004891/0.3264, allocations: 260.8 kB / 1.073 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.693e-05/0.3265, allocations: 67.39 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.3265, allocations: 0 / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.3265, allocations: 0 / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.3266, allocations: 15.98 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.3267, allocations: 160 / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.3268, allocations: 23.97 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.918e-05/0.3268, allocations: 4 kB / 1.073 GB, free: 4.922 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.0001264/0.327, allocations: 159.5 kB / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.246e-05/0.327, allocations: 7.906 kB / 1.073 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.099e-05/0.327, allocations: 12.38 kB / 1.073 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.3271, allocations: 0 / 1.073 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.3271, allocations: 0 / 1.073 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3271, allocations: 3.938 kB / 1.073 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001563/0.3272, allocations: 201.6 kB / 1.073 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.3272, allocations: 96 / 1.073 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.659e-05/0.3273, allocations: 23.86 kB / 1.073 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.3273, allocations: 0 / 1.073 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.731e-05/0.3274, allocations: 8.234 kB / 1.073 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.3274, allocations: 7.984 kB / 1.074 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3274, allocations: 0 / 1.074 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004741/0.3279, allocations: 250.6 kB / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.817e-05/0.3279, allocations: 84.95 kB / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.838e-05/0.328, allocations: 4 kB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.3281, allocations: 23.97 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.3282, allocations: 31.97 kB / 1.074 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.3283, allocations: 11.97 kB / 1.074 GB, free: 4 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.244e-05/0.3283, allocations: 101.1 kB / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.512e-06/0.3283, allocations: 4 kB / 1.074 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002099/0.3286, allocations: 31.88 kB / 1.074 GB, free: 3.867 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 9.942e-05/0.3287, allocations: 99.25 kB / 1.074 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004993/0.3292, allocations: 262.7 kB / 1.074 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3292, allocations: 0 / 1.074 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002432/0.3294, allocations: 147.3 kB / 1.075 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000211/0.3296, allocations: 14.06 kB / 1.075 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005/0.3302, allocations: 227.2 kB / 1.075 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002507/0.3304, allocations: 0.7002 MB / 1.075 GB, free: 2.336 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.424e-05/0.3305, allocations: 4 kB / 1.075 GB, free: 2.332 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.745e-05/0.3305, allocations: 15.42 kB / 1.075 GB, free: 2.316 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3305, allocations: 0 / 1.075 GB, free: 2.316 MB / 0.8262 GB Notification: Performance of Templates: time 0.00404/0.3346, allocations: 1.682 MB / 1.077 GB, free: 0.6445 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)