Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadModel(Buildings): time 4.003/4.003, allocations: 433.4 MB / 440.9 MB, free: 10.36 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.688e-05/1.7e-05, allocations: 4 kB / 0.5325 GB, free: 1.844 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4928/0.4928, allocations: 98.71 MB / 0.6289 GB, free: 15.63 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1896/0.6824, allocations: 124 MB / 0.75 GB, free: 3.508 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/0.6827, allocations: 75.94 kB / 0.75 GB, free: 3.434 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.003275/0.686, allocations: 0.9597 MB / 0.751 GB, free: 2.473 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.625e-06/0.686, allocations: 0 / 0.751 GB, free: 2.473 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.016e-05/0.686, allocations: 4 kB / 0.751 GB, free: 2.469 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005348/0.6866, allocations: 358.5 kB / 0.7513 GB, free: 2.074 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.6866, allocations: 11.97 kB / 0.7513 GB, free: 2.062 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.476e-05/0.6867, allocations: 7.906 kB / 0.7513 GB, free: 2.055 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.6868, allocations: 171 kB / 0.7515 GB, free: 1.848 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.344e-05/0.6869, allocations: 4 kB / 0.7515 GB, free: 1.844 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.241e-05/0.6869, allocations: 7.938 kB / 0.7515 GB, free: 1.836 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001178/0.687, allocations: 28 kB / 0.7515 GB, free: 1.809 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001439/0.6872, allocations: 57.67 kB / 0.7516 GB, free: 1.746 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.6872, allocations: 4 kB / 0.7516 GB, free: 1.742 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.6873, allocations: 4 kB / 0.7516 GB, free: 1.738 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.319e-06/0.6873, allocations: 0 / 0.7516 GB, free: 1.738 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006315/0.6879, allocations: 305.1 kB / 0.7519 GB, free: 1.402 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.6881, allocations: 70.56 kB / 0.752 GB, free: 1.324 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.26e-05/0.6882, allocations: 28.86 kB / 0.752 GB, free: 1.293 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.6882, allocations: 0 / 0.752 GB, free: 1.293 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001632/0.6884, allocations: 75.52 kB / 0.7521 GB, free: 1.207 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 2.541e-06/0.6884, allocations: 0 / 0.7521 GB, free: 1.207 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0002941/0.6887, allocations: 105.6 kB / 0.7522 GB, free: 1.098 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.6888, allocations: 59.34 kB / 0.7522 GB, free: 1.027 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.256e-05/0.6889, allocations: 101.1 kB / 0.7523 GB, free: 0.9219 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/0.6889, allocations: 33.64 kB / 0.7524 GB, free: 0.8828 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.559e-05/0.689, allocations: 88.36 kB / 0.7524 GB, free: 0.7891 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.262e-05/0.689, allocations: 19.72 kB / 0.7525 GB, free: 0.7695 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.958e-06/0.689, allocations: 0 / 0.7525 GB, free: 0.7695 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.6892, allocations: 322.8 kB / 0.7528 GB, free: 456 kB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.495e-05/0.6893, allocations: 20 kB / 0.7528 GB, free: 436 kB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.415e-05/0.6894, allocations: 55.38 kB / 0.7528 GB, free: 368 kB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.816e-05/0.6895, allocations: 27.98 kB / 0.7529 GB, free: 340 kB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.609e-06/0.6895, allocations: 0 / 0.7529 GB, free: 340 kB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002426/0.6897, allocations: 105.5 kB / 0.753 GB, free: 228 kB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.6898, allocations: 8 kB / 0.753 GB, free: 220 kB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.601e-06/0.6898, allocations: 0 / 0.753 GB, free: 220 kB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.6898, allocations: 8.031 kB / 0.753 GB, free: 212 kB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/0.69, allocations: 27.92 kB / 0.753 GB, free: 184 kB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.69, allocations: 0 / 0.753 GB, free: 184 kB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.836e-05/0.6901, allocations: 15.89 kB / 0.753 GB, free: 168 kB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.6902, allocations: 8.047 kB / 0.753 GB, free: 160 kB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 0.0001063/0.6903, allocations: 112.9 kB / 0.7531 GB, free: 40 kB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.579e-05/0.6903, allocations: 7.938 kB / 0.7531 GB, free: 32 kB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002886/0.6906, allocations: 110.3 kB / 0.7532 GB, free: 15.92 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.497e-06/0.6906, allocations: 4 kB / 0.7533 GB, free: 15.91 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.13e-06/0.6907, allocations: 256 / 0.7533 GB, free: 15.91 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.256e-06/0.6907, allocations: 0 / 0.7533 GB, free: 15.91 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005375/0.6912, allocations: 362.9 kB / 0.7536 GB, free: 15.52 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.425e-06/0.6912, allocations: 3.984 kB / 0.7536 GB, free: 15.51 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.6914, allocations: 8 kB / 0.7536 GB, free: 15.5 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.723e-06/0.6914, allocations: 11.98 kB / 0.7536 GB, free: 15.49 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.769e-05/0.6914, allocations: 7.984 kB / 0.7536 GB, free: 15.48 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.6914, allocations: 0 / 0.7536 GB, free: 15.48 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.687e-06/0.6914, allocations: 0 / 0.7536 GB, free: 15.48 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002956/0.6917, allocations: 203.4 kB / 0.7538 GB, free: 15.27 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.779e-05/0.6918, allocations: 84.95 kB / 0.7539 GB, free: 15.17 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.507e-05/0.6918, allocations: 0 / 0.7539 GB, free: 15.17 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.692, allocations: 15.98 kB / 0.7539 GB, free: 15.15 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.663e-05/0.6921, allocations: 11.98 kB / 0.7539 GB, free: 15.14 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.6921, allocations: 4 kB / 0.7539 GB, free: 15.14 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.947e-05/0.6922, allocations: 83.28 kB / 0.754 GB, free: 15.05 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.32e-07/0.6922, allocations: 0 / 0.754 GB, free: 15.05 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000324/0.6925, allocations: 12 kB / 0.754 GB, free: 15.04 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001491/0.6927, allocations: 107.5 kB / 0.7541 GB, free: 14.93 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002063/0.6929, allocations: 71.88 kB / 0.7542 GB, free: 14.86 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.373e-06/0.6929, allocations: 0 / 0.7542 GB, free: 14.86 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.949e-05/0.693, allocations: 35.94 kB / 0.7542 GB, free: 14.82 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002432/0.6933, allocations: 7.984 kB / 0.7542 GB, free: 14.81 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000318/0.6936, allocations: 96.48 kB / 0.7543 GB, free: 14.7 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/0.694, allocations: 0.6885 MB / 0.755 GB, free: 13.98 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.659e-05/0.694, allocations: 16.59 kB / 0.755 GB, free: 13.97 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.954e-05/0.6941, allocations: 11.44 kB / 0.755 GB, free: 13.96 MB / 0.6355 GB Notification: Performance of SimCode: time 1.556e-06/0.6941, allocations: 0 / 0.755 GB, free: 13.96 MB / 0.6355 GB Notification: Performance of Templates: time 0.003505/0.6976, allocations: 0.7159 MB / 0.7557 GB, free: 13.25 MB / 0.6355 GB