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 Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.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 Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.008996/0.008996, allocations: 110.6 kB / 15.05 MB, free: 5.961 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001104/0.001104, allocations: 184.1 kB / 15.94 MB, free: 5.926 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.161/2.161, allocations: 194.6 MB / 211.3 MB, free: 11.26 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.206/2.206, allocations: 236.2 MB / 492.6 MB, free: 11.31 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004687/0.0004691, allocations: 12 kB / 0.587 GB, free: 2.164 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5624/0.5629, allocations: 98.71 MB / 0.6833 GB, free: 16.82 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1868/0.7497, allocations: 124.6 MB / 0.805 GB, free: 1.734 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002352/0.75, allocations: 71.95 kB / 0.8051 GB, free: 1.664 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.00315/0.7531, allocations: 0.8927 MB / 0.8059 GB, free: 0.7695 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.95e-06/0.7532, allocations: 0 / 0.8059 GB, free: 0.7695 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.069e-05/0.7532, allocations: 0 / 0.8059 GB, free: 0.7695 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005561/0.7538, allocations: 355.2 kB / 0.8063 GB, free: 384 kB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.7538, allocations: 20.02 kB / 0.8063 GB, free: 364 kB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.605e-05/0.7539, allocations: 0 / 0.8063 GB, free: 364 kB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/0.754, allocations: 174.9 kB / 0.8065 GB, free: 148 kB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.754, allocations: 0 / 0.8065 GB, free: 148 kB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.66e-05/0.7541, allocations: 4 kB / 0.8065 GB, free: 144 kB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002362/0.7543, allocations: 69.66 kB / 0.8065 GB, free: 68 kB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.388e-06/0.7543, allocations: 0 / 0.8065 GB, free: 68 kB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.7544, allocations: 8 kB / 0.8065 GB, free: 60 kB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.851e-06/0.7544, allocations: 0 / 0.8065 GB, free: 60 kB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002484/0.7546, allocations: 51.94 kB / 0.8066 GB, free: 8 kB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005862/0.7552, allocations: 304.7 kB / 0.8069 GB, free: 15.66 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.7555, allocations: 66.48 kB / 0.8069 GB, free: 15.59 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.123e-05/0.7555, allocations: 0 / 0.8069 GB, free: 15.59 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002471/0.7558, allocations: 83.5 kB / 0.807 GB, free: 15.49 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 6.895e-06/0.7558, allocations: 3.984 kB / 0.807 GB, free: 15.49 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0005206/0.7563, allocations: 145.6 kB / 0.8072 GB, free: 15.34 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.254e-05/0.7564, allocations: 55.36 kB / 0.8072 GB, free: 15.27 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.463e-05/0.7565, allocations: 100.9 kB / 0.8073 GB, free: 15.17 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.7565, allocations: 29.69 kB / 0.8073 GB, free: 15.13 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.395e-05/0.7566, allocations: 84.14 kB / 0.8074 GB, free: 15.05 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.13e-05/0.7566, allocations: 19.75 kB / 0.8074 GB, free: 15.03 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.558e-06/0.7567, allocations: 4 kB / 0.8074 GB, free: 15.02 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.7568, allocations: 322.8 kB / 0.8077 GB, free: 14.7 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.757, allocations: 23.98 kB / 0.8078 GB, free: 14.68 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.7571, allocations: 64.27 kB / 0.8078 GB, free: 14.6 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001375/0.7573, allocations: 35.92 kB / 0.8079 GB, free: 14.56 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.339e-06/0.7573, allocations: 0 / 0.8079 GB, free: 14.56 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000369/0.7577, allocations: 125.5 kB / 0.808 GB, free: 14.43 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.7577, allocations: 8 kB / 0.808 GB, free: 14.43 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.419e-06/0.7577, allocations: 192 / 0.808 GB, free: 14.43 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.7578, allocations: 4 kB / 0.808 GB, free: 14.42 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.7579, allocations: 27.98 kB / 0.808 GB, free: 14.39 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.7579, allocations: 4 kB / 0.808 GB, free: 14.39 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.758, allocations: 20.19 kB / 0.808 GB, free: 14.37 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.7581, allocations: 4 kB / 0.808 GB, free: 14.37 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 () * 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.0001167/0.7582, allocations: 115.1 kB / 0.8082 GB, free: 14.25 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.053e-05/0.7582, allocations: 3.906 kB / 0.8082 GB, free: 14.24 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003953/0.7586, allocations: 129.9 kB / 0.8083 GB, free: 14.11 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.21e-06/0.7587, allocations: 0 / 0.8083 GB, free: 14.11 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.253e-06/0.7587, allocations: 0 / 0.8083 GB, free: 14.11 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.166e-06/0.7587, allocations: 0 / 0.8083 GB, free: 14.11 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00063/0.7593, allocations: 378.8 kB / 0.8086 GB, free: 13.68 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.114e-06/0.7593, allocations: 0 / 0.8086 GB, free: 13.68 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.964e-05/0.7594, allocations: 11.98 kB / 0.8087 GB, free: 13.67 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.942e-06/0.7595, allocations: 4 kB / 0.8087 GB, free: 13.66 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.7595, allocations: 0 / 0.8087 GB, free: 13.66 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.491e-06/0.7595, allocations: 3.938 kB / 0.8087 GB, free: 13.66 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.74e-06/0.7595, allocations: 7.953 kB / 0.8087 GB, free: 13.65 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003942/0.7599, allocations: 203.5 kB / 0.8089 GB, free: 13.44 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.548e-05/0.76, allocations: 85.02 kB / 0.8089 GB, free: 13.34 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.27e-05/0.76, allocations: 4 kB / 0.8089 GB, free: 13.33 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.7602, allocations: 15.98 kB / 0.809 GB, free: 13.32 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.644e-05/0.7602, allocations: 11.94 kB / 0.809 GB, free: 13.3 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.7603, allocations: 0 / 0.809 GB, free: 13.3 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.194e-05/0.7603, allocations: 87.22 kB / 0.8091 GB, free: 13.22 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.38e-07/0.7603, allocations: 0 / 0.8091 GB, free: 13.22 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003264/0.7607, allocations: 12 kB / 0.8091 GB, free: 13.21 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) * 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.000142/0.7608, allocations: 107.2 kB / 0.8092 GB, free: 13.09 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003319/0.7612, allocations: 75.89 kB / 0.8092 GB, free: 13.02 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.7612, allocations: 0 / 0.8092 GB, free: 13.02 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001608/0.7614, allocations: 44.22 kB / 0.8093 GB, free: 12.97 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002184/0.7616, allocations: 7.938 kB / 0.8093 GB, free: 12.96 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003809/0.762, allocations: 136.9 kB / 0.8094 GB, free: 12.8 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003629/0.7624, allocations: 0.6965 MB / 0.8101 GB, free: 12.08 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.456e-05/0.7624, allocations: 8.172 kB / 0.8101 GB, free: 12.07 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.755e-05/0.7625, allocations: 7.438 kB / 0.8101 GB, free: 12.07 MB / 0.6355 GB Notification: Performance of SimCode: time 1.506e-06/0.7625, allocations: 0 / 0.8101 GB, free: 12.07 MB / 0.6355 GB Notification: Performance of Templates: time 0.003192/0.7657, allocations: 0.5793 MB / 0.8107 GB, free: 11.5 MB / 0.6355 GB