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.009344/0.009344, allocations: 111.2 kB / 15.06 MB, free: 5.562 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.001152/0.001152, allocations: 179.9 kB / 15.95 MB, free: 5.523 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.071/2.071, allocations: 194.6 MB / 211.3 MB, free: 11.05 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.319/2.319, allocations: 236.2 MB / 492.6 MB, free: 11.39 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004704/0.0004705, allocations: 12 kB / 0.5869 GB, free: 2.172 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5492/0.5497, allocations: 98.72 MB / 0.6833 GB, free: 16.86 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001396/0.5511, allocations: 1.102 MB / 0.6844 GB, free: 16.04 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0005074/0.5517, allocations: 231.6 kB / 0.6846 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.513e-05/0.5517, allocations: 1.094 kB / 0.6846 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 1.782e-05/0.5518, allocations: 5.125 kB / 0.6847 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 5.873e-05/0.5518, allocations: 10.08 kB / 0.6847 GB, free: 15.87 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001657/0.552, allocations: 22.78 kB / 0.6847 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 7.694e-05/0.5521, allocations: 36.75 kB / 0.6847 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 8.667e-05/0.5522, allocations: 8.312 kB / 0.6847 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 6.63e-05/0.5523, allocations: 20.58 kB / 0.6847 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 6.452e-05/0.5524, allocations: 30.7 kB / 0.6848 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 1.892e-05/0.5524, allocations: 3 kB / 0.6848 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 1.594e-05/0.5524, allocations: 7.719 kB / 0.6848 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 2.331e-05/0.5525, allocations: 13.81 kB / 0.6848 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 3.241e-05/0.5525, allocations: 35.17 kB / 0.6848 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 9.368e-05/0.5526, allocations: 38.17 kB / 0.6849 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.649e-06/0.5526, allocations: 0 / 0.6849 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.142e-06/0.5526, allocations: 1 kB / 0.6849 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.95e-06/0.5526, allocations: 0 / 0.6849 GB, free: 15.76 MB / 0.5261 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.0005159/0.5532, allocations: 376.1 kB / 0.6852 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.5532, allocations: 13.36 kB / 0.6852 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.307e-05/0.5533, allocations: 8.938 kB / 0.6852 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.078e-05/0.5534, allocations: 173.6 kB / 0.6854 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.983e-05/0.5534, allocations: 7.781 kB / 0.6854 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.5534, allocations: 6.203 kB / 0.6854 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002593/0.5537, allocations: 85.42 kB / 0.6855 GB, free: 15.13 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.654e-06/0.5537, allocations: 0 / 0.6855 GB, free: 15.13 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.5538, allocations: 4.703 kB / 0.6855 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.972e-06/0.5538, allocations: 2.156 kB / 0.6855 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002687/0.5541, allocations: 59.28 kB / 0.6856 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000502/0.5546, allocations: 315.8 kB / 0.6859 GB, free: 14.82 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002428/0.5548, allocations: 82.83 kB / 0.686 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.5549, allocations: 5.25 kB / 0.686 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002747/0.5552, allocations: 102.8 kB / 0.6861 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=10): time 2.939e-06/0.5552, allocations: 0 / 0.6861 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=10): time 0.0006564/0.5558, allocations: 185.7 kB / 0.6862 GB, free: 14.63 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.5559, allocations: 64.14 kB / 0.6863 GB, free: 14.56 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.68e-05/0.556, allocations: 104 kB / 0.6864 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.155e-05/0.556, allocations: 32.42 kB / 0.6864 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.948e-05/0.5561, allocations: 92.16 kB / 0.6865 GB, free: 14.33 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.59e-05/0.5561, allocations: 37.56 kB / 0.6865 GB, free: 14.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.381e-06/0.5561, allocations: 1.156 kB / 0.6865 GB, free: 14.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 5.587e-05/0.5562, allocations: 318.9 kB / 0.6869 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.5564, allocations: 39.8 kB / 0.6869 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.5565, allocations: 74.75 kB / 0.687 GB, free: 13.93 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001657/0.5567, allocations: 44.34 kB / 0.687 GB, free: 13.92 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.194e-06/0.5567, allocations: 0 / 0.687 GB, free: 13.92 MB / 0.5261 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004085/0.5572, allocations: 154.1 kB / 0.6872 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.5572, allocations: 5.281 kB / 0.6872 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.618e-06/0.5572, allocations: 1.25 kB / 0.6872 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.5572, allocations: 3.109 kB / 0.6872 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.5574, allocations: 24.45 kB / 0.6872 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.5574, allocations: 15.05 kB / 0.6872 GB, free: 13.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.599e-05/0.5575, allocations: 17.66 kB / 0.6872 GB, free: 13.82 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.5576, allocations: 4.391 kB / 0.6872 GB, free: 13.82 MB / 0.5261 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 9.331e-05/0.5577, allocations: 120.9 kB / 0.6873 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.289e-05/0.5577, allocations: 11.19 kB / 0.6873 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000446/0.5581, allocations: 160.8 kB / 0.6875 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.275e-06/0.5582, allocations: 2.094 kB / 0.6875 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.998e-06/0.5582, allocations: 96 / 0.6875 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.5582, allocations: 9.375 kB / 0.6875 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006325/0.5588, allocations: 409.4 kB / 0.6879 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.264e-06/0.5589, allocations: 1 kB / 0.6879 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.559, allocations: 17.17 kB / 0.6879 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.882e-06/0.559, allocations: 1 kB / 0.6879 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.559, allocations: 6.656 kB / 0.6879 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.956e-06/0.559, allocations: 12.83 kB / 0.6879 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.559, allocations: 0 / 0.6879 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004509/0.5595, allocations: 240.4 kB / 0.6882 GB, free: 13.09 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 2.554e-05/0.5596, allocations: 87.02 kB / 0.6883 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.954e-05/0.5596, allocations: 7.672 kB / 0.6883 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000144/0.5597, allocations: 10.83 kB / 0.6883 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.849e-05/0.5598, allocations: 10.52 kB / 0.6883 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.5598, allocations: 4.219 kB / 0.6883 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.97e-05/0.5599, allocations: 85.08 kB / 0.6884 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.84e-07/0.5599, allocations: 0 / 0.6884 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003458/0.5603, allocations: 18.73 kB / 0.6884 GB, free: 12.9 MB / 0.5261 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.0001115/0.5604, allocations: 109.3 kB / 0.6885 GB, free: 12.81 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0004002/0.5608, allocations: 106.1 kB / 0.6886 GB, free: 12.79 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.963e-06/0.5608, allocations: 192 / 0.6886 GB, free: 12.79 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001812/0.561, allocations: 56.14 kB / 0.6886 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002344/0.5612, allocations: 16.42 kB / 0.6887 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004045/0.5617, allocations: 174.4 kB / 0.6888 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001348/0.5618, allocations: 0.6929 MB / 0.6895 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 5.226e-05/0.5619, allocations: 6.188 kB / 0.6895 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.95e-05/0.5619, allocations: 13.09 kB / 0.6895 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of SimCode: time 1.36e-06/0.5619, allocations: 0 / 0.6895 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of Templates: time 0.005243/0.5672, allocations: 0.7419 MB / 0.6902 GB, free: 11.82 MB / 0.5261 GB