Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests") translateModel(Buildings.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001488/0.001488, 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.001559/0.001559, allocations: 195.9 kB / 16.14 MB, free: 6.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.495/1.495, allocations: 205.1 MB / 222 MB, free: 4.992 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.631/1.631, allocations: 251.6 MB / 0.5088 GB, free: 3.379 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 63.92 kB / 0.6215 GB, free: 2.039 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8076/0.809, allocations: 104.7 MB / 0.7238 GB, free: 13.17 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002927/0.8119, allocations: 1.546 MB / 0.7253 GB, free: 11.61 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0008836/0.8129, allocations: 0.5188 MB / 0.7258 GB, free: 11.08 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.442e-05/0.8129, allocations: 0 / 0.7258 GB, free: 11.08 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.8131, allocations: 3.938 kB / 0.7258 GB, free: 11.07 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 5.991e-05/0.8131, allocations: 11.92 kB / 0.7258 GB, free: 11.06 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002131/0.8133, allocations: 31.89 kB / 0.7258 GB, free: 11.03 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001225/0.8135, allocations: 91.77 kB / 0.7259 GB, free: 10.94 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.8136, allocations: 8.188 kB / 0.7259 GB, free: 10.93 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.8137, allocations: 51.83 kB / 0.726 GB, free: 10.88 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 9.285e-05/0.8138, allocations: 39.83 kB / 0.726 GB, free: 10.84 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.73e-05/0.8139, allocations: 4 kB / 0.726 GB, free: 10.84 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 2.154e-05/0.8139, allocations: 4 kB / 0.726 GB, free: 10.84 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.377e-05/0.814, allocations: 15.92 kB / 0.7261 GB, free: 10.82 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 7.22e-05/0.814, allocations: 39.83 kB / 0.7261 GB, free: 10.78 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001439/0.8142, allocations: 69.75 kB / 0.7262 GB, free: 10.71 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.8142, allocations: 0 / 0.7262 GB, free: 10.71 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.183e-06/0.8142, allocations: 4 kB / 0.7262 GB, free: 10.71 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.219e-06/0.8142, allocations: 0 / 0.7262 GB, free: 10.71 MB / 0.545 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.0008035/0.815, allocations: 454.5 kB / 0.7266 GB, free: 10.21 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.8151, allocations: 8.031 kB / 0.7266 GB, free: 10.2 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.286e-05/0.8151, allocations: 8.844 kB / 0.7266 GB, free: 10.19 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002165/0.8154, allocations: 192.2 kB / 0.7268 GB, free: 9.965 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.8154, allocations: 4.375 kB / 0.7268 GB, free: 9.961 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.273e-05/0.8154, allocations: 8.375 kB / 0.7268 GB, free: 9.953 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.8157, allocations: 121.7 kB / 0.7269 GB, free: 9.828 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.8158, allocations: 0 / 0.7269 GB, free: 9.828 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.084e-05/0.8158, allocations: 4 kB / 0.7269 GB, free: 9.824 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.8158, allocations: 3.938 kB / 0.7269 GB, free: 9.82 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002975/0.8161, allocations: 87.92 kB / 0.727 GB, free: 9.734 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006888/0.8168, allocations: 344.5 kB / 0.7273 GB, free: 9.348 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003753/0.8172, allocations: 106.5 kB / 0.7274 GB, free: 9.234 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002081/0.8174, allocations: 72.94 kB / 0.7275 GB, free: 9.16 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.8175, allocations: 4 kB / 0.7275 GB, free: 9.156 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004729/0.8179, allocations: 123.3 kB / 0.7276 GB, free: 9.023 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.754e-06/0.8179, allocations: 0 / 0.7276 GB, free: 9.023 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.0008629/0.8188, allocations: 279.3 kB / 0.7279 GB, free: 8.738 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.471e-05/0.8189, allocations: 93.09 kB / 0.728 GB, free: 8.629 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.819, allocations: 128.9 kB / 0.7281 GB, free: 8.496 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.8191, allocations: 29.7 kB / 0.7281 GB, free: 8.461 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.646e-05/0.8191, allocations: 88.14 kB / 0.7282 GB, free: 8.371 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.436e-05/0.8192, allocations: 23.86 kB / 0.7282 GB, free: 8.348 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.769e-05/0.8192, allocations: 29.72 kB / 0.7283 GB, free: 8.312 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.8194, allocations: 326.8 kB / 0.7286 GB, free: 7.984 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001812/0.8196, allocations: 63.95 kB / 0.7286 GB, free: 7.922 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.8197, allocations: 67.95 kB / 0.7287 GB, free: 7.855 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003315/0.8201, allocations: 181.8 kB / 0.7289 GB, free: 7.656 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.8201, allocations: 0 / 0.7289 GB, free: 7.656 MB / 0.545 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004692/0.8206, allocations: 260.9 kB / 0.7291 GB, free: 7.383 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.778e-05/0.8206, allocations: 63.39 kB / 0.7292 GB, free: 7.309 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.8206, allocations: 4 kB / 0.7292 GB, free: 7.305 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.8207, allocations: 0 / 0.7292 GB, free: 7.305 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.8208, allocations: 19.92 kB / 0.7292 GB, free: 7.285 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.8208, allocations: 0 / 0.7292 GB, free: 7.285 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/0.821, allocations: 31.81 kB / 0.7292 GB, free: 7.254 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.821, allocations: 4 kB / 0.7293 GB, free: 7.25 MB / 0.545 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.0001256/0.8211, allocations: 155.5 kB / 0.7294 GB, free: 7.082 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.117e-05/0.8212, allocations: 8 kB / 0.7294 GB, free: 7.074 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.188e-05/0.8212, allocations: 12.45 kB / 0.7294 GB, free: 7.062 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.8212, allocations: 3.938 kB / 0.7294 GB, free: 7.059 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.8212, allocations: 0 / 0.7294 GB, free: 7.059 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.8212, allocations: 0 / 0.7294 GB, free: 7.059 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001766/0.8214, allocations: 197.5 kB / 0.7296 GB, free: 6.816 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.8214, allocations: 0 / 0.7296 GB, free: 6.816 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.018e-05/0.8215, allocations: 15.92 kB / 0.7296 GB, free: 6.801 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.8215, allocations: 4 kB / 0.7296 GB, free: 6.797 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.8215, allocations: 8 kB / 0.7296 GB, free: 6.789 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.8215, allocations: 0 / 0.7296 GB, free: 6.789 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.8215, allocations: 0 / 0.7296 GB, free: 6.789 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004604/0.822, allocations: 250.5 kB / 0.7299 GB, free: 6.52 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.819e-05/0.8221, allocations: 81.11 kB / 0.73 GB, free: 6.422 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.369e-05/0.8221, allocations: 7.984 kB / 0.73 GB, free: 6.414 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.8222, allocations: 15.98 kB / 0.73 GB, free: 6.398 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.8224, allocations: 40.08 kB / 0.73 GB, free: 6.359 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.8224, allocations: 8 kB / 0.73 GB, free: 6.352 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.135e-05/0.8225, allocations: 99.27 kB / 0.7301 GB, free: 6.254 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8225, allocations: 0 / 0.7301 GB, free: 6.254 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002007/0.8227, allocations: 23.94 kB / 0.7301 GB, free: 6.23 MB / 0.545 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.0001502/0.8228, allocations: 111.2 kB / 0.7302 GB, free: 6.113 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005682/0.8234, allocations: 262.6 kB / 0.7305 GB, free: 5.832 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.8234, allocations: 4 kB / 0.7305 GB, free: 5.828 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002472/0.8237, allocations: 131.4 kB / 0.7306 GB, free: 5.688 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002253/0.8239, allocations: 15.98 kB / 0.7306 GB, free: 5.672 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005561/0.8245, allocations: 244.9 kB / 0.7309 GB, free: 5.406 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.8248, allocations: 0.6965 MB / 0.7316 GB, free: 4.684 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.446e-05/0.8249, allocations: 11.94 kB / 0.7316 GB, free: 4.672 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.511e-05/0.8249, allocations: 11.44 kB / 0.7316 GB, free: 4.664 MB / 0.545 GB Notification: Performance of SimCode: time 4.61e-07/0.8249, allocations: 0 / 0.7316 GB, free: 4.664 MB / 0.545 GB Notification: Performance of Templates: time 0.004281/0.8292, allocations: 1.602 MB / 0.7331 GB, free: 3.09 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)