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.Discrete.Examples.ZeroOrderHold.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.926/3.926, allocations: 432.6 MB / 445.2 MB, free: 15.83 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.037e-05/4.042e-05, allocations: 4.078 kB / 0.5383 GB, free: 10.27 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2715, allocations: 98.72 MB / 0.6347 GB, free: 1.895 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2898/0.5613, allocations: 124.5 MB / 0.7563 GB, free: 5.258 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/0.5617, allocations: 67.97 kB / 0.7563 GB, free: 5.191 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003568/0.5652, allocations: 0.8878 MB / 0.7572 GB, free: 4.301 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.723e-06/0.5653, allocations: 0 / 0.7572 GB, free: 4.301 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.087e-05/0.5653, allocations: 4 kB / 0.7572 GB, free: 4.297 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006115/0.5659, allocations: 350.5 kB / 0.7575 GB, free: 3.91 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.566, allocations: 12.03 kB / 0.7576 GB, free: 3.898 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.667e-05/0.5661, allocations: 42.55 kB / 0.7576 GB, free: 3.848 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.695e-05/0.5661, allocations: 11.86 kB / 0.7576 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.5663, allocations: 167 kB / 0.7578 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.5663, allocations: 4 kB / 0.7578 GB, free: 3.629 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.761e-05/0.5663, allocations: 0 / 0.7578 GB, free: 3.629 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001683/0.5665, allocations: 61.66 kB / 0.7578 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.5665, allocations: 0 / 0.7578 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.5665, allocations: 0 / 0.7578 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.5666, allocations: 4 kB / 0.7578 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.543e-05/0.5667, allocations: 20 kB / 0.7578 GB, free: 3.539 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006277/0.5673, allocations: 296.8 kB / 0.7581 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001367/0.5675, allocations: 42.58 kB / 0.7582 GB, free: 3.148 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.486e-05/0.5675, allocations: 24.98 kB / 0.7582 GB, free: 3.121 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.69e-05/0.5676, allocations: 0 / 0.7582 GB, free: 3.121 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001577/0.5677, allocations: 67.3 kB / 0.7583 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.094e-06/0.5678, allocations: 0 / 0.7583 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002623/0.568, allocations: 81.62 kB / 0.7583 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.5681, allocations: 59.34 kB / 0.7584 GB, free: 2.887 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.329e-05/0.5682, allocations: 101 kB / 0.7585 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.5682, allocations: 29.7 kB / 0.7585 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.453e-05/0.5683, allocations: 84.12 kB / 0.7586 GB, free: 2.66 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.554e-05/0.5683, allocations: 23.66 kB / 0.7586 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.676e-06/0.5684, allocations: 0 / 0.7586 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.5685, allocations: 322.8 kB / 0.7589 GB, free: 2.312 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.341e-05/0.5686, allocations: 16 kB / 0.7589 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.766e-05/0.5687, allocations: 48.23 kB / 0.759 GB, free: 2.234 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.818e-05/0.5687, allocations: 21.89 kB / 0.759 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.5688, allocations: 0 / 0.759 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000211/0.569, allocations: 81.62 kB / 0.7591 GB, free: 2.129 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.569, allocations: 11.94 kB / 0.7591 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.569, allocations: 4.125 kB / 0.7591 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.5691, allocations: 0 / 0.7591 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.5693, allocations: 19.98 kB / 0.7591 GB, free: 2.094 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/0.5693, allocations: 7.953 kB / 0.7591 GB, free: 2.086 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.5694, allocations: 15.89 kB / 0.7591 GB, free: 2.07 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.308e-05/0.5694, allocations: 4 kB / 0.7592 GB, free: 2.066 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: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete 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 9.474e-05/0.5695, allocations: 108.9 kB / 0.7593 GB, free: 1.953 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.314e-05/0.5696, allocations: 12.03 kB / 0.7593 GB, free: 1.941 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002395/0.5698, allocations: 82.3 kB / 0.7593 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.5699, allocations: 0 / 0.7593 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.5699, allocations: 0 / 0.7593 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.5699, allocations: 3.953 kB / 0.7593 GB, free: 1.848 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004644/0.5704, allocations: 338.4 kB / 0.7597 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.5704, allocations: 256 / 0.7597 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001346/0.5705, allocations: 23.98 kB / 0.7597 GB, free: 1.438 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.5705, allocations: 0 / 0.7597 GB, free: 1.438 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.5706, allocations: 4 kB / 0.7597 GB, free: 1.434 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.5706, allocations: 3.953 kB / 0.7597 GB, free: 1.43 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.676e-06/0.5706, allocations: 3.984 kB / 0.7597 GB, free: 1.426 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002495/0.5708, allocations: 167.5 kB / 0.7599 GB, free: 1.246 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.981e-05/0.5709, allocations: 84.95 kB / 0.7599 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.382e-05/0.5709, allocations: 0 / 0.7599 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.5711, allocations: 19.98 kB / 0.76 GB, free: 1.125 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.076e-05/0.5712, allocations: 12.12 kB / 0.76 GB, free: 1.113 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.5712, allocations: 4 kB / 0.76 GB, free: 1.109 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.673e-05/0.5713, allocations: 83.22 kB / 0.7601 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.91e-07/0.5713, allocations: 0 / 0.7601 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003045/0.5716, allocations: 15.94 kB / 0.7601 GB, free: 1.012 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 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * 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.0005828/0.5722, allocations: 0.7047 MB / 0.7608 GB, free: 288 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001828/0.5724, allocations: 47.88 kB / 0.7608 GB, free: 240 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.5724, allocations: 0 / 0.7608 GB, free: 240 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.556e-05/0.5725, allocations: 31.92 kB / 0.7608 GB, free: 208 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002362/0.5728, allocations: 12.16 kB / 0.7609 GB, free: 200 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004972/0.5733, allocations: 115 kB / 0.761 GB, free: 44 kB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003553/0.5736, allocations: 0.6848 MB / 0.7616 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.679e-05/0.5737, allocations: 8.172 kB / 0.7616 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.819e-05/0.5738, allocations: 19.44 kB / 0.7617 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of SimCode: time 8.02e-07/0.5738, allocations: 0 / 0.7617 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02395/0.5978, allocations: 1.391 MB / 0.763 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003342/0.5982, allocations: 158.9 kB / 0.7632 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.297/2.895, allocations: 4.062 kB / 0.7632 GB, free: 13.77 MB / 0.6511 GB