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.01231/0.01232, allocations: 107.4 kB / 15.06 MB, free: 5.602 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.001686/0.001686, allocations: 182.7 kB / 15.95 MB, free: 5.539 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.127/2.127, 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.308/2.308, allocations: 236.2 MB / 492.6 MB, free: 11.31 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007854/0.0007855, allocations: 16 kB / 0.587 GB, free: 2.16 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.562/0.5629, allocations: 98.71 MB / 0.6833 GB, free: 16.81 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001391/0.5643, allocations: 1.087 MB / 0.6844 GB, free: 16 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0004791/0.5648, allocations: 223.9 kB / 0.6846 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.762e-05/0.5649, allocations: 3.938 kB / 0.6846 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 1.545e-05/0.5649, allocations: 4.828 kB / 0.6846 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 5.845e-05/0.565, allocations: 9.578 kB / 0.6846 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.000157/0.5651, allocations: 17.64 kB / 0.6847 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 6.813e-05/0.5652, allocations: 29.67 kB / 0.6847 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 8.636e-05/0.5653, allocations: 6.531 kB / 0.6847 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 6.096e-05/0.5654, allocations: 21.77 kB / 0.6847 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 4.738e-05/0.5654, allocations: 18.2 kB / 0.6847 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.5655, allocations: 1.375 kB / 0.6847 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 1.307e-05/0.5655, allocations: 3.031 kB / 0.6847 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 2.018e-05/0.5655, allocations: 15.56 kB / 0.6847 GB, free: 15.78 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 2.694e-05/0.5656, allocations: 28.33 kB / 0.6848 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 7.698e-05/0.5656, allocations: 28.66 kB / 0.6848 GB, free: 15.74 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.5657, allocations: 0 / 0.6848 GB, free: 15.74 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.187e-06/0.5657, allocations: 0 / 0.6848 GB, free: 15.74 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.2e-06/0.5657, allocations: 1.438 kB / 0.6848 GB, free: 15.74 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004627/0.5662, allocations: 368.7 kB / 0.6852 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.5662, allocations: 8.875 kB / 0.6852 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.269e-05/0.5662, allocations: 2.656 kB / 0.6852 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.486e-05/0.5663, allocations: 166.7 kB / 0.6853 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.5664, allocations: 6.688 kB / 0.6853 GB, free: 15.17 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.939e-05/0.5664, allocations: 3 kB / 0.6853 GB, free: 15.17 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002283/0.5666, allocations: 72.41 kB / 0.6854 GB, free: 15.13 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.745e-06/0.5667, allocations: 0 / 0.6854 GB, free: 15.13 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.5667, allocations: 5 kB / 0.6854 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.445e-06/0.5667, allocations: 2.281 kB / 0.6854 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002375/0.5669, allocations: 50.97 kB / 0.6855 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003904/0.5673, allocations: 282.5 kB / 0.6857 GB, free: 14.83 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002052/0.5676, allocations: 70.86 kB / 0.6858 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.5676, allocations: 1 kB / 0.6858 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002317/0.5678, allocations: 78.38 kB / 0.6859 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=7): time 2.559e-06/0.5679, allocations: 0 / 0.6859 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of matching and sorting (n=7): time 0.0005498/0.5684, allocations: 144.2 kB / 0.686 GB, free: 14.67 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.5685, allocations: 57.45 kB / 0.6861 GB, free: 14.61 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.471e-05/0.5686, allocations: 107.2 kB / 0.6862 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.5686, allocations: 32.02 kB / 0.6862 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.512e-05/0.5686, allocations: 90.09 kB / 0.6863 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.609e-05/0.5687, allocations: 16.12 kB / 0.6863 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-06/0.5687, allocations: 1.281 kB / 0.6863 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 5.627e-05/0.5688, allocations: 318.9 kB / 0.6866 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.5689, allocations: 28.05 kB / 0.6866 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.5691, allocations: 69.61 kB / 0.6867 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001406/0.5692, allocations: 40.08 kB / 0.6867 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.345e-06/0.5692, allocations: 0 / 0.6867 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003549/0.5696, allocations: 126.1 kB / 0.6869 GB, free: 13.92 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.5696, allocations: 4.875 kB / 0.6869 GB, free: 13.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.779e-06/0.5696, allocations: 5.656 kB / 0.6869 GB, free: 13.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.5697, allocations: 1.562 kB / 0.6869 GB, free: 13.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.5698, allocations: 23.53 kB / 0.6869 GB, free: 13.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.177e-06/0.5698, allocations: 2.531 kB / 0.6869 GB, free: 13.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.307e-05/0.5699, allocations: 17.03 kB / 0.6869 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.375e-05/0.57, allocations: 4.062 kB / 0.6869 GB, free: 13.9 MB / 0.5261 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 8.327e-05/0.5701, allocations: 124.2 kB / 0.687 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.016e-05/0.5701, allocations: 10.5 kB / 0.687 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003738/0.5705, allocations: 116.8 kB / 0.6872 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.61e-06/0.5705, allocations: 1.531 kB / 0.6872 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.5705, allocations: 0 / 0.6872 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.5705, allocations: 1.875 kB / 0.6872 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005356/0.5711, allocations: 377.3 kB / 0.6875 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.5711, allocations: 0 / 0.6875 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.326e-05/0.5712, allocations: 17.56 kB / 0.6875 GB, free: 13.37 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.5712, allocations: 4.969 kB / 0.6875 GB, free: 13.37 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.5712, allocations: 6.047 kB / 0.6875 GB, free: 13.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.934e-06/0.5712, allocations: 0 / 0.6875 GB, free: 13.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.212e-06/0.5713, allocations: 4.469 kB / 0.6875 GB, free: 13.36 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003449/0.5716, allocations: 203.8 kB / 0.6877 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 2.633e-05/0.5717, allocations: 80.34 kB / 0.6878 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.503e-05/0.5717, allocations: 4.656 kB / 0.6878 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.5718, allocations: 11.55 kB / 0.6878 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.958e-05/0.5719, allocations: 13.62 kB / 0.6878 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.5719, allocations: 2 kB / 0.6878 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.77e-05/0.572, allocations: 86.11 kB / 0.6879 GB, free: 13.03 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.16e-07/0.572, allocations: 7.938 kB / 0.6879 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003518/0.5724, allocations: 9.344 kB / 0.6879 GB, free: 13.02 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: 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.0001057/0.5725, allocations: 105.3 kB / 0.688 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0003321/0.5728, allocations: 78.22 kB / 0.6881 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.589e-06/0.5728, allocations: 1.188 kB / 0.6881 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000151/0.573, allocations: 39.2 kB / 0.6882 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.5732, allocations: 9.797 kB / 0.6882 GB, free: 12.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003413/0.5736, allocations: 150.8 kB / 0.6883 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001303/0.5737, allocations: 0.6865 MB / 0.689 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 4.282e-05/0.5738, allocations: 8.734 kB / 0.689 GB, free: 12.06 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.105e-05/0.5738, allocations: 10.59 kB / 0.689 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of SimCode: time 1.433e-06/0.5738, allocations: 0 / 0.689 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of Templates: time 0.003228/0.5771, allocations: 0.5633 MB / 0.6896 GB, free: 11.98 MB / 0.5261 GB