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.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.0106/0.0106, allocations: 220.3 kB / 15.17 MB, free: 5.996 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.001107/0.001107, allocations: 178.9 kB / 16.06 MB, free: 5.867 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 3.678/3.678, allocations: 389 MB / 405.9 MB, free: 67.64 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.391/4.391, allocations: 472.3 MB / 0.9018 GB, free: 13.37 MB / 0.573 GB Notification: Performance of FrontEnd - loaded program: time 0.000486/0.0004862, allocations: 12 kB / 1.008 GB, free: 0.8047 MB / 0.6667 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5558/0.5564, allocations: 98.72 MB / 1.104 GB, free: 183.8 MB / 0.6823 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001236/0.5576, allocations: 1.106 MB / 1.105 GB, free: 182.7 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.0004551/0.5581, allocations: 226.6 kB / 1.105 GB, free: 182.5 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.079e-05/0.5582, allocations: 0 / 1.105 GB, free: 182.5 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 1.355e-05/0.5582, allocations: 0 / 1.105 GB, free: 182.5 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 6.065e-05/0.5583, allocations: 14.11 kB / 1.105 GB, free: 182.5 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001511/0.5584, allocations: 27.84 kB / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 7.313e-05/0.5585, allocations: 52.66 kB / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 7.236e-05/0.5586, allocations: 8 kB / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 5.739e-05/0.5587, allocations: 23.08 kB / 1.105 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 5.395e-05/0.5587, allocations: 35.83 kB / 1.105 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 2.136e-05/0.5588, allocations: 4 kB / 1.105 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 1.289e-05/0.5588, allocations: 0 / 1.105 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 1.674e-05/0.5588, allocations: 11.98 kB / 1.106 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 3.554e-05/0.5589, allocations: 37.64 kB / 1.106 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 7.35e-05/0.559, allocations: 48.91 kB / 1.106 GB, free: 182.2 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.559, allocations: 0 / 1.106 GB, free: 182.2 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.887e-06/0.559, allocations: 2.406 kB / 1.106 GB, free: 182.2 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.474e-06/0.559, allocations: 0 / 1.106 GB, free: 182.2 MB / 0.6823 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.0005232/0.5595, allocations: 370 kB / 1.106 GB, free: 181.8 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.5596, allocations: 12.03 kB / 1.106 GB, free: 181.8 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.288e-05/0.5596, allocations: 3.906 kB / 1.106 GB, free: 181.8 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.214e-05/0.5597, allocations: 175.5 kB / 1.106 GB, free: 181.6 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.845e-05/0.5598, allocations: 8 kB / 1.106 GB, free: 181.6 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.898e-05/0.5598, allocations: 4 kB / 1.106 GB, free: 181.6 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002901/0.5601, allocations: 87.44 kB / 1.106 GB, free: 181.5 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.5601, allocations: 0.5625 kB / 1.106 GB, free: 181.5 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.5601, allocations: 7.125 kB / 1.106 GB, free: 181.5 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.967e-06/0.5602, allocations: 0 / 1.106 GB, free: 181.5 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000235/0.5604, allocations: 68.69 kB / 1.106 GB, free: 181.4 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004476/0.5609, allocations: 308.1 kB / 1.107 GB, free: 181.1 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002201/0.5611, allocations: 84.16 kB / 1.107 GB, free: 181 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/0.5613, allocations: 61.25 kB / 1.107 GB, free: 180.9 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.5613, allocations: 0 / 1.107 GB, free: 180.9 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002447/0.5616, allocations: 89.03 kB / 1.107 GB, free: 180.8 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=10): time 3.019e-06/0.5616, allocations: 1.078 kB / 1.107 GB, free: 180.8 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10): time 0.0005571/0.5621, allocations: 200.2 kB / 1.107 GB, free: 180.6 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.394e-05/0.5622, allocations: 55.39 kB / 1.107 GB, free: 180.6 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.689e-05/0.5623, allocations: 105.9 kB / 1.107 GB, free: 180.4 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/0.5623, allocations: 33.69 kB / 1.107 GB, free: 180.4 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 3.862e-05/0.5624, allocations: 95.2 kB / 1.107 GB, free: 180.3 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.225e-05/0.5624, allocations: 27.64 kB / 1.107 GB, free: 180.3 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.185e-06/0.5624, allocations: 4 kB / 1.107 GB, free: 180.3 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 5.428e-05/0.5625, allocations: 314.8 kB / 1.108 GB, free: 180 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.5626, allocations: 43.19 kB / 1.108 GB, free: 179.9 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.5628, allocations: 75.39 kB / 1.108 GB, free: 179.8 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.563, allocations: 52.41 kB / 1.108 GB, free: 179.8 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.847e-06/0.563, allocations: 0 / 1.108 GB, free: 179.8 MB / 0.6823 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003899/0.5634, allocations: 149 kB / 1.108 GB, free: 179.6 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.5634, allocations: 8 kB / 1.108 GB, free: 179.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.161e-06/0.5634, allocations: 0.8125 kB / 1.108 GB, free: 179.6 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.5634, allocations: 4 kB / 1.108 GB, free: 179.6 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.5636, allocations: 23.92 kB / 1.108 GB, free: 179.6 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.301e-06/0.5636, allocations: 3.953 kB / 1.108 GB, free: 179.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.078e-05/0.5637, allocations: 15.47 kB / 1.108 GB, free: 179.6 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/0.5638, allocations: 11.98 kB / 1.108 GB, free: 179.6 MB / 0.6823 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 () * Number of clocked 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 8.61e-05/0.5639, allocations: 119.7 kB / 1.108 GB, free: 179.4 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.069e-05/0.5639, allocations: 11.84 kB / 1.108 GB, free: 179.4 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004016/0.5643, allocations: 158.8 kB / 1.108 GB, free: 179.3 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.261e-06/0.5643, allocations: 4 kB / 1.108 GB, free: 179.3 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.5643, allocations: 0 / 1.108 GB, free: 179.3 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.81e-06/0.5644, allocations: 3.953 kB / 1.108 GB, free: 179.3 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005741/0.5649, allocations: 418.5 kB / 1.109 GB, free: 178.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.205e-06/0.565, allocations: 0 / 1.109 GB, free: 178.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.092e-05/0.5651, allocations: 15.67 kB / 1.109 GB, free: 178.8 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.235e-06/0.5651, allocations: 0 / 1.109 GB, free: 178.8 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.5651, allocations: 6.391 kB / 1.109 GB, free: 178.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.5651, allocations: 7.938 kB / 1.109 GB, free: 178.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.035e-06/0.5651, allocations: 0 / 1.109 GB, free: 178.8 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003803/0.5655, allocations: 247.3 kB / 1.109 GB, free: 178.5 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 2.509e-05/0.5656, allocations: 81.02 kB / 1.109 GB, free: 178.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.5656, allocations: 1.188 kB / 1.109 GB, free: 178.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001387/0.5658, allocations: 19.8 kB / 1.109 GB, free: 178.4 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.843e-05/0.5658, allocations: 11.94 kB / 1.109 GB, free: 178.4 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.47e-05/0.5658, allocations: 4 kB / 1.109 GB, free: 178.4 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.413e-05/0.5659, allocations: 83.27 kB / 1.109 GB, free: 178.3 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6.88e-07/0.5659, allocations: 0 / 1.109 GB, free: 178.3 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003313/0.5662, allocations: 20 kB / 1.109 GB, free: 178.3 MB / 0.6823 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) * Number of clocked states: 0 () * 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.0001177/0.5664, allocations: 116.9 kB / 1.109 GB, free: 178.2 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003474/0.5667, allocations: 109.9 kB / 1.109 GB, free: 178.1 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.79e-06/0.5667, allocations: 4 kB / 1.109 GB, free: 178.1 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.5669, allocations: 55.95 kB / 1.109 GB, free: 178 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003413/0.5673, allocations: 13.23 kB / 1.109 GB, free: 178 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003847/0.5677, allocations: 172.7 kB / 1.11 GB, free: 177.8 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001357/0.5678, allocations: 0.6887 MB / 1.11 GB, free: 177.1 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.342e-05/0.5679, allocations: 4.438 kB / 1.11 GB, free: 177.1 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.536e-05/0.5679, allocations: 14.47 kB / 1.11 GB, free: 177.1 MB / 0.6823 GB Notification: Performance of SimCode: time 1.447e-06/0.5679, allocations: 0 / 1.11 GB, free: 177.1 MB / 0.6823 GB Notification: Performance of Templates: time 0.003291/0.5712, allocations: 0.7409 MB / 1.111 GB, free: 176.4 MB / 0.6823 GB