Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_6_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.06/4.06, allocations: 433.2 MB / 440.7 MB, free: 4.555 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.614e-05/2.612e-05, allocations: 3.688 kB / 0.5325 GB, free: 12.72 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.2245, allocations: 98.74 MB / 0.6289 GB, free: 9.066 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.235/0.4596, allocations: 125.2 MB / 0.7512 GB, free: 11.67 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003206/0.46, allocations: 91.94 kB / 0.7513 GB, free: 11.58 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006895/0.4669, allocations: 1.454 MB / 0.7527 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of FrontEnd: time 4.469e-06/0.4669, allocations: 4 kB / 0.7527 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.324e-05/0.467, allocations: 0 / 0.7527 GB, free: 10.12 MB / 0.6355 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.0007571/0.4677, allocations: 441.6 kB / 0.7531 GB, free: 9.629 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.4678, allocations: 12.03 kB / 0.7531 GB, free: 9.617 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.507e-05/0.4679, allocations: 11.86 kB / 0.7532 GB, free: 9.605 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002384/0.4681, allocations: 179 kB / 0.7533 GB, free: 9.391 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.4681, allocations: 0 / 0.7533 GB, free: 9.391 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.792e-05/0.4682, allocations: 7.984 kB / 0.7533 GB, free: 9.383 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001645/0.4684, allocations: 35.94 kB / 0.7534 GB, free: 9.348 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.4686, allocations: 77.61 kB / 0.7534 GB, free: 9.266 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.4686, allocations: 7.969 kB / 0.7535 GB, free: 9.258 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.4686, allocations: 0 / 0.7535 GB, free: 9.258 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.4686, allocations: 0 / 0.7535 GB, free: 9.258 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007465/0.4694, allocations: 325.1 kB / 0.7538 GB, free: 8.902 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001413/0.4695, allocations: 42.58 kB / 0.7538 GB, free: 8.852 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.519e-05/0.4697, allocations: 36.97 kB / 0.7538 GB, free: 8.812 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.4697, allocations: 0 / 0.7538 GB, free: 8.812 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002115/0.4699, allocations: 79.38 kB / 0.7539 GB, free: 8.723 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.114e-06/0.4699, allocations: 0 / 0.7539 GB, free: 8.723 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.000347/0.4703, allocations: 109.5 kB / 0.754 GB, free: 8.609 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.117e-05/0.4704, allocations: 81.11 kB / 0.7541 GB, free: 8.512 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.4705, allocations: 116.9 kB / 0.7542 GB, free: 8.391 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.501e-05/0.4705, allocations: 25.7 kB / 0.7542 GB, free: 8.359 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.515e-05/0.4706, allocations: 100 kB / 0.7543 GB, free: 8.258 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.012e-05/0.4707, allocations: 15.81 kB / 0.7543 GB, free: 8.242 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.143e-05/0.4707, allocations: 0 / 0.7543 GB, free: 8.242 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.4708, allocations: 322.8 kB / 0.7547 GB, free: 7.918 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.005e-05/0.4709, allocations: 28 kB / 0.7547 GB, free: 7.891 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.939e-05/0.471, allocations: 27.98 kB / 0.7547 GB, free: 7.863 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.254e-05/0.4711, allocations: 16 kB / 0.7547 GB, free: 7.848 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.4711, allocations: 0 / 0.7547 GB, free: 7.848 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003086/0.4715, allocations: 117.5 kB / 0.7548 GB, free: 7.727 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 5.872e-05/0.4715, allocations: 59.67 kB / 0.7549 GB, free: 7.656 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.4716, allocations: 0 / 0.7549 GB, free: 7.656 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.4716, allocations: 4 kB / 0.7549 GB, free: 7.652 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.4718, allocations: 23.88 kB / 0.7549 GB, free: 7.629 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.4718, allocations: 4 kB / 0.7549 GB, free: 7.625 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002351/0.4721, allocations: 31.81 kB / 0.7549 GB, free: 7.594 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/0.4721, allocations: 0 / 0.7549 GB, free: 7.594 MB / 0.6355 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 ($whenCondition1,reqCou.nInc,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001205/0.4722, allocations: 142.6 kB / 0.7551 GB, free: 7.441 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002461/0.4725, allocations: 89.67 kB / 0.7552 GB, free: 7.348 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.419e-05/0.4725, allocations: 7.906 kB / 0.7552 GB, free: 7.34 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.742e-05/0.4726, allocations: 20.58 kB / 0.7552 GB, free: 7.32 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.4726, allocations: 0 / 0.7552 GB, free: 7.32 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.4726, allocations: 0 / 0.7552 GB, free: 7.32 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.365e-06/0.4726, allocations: 7.984 kB / 0.7552 GB, free: 7.312 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000468/0.4731, allocations: 347.1 kB / 0.7555 GB, free: 6.93 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.4731, allocations: 0 / 0.7555 GB, free: 6.93 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/0.4733, allocations: 19.92 kB / 0.7556 GB, free: 6.91 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.536e-06/0.4733, allocations: 3.953 kB / 0.7556 GB, free: 6.906 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.4734, allocations: 4 kB / 0.7556 GB, free: 6.902 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.4734, allocations: 4 kB / 0.7556 GB, free: 6.898 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.4734, allocations: 0 / 0.7556 GB, free: 6.898 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002969/0.4737, allocations: 187.5 kB / 0.7557 GB, free: 6.699 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.039e-05/0.4738, allocations: 85.02 kB / 0.7558 GB, free: 6.598 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.673e-05/0.4738, allocations: 11.94 kB / 0.7558 GB, free: 6.586 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000247/0.4741, allocations: 19.98 kB / 0.7559 GB, free: 6.566 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.4742, allocations: 19.97 kB / 0.7559 GB, free: 6.547 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.4743, allocations: 4 kB / 0.7559 GB, free: 6.543 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 8.271e-05/0.4743, allocations: 103.8 kB / 0.756 GB, free: 6.441 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.504e-06/0.4744, allocations: 0 / 0.756 GB, free: 6.441 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003477/0.4747, allocations: 19.94 kB / 0.756 GB, free: 6.422 MB / 0.6355 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006686/0.4754, allocations: 0.7403 MB / 0.7567 GB, free: 5.652 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003345/0.4758, allocations: 174.7 kB / 0.7569 GB, free: 5.457 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4758, allocations: 0 / 0.7569 GB, free: 5.457 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001535/0.4759, allocations: 91.39 kB / 0.757 GB, free: 5.355 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.4762, allocations: 7.953 kB / 0.757 GB, free: 5.348 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006871/0.4769, allocations: 165.8 kB / 0.7571 GB, free: 5.148 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.4773, allocations: 0.6963 MB / 0.7578 GB, free: 4.426 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0001052/0.4774, allocations: 15.77 kB / 0.7578 GB, free: 4.41 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.647e-05/0.4775, allocations: 23.42 kB / 0.7579 GB, free: 4.387 MB / 0.6355 GB Notification: Performance of SimCode: time 9.92e-07/0.4775, allocations: 3.938 kB / 0.7579 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03593/0.5134, allocations: 1.758 MB / 0.7596 GB, free: 2.641 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003543/0.5138, allocations: 179.3 kB / 0.7597 GB, free: 2.441 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.395/2.908, allocations: 5.5 kB / 0.7598 GB, free: 2.438 MB / 0.6355 GB