Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.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.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.122/4.122, allocations: 433.2 MB / 440.8 MB, free: 4.539 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.031e-05/3.027e-05, allocations: 4.906 kB / 0.5325 GB, free: 12.76 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.2259, allocations: 98.74 MB / 0.6289 GB, free: 9.043 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2304/0.4563, allocations: 123.7 MB / 0.7497 GB, free: 13.22 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/0.4567, allocations: 67.95 kB / 0.7497 GB, free: 13.15 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003565/0.4603, allocations: 0.9189 MB / 0.7506 GB, free: 12.23 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.623e-06/0.4603, allocations: 0 / 0.7506 GB, free: 12.23 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.076e-05/0.4603, allocations: 4 kB / 0.7506 GB, free: 12.23 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005564/0.4609, allocations: 358.5 kB / 0.751 GB, free: 11.83 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.96e-05/0.461, allocations: 8.031 kB / 0.751 GB, free: 11.82 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.919e-05/0.461, allocations: 11.86 kB / 0.751 GB, free: 11.81 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001565/0.4612, allocations: 171 kB / 0.7512 GB, free: 11.61 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.4613, allocations: 0 / 0.7512 GB, free: 11.61 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.532e-05/0.4613, allocations: 7.938 kB / 0.7512 GB, free: 11.6 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001016/0.4614, allocations: 20 kB / 0.7512 GB, free: 11.58 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001142/0.4615, allocations: 45.69 kB / 0.7512 GB, free: 11.53 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.4615, allocations: 0 / 0.7512 GB, free: 11.53 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.4616, allocations: 0 / 0.7512 GB, free: 11.53 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.4616, allocations: 4 kB / 0.7512 GB, free: 11.52 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005722/0.4622, allocations: 281.2 kB / 0.7515 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001254/0.4623, allocations: 46.52 kB / 0.7516 GB, free: 11.16 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.181e-05/0.4624, allocations: 20.98 kB / 0.7516 GB, free: 11.13 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.4624, allocations: 7.938 kB / 0.7516 GB, free: 11.12 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001754/0.4626, allocations: 71.38 kB / 0.7516 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=9): time 2.074e-06/0.4626, allocations: 4 kB / 0.7517 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9): time 0.0002543/0.4629, allocations: 77.53 kB / 0.7517 GB, free: 10.96 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/0.4629, allocations: 63.36 kB / 0.7518 GB, free: 10.88 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.463, allocations: 101 kB / 0.7519 GB, free: 10.78 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.4631, allocations: 37.7 kB / 0.7519 GB, free: 10.73 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.735e-05/0.4632, allocations: 84.2 kB / 0.752 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.986e-05/0.4632, allocations: 19.8 kB / 0.752 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.152e-06/0.4632, allocations: 0 / 0.752 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.4633, allocations: 318.8 kB / 0.7523 GB, free: 10.3 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.219e-05/0.4634, allocations: 12 kB / 0.7523 GB, free: 10.29 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.232e-05/0.4635, allocations: 52.22 kB / 0.7524 GB, free: 10.23 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.473e-05/0.4636, allocations: 19.98 kB / 0.7524 GB, free: 10.21 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4636, allocations: 0 / 0.7524 GB, free: 10.21 MB / 0.6355 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002086/0.4638, allocations: 89.52 kB / 0.7525 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.4638, allocations: 4 kB / 0.7525 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.4639, allocations: 4 kB / 0.7525 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.4639, allocations: 0 / 0.7525 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.547e-05/0.464, allocations: 20.02 kB / 0.7525 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.464, allocations: 0 / 0.7525 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/0.4642, allocations: 27.84 kB / 0.7525 GB, free: 10.06 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.4642, allocations: 4.469 kB / 0.7525 GB, free: 10.05 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.onCounter.y,onCounter.y,$whenCondition4,$whenCondition3,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition2,onCounter.reset,$PRE.reset.pulseStart,reset.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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 9.396e-05/0.4643, allocations: 112.9 kB / 0.7527 GB, free: 9.938 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001767/0.4645, allocations: 77.56 kB / 0.7527 GB, free: 9.855 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.852e-05/0.4645, allocations: 7.906 kB / 0.7527 GB, free: 9.848 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.76e-05/0.4646, allocations: 20.61 kB / 0.7528 GB, free: 9.828 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.4646, allocations: 3.953 kB / 0.7528 GB, free: 9.824 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.4646, allocations: 0 / 0.7528 GB, free: 9.824 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.4646, allocations: 0 / 0.7528 GB, free: 9.824 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006907/0.4653, allocations: 347 kB / 0.7531 GB, free: 9.441 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.4653, allocations: 4 kB / 0.7531 GB, free: 9.438 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.692e-05/0.4654, allocations: 7.938 kB / 0.7531 GB, free: 9.43 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.648e-06/0.4654, allocations: 0 / 0.7531 GB, free: 9.43 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.4654, allocations: 3.953 kB / 0.7531 GB, free: 9.426 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.4654, allocations: 0 / 0.7531 GB, free: 9.426 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.4654, allocations: 4 kB / 0.7531 GB, free: 9.422 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002338/0.4657, allocations: 179.4 kB / 0.7533 GB, free: 9.23 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.254e-05/0.4657, allocations: 81.02 kB / 0.7534 GB, free: 9.133 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.4658, allocations: 4 kB / 0.7534 GB, free: 9.129 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001771/0.466, allocations: 19.94 kB / 0.7534 GB, free: 9.109 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.842e-05/0.466, allocations: 11.98 kB / 0.7534 GB, free: 9.098 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.4661, allocations: 7.984 kB / 0.7534 GB, free: 9.09 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.804e-05/0.4661, allocations: 87.5 kB / 0.7535 GB, free: 9.004 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.81e-07/0.4662, allocations: 4 kB / 0.7535 GB, free: 9 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000331/0.4665, allocations: 8 kB / 0.7535 GB, free: 8.992 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: 9 (booPul.y,onCounter.reset,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,onCounter.y,booPul.pulseStart,reset.pulseStart) * Number of discrete states: 1 (onCounter.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0005411/0.4671, allocations: 0.7202 MB / 0.7542 GB, free: 8.242 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001787/0.4672, allocations: 51.92 kB / 0.7542 GB, free: 8.191 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4673, allocations: 0 / 0.7542 GB, free: 8.191 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.242e-05/0.4674, allocations: 23.94 kB / 0.7543 GB, free: 8.168 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.4677, allocations: 29.78 kB / 0.7543 GB, free: 8.141 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005621/0.4683, allocations: 130.1 kB / 0.7544 GB, free: 7.977 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.4686, allocations: 0.6924 MB / 0.7551 GB, free: 7.258 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.962e-05/0.4687, allocations: 8.656 kB / 0.7551 GB, free: 7.25 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.36e-05/0.4687, allocations: 19.44 kB / 0.7551 GB, free: 7.23 MB / 0.6355 GB Notification: Performance of SimCode: time 8.92e-07/0.4687, allocations: 0 / 0.7551 GB, free: 7.23 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04204/0.5108, allocations: 1.471 MB / 0.7566 GB, free: 5.773 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003451/0.5112, allocations: 143.9 kB / 0.7567 GB, free: 5.586 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.248/2.759, allocations: 3.938 kB / 0.7567 GB, free: 5.582 MB / 0.6355 GB