Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.009981/0.009987, allocations: 92.88 kB / 15.04 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001207/0.001207, allocations: 173.5 kB / 15.92 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.085/2.085, allocations: 205.5 MB / 222.2 MB, free: 13.57 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.462/2.462, allocations: 252.8 MB / 0.511 GB, free: 8.32 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006364/0.0006366, allocations: 9.75 kB / 0.6243 GB, free: 21.12 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2545, allocations: 106.2 MB / 0.7281 GB, free: 8.109 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001932/0.2565, allocations: 1.104 MB / 0.7291 GB, free: 6.992 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0005993/0.2571, allocations: 220.9 kB / 0.7294 GB, free: 6.773 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.112e-05/0.2571, allocations: 4 kB / 0.7294 GB, free: 6.77 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 1.763e-05/0.2572, allocations: 3.938 kB / 0.7294 GB, free: 6.766 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 7.37e-05/0.2573, allocations: 11.97 kB / 0.7294 GB, free: 6.754 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001751/0.2574, allocations: 11.98 kB / 0.7294 GB, free: 6.742 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 9.092e-05/0.2575, allocations: 27.97 kB / 0.7294 GB, free: 6.715 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 9.234e-05/0.2577, allocations: 15.92 kB / 0.7294 GB, free: 6.699 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 6.971e-05/0.2577, allocations: 11.98 kB / 0.7294 GB, free: 6.688 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 5.59e-05/0.2578, allocations: 23.86 kB / 0.7295 GB, free: 6.664 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.768e-05/0.2578, allocations: 0 / 0.7295 GB, free: 6.664 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 1.99e-05/0.2579, allocations: 4 kB / 0.7295 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 2.389e-05/0.2579, allocations: 11.92 kB / 0.7295 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 4.36e-05/0.2579, allocations: 29.7 kB / 0.7295 GB, free: 6.613 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 8.666e-05/0.258, allocations: 35.92 kB / 0.7295 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.2581, allocations: 0 / 0.7295 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.453e-06/0.2581, allocations: 0 / 0.7295 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.2581, allocations: 0 / 0.7295 GB, free: 6.578 MB / 0.5573 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.0007468/0.2588, allocations: 367.5 kB / 0.7299 GB, free: 6.172 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.2589, allocations: 8.031 kB / 0.7299 GB, free: 6.164 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.194e-05/0.2589, allocations: 38.56 kB / 0.7299 GB, free: 6.117 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.998e-05/0.259, allocations: 3.984 kB / 0.7299 GB, free: 6.113 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.2591, allocations: 175 kB / 0.7301 GB, free: 5.902 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.2592, allocations: 0 / 0.7301 GB, free: 5.902 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.674e-05/0.2592, allocations: 8 kB / 0.7301 GB, free: 5.895 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002824/0.2595, allocations: 69.66 kB / 0.7302 GB, free: 5.82 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.2595, allocations: 3.938 kB / 0.7302 GB, free: 5.816 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.2595, allocations: 4 kB / 0.7302 GB, free: 5.812 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.2595, allocations: 0 / 0.7302 GB, free: 5.812 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003236/0.2599, allocations: 55.95 kB / 0.7302 GB, free: 5.758 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004951/0.2604, allocations: 288.6 kB / 0.7305 GB, free: 5.426 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002518/0.2607, allocations: 62.56 kB / 0.7306 GB, free: 5.355 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 4.672e-05/0.2607, allocations: 7.984 kB / 0.7306 GB, free: 5.348 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002852/0.261, allocations: 71.52 kB / 0.7307 GB, free: 5.266 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=7): time 1.884e-06/0.261, allocations: 0 / 0.7307 GB, free: 5.266 MB / 0.5573 GB Notification: Performance of matching and sorting (n=7): time 0.0006619/0.2617, allocations: 141.6 kB / 0.7308 GB, free: 5.121 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/0.2618, allocations: 59.34 kB / 0.7308 GB, free: 5.051 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.2619, allocations: 105.8 kB / 0.7309 GB, free: 4.938 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.2619, allocations: 29.7 kB / 0.731 GB, free: 4.902 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 5.953e-05/0.262, allocations: 92.12 kB / 0.7311 GB, free: 4.809 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 3.17e-05/0.262, allocations: 19.88 kB / 0.7311 GB, free: 4.789 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.472e-06/0.262, allocations: 0 / 0.7311 GB, free: 4.789 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001612/0.2622, allocations: 318.8 kB / 0.7314 GB, free: 4.469 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/0.2624, allocations: 27.98 kB / 0.7314 GB, free: 4.441 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002148/0.2626, allocations: 68.2 kB / 0.7315 GB, free: 4.359 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.2628, allocations: 43.91 kB / 0.7315 GB, free: 4.316 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2629, allocations: 0 / 0.7315 GB, free: 4.316 MB / 0.5573 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000466/0.2633, allocations: 121.5 kB / 0.7316 GB, free: 4.191 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.2634, allocations: 4.125 kB / 0.7316 GB, free: 4.188 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.2634, allocations: 8 kB / 0.7316 GB, free: 4.18 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.2634, allocations: 0 / 0.7316 GB, free: 4.18 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.2636, allocations: 23.92 kB / 0.7317 GB, free: 4.156 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.2636, allocations: 3.953 kB / 0.7317 GB, free: 4.152 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.2637, allocations: 19.92 kB / 0.7317 GB, free: 4.133 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.2638, allocations: 4 kB / 0.7317 GB, free: 4.129 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001186/0.2639, allocations: 117.8 kB / 0.7318 GB, free: 4.004 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.067e-05/0.2639, allocations: 7.906 kB / 0.7318 GB, free: 3.996 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004661/0.2644, allocations: 117.9 kB / 0.7319 GB, free: 3.875 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.2644, allocations: 4 kB / 0.7319 GB, free: 3.871 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.2644, allocations: 0 / 0.7319 GB, free: 3.871 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.2645, allocations: 7.953 kB / 0.7319 GB, free: 3.863 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007071/0.2652, allocations: 366.9 kB / 0.7323 GB, free: 3.449 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.2652, allocations: 192 / 0.7323 GB, free: 3.449 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.2653, allocations: 15.98 kB / 0.7323 GB, free: 3.434 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.2653, allocations: 7.938 kB / 0.7323 GB, free: 3.426 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.2654, allocations: 4 kB / 0.7323 GB, free: 3.422 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.216e-06/0.2654, allocations: 8.203 kB / 0.7323 GB, free: 3.414 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2654, allocations: 0 / 0.7323 GB, free: 3.414 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004706/0.2659, allocations: 207.4 kB / 0.7325 GB, free: 3.195 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 5.129e-05/0.2659, allocations: 77.11 kB / 0.7326 GB, free: 3.102 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.063e-05/0.266, allocations: 8 kB / 0.7326 GB, free: 3.094 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.2661, allocations: 11.98 kB / 0.7326 GB, free: 3.082 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.233e-05/0.2662, allocations: 11.88 kB / 0.7326 GB, free: 3.07 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.2662, allocations: 4 kB / 0.7326 GB, free: 3.066 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 5.757e-05/0.2663, allocations: 83.28 kB / 0.7327 GB, free: 2.984 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.81e-07/0.2663, allocations: 4 kB / 0.7327 GB, free: 2.98 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0003599/0.2667, allocations: 8 kB / 0.7327 GB, free: 2.973 MB / 0.5573 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 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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.0008345/0.2675, allocations: 0.7475 MB / 0.7335 GB, free: 2.199 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0004099/0.2679, allocations: 75.88 kB / 0.7335 GB, free: 2.125 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.144e-06/0.268, allocations: 4.25 kB / 0.7335 GB, free: 2.121 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002036/0.2682, allocations: 47.86 kB / 0.7336 GB, free: 2.074 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002477/0.2684, allocations: 7.938 kB / 0.7336 GB, free: 2.066 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009855/0.2694, allocations: 0.9614 MB / 0.7345 GB, free: 1.031 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.2698, allocations: 0.6887 MB / 0.7352 GB, free: 324 kB / 0.5573 GB Notification: Performance of simCode: alias equations: time 4.888e-05/0.2699, allocations: 192 / 0.7352 GB, free: 324 kB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.31e-05/0.2699, allocations: 19.42 kB / 0.7352 GB, free: 304 kB / 0.5573 GB Notification: Performance of SimCode: time 3.727e-06/0.2699, allocations: 0 / 0.7352 GB, free: 304 kB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02015/0.2901, allocations: 1.38 MB / 0.7366 GB, free: 15.02 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003709/0.2905, allocations: 191 kB / 0.7367 GB, free: 14.78 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.33/2.621, allocations: 0 / 0.7367 GB, free: 14.78 MB / 0.573 GB