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.004244/0.004244, allocations: 238.5 kB / 15.81 MB, free: 6.316 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.001143/0.001143, allocations: 179.6 kB / 16.68 MB, free: 5.473 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.908/3.908, allocations: 389.1 MB / 406.5 MB, free: 11.86 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.191/4.191, allocations: 472.3 MB / 0.9024 GB, free: 9.254 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0006377/0.0006379, allocations: 8 kB / 1.008 GB, free: 138.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.1794, allocations: 98.72 MB / 1.105 GB, free: 42.03 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001475/0.1809, allocations: 1.095 MB / 1.106 GB, free: 40.93 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005325/0.1815, allocations: 224.9 kB / 1.106 GB, free: 40.71 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.586e-05/0.1815, allocations: 0 / 1.106 GB, free: 40.71 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.018e-05/0.1816, allocations: 3.938 kB / 1.106 GB, free: 40.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.748e-05/0.1816, allocations: 3.938 kB / 1.106 GB, free: 40.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001815/0.1818, allocations: 27.91 kB / 1.106 GB, free: 40.67 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.556e-05/0.1819, allocations: 43.84 kB / 1.106 GB, free: 40.63 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.034e-05/0.182, allocations: 6.031 kB / 1.106 GB, free: 40.62 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.217e-05/0.1821, allocations: 15.92 kB / 1.106 GB, free: 40.61 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.966e-05/0.1822, allocations: 19.92 kB / 1.106 GB, free: 40.59 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.578e-05/0.1822, allocations: 3.219 kB / 1.106 GB, free: 40.59 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.566e-05/0.1822, allocations: 4 kB / 1.106 GB, free: 40.59 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.97e-05/0.1822, allocations: 7.969 kB / 1.106 GB, free: 40.58 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.884e-05/0.1823, allocations: 33.7 kB / 1.106 GB, free: 40.54 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.187e-05/0.1824, allocations: 23.94 kB / 1.106 GB, free: 40.52 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1824, allocations: 3.938 kB / 1.106 GB, free: 40.51 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.773e-06/0.1824, allocations: 0 / 1.106 GB, free: 40.51 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.1824, allocations: 0 / 1.106 GB, free: 40.51 MB / 0.6042 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.0005708/0.183, allocations: 362.4 kB / 1.106 GB, free: 40.11 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.183, allocations: 8.031 kB / 1.106 GB, free: 40.11 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.27e-05/0.1831, allocations: 19.86 kB / 1.106 GB, free: 40.09 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.863e-05/0.1832, allocations: 167.9 kB / 1.107 GB, free: 39.88 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.1832, allocations: 0 / 1.107 GB, free: 39.88 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.957e-05/0.1832, allocations: 7.125 kB / 1.107 GB, free: 39.88 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000259/0.1835, allocations: 69.66 kB / 1.107 GB, free: 39.8 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.1835, allocations: 0 / 1.107 GB, free: 39.8 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.1835, allocations: 0.9844 kB / 1.107 GB, free: 39.8 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.1836, allocations: 3.953 kB / 1.107 GB, free: 39.8 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002996/0.1839, allocations: 63.59 kB / 1.107 GB, free: 39.74 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004363/0.1843, allocations: 272.8 kB / 1.107 GB, free: 39.43 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002185/0.1845, allocations: 60.8 kB / 1.107 GB, free: 39.36 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.1847, allocations: 43.58 kB / 1.107 GB, free: 39.32 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.196e-05/0.1848, allocations: 3.938 kB / 1.107 GB, free: 39.31 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002738/0.185, allocations: 96.02 kB / 1.107 GB, free: 39.21 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 2.074e-06/0.1851, allocations: 0 / 1.107 GB, free: 39.21 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0006029/0.1857, allocations: 141.2 kB / 1.107 GB, free: 39.07 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.788e-05/0.1857, allocations: 51.41 kB / 1.107 GB, free: 39.01 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.345e-05/0.1858, allocations: 105.8 kB / 1.107 GB, free: 38.89 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.385e-05/0.1858, allocations: 29.7 kB / 1.108 GB, free: 38.86 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.473e-05/0.1859, allocations: 80.14 kB / 1.108 GB, free: 38.78 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.469e-05/0.1859, allocations: 19.72 kB / 1.108 GB, free: 38.76 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-06/0.1859, allocations: 0 / 1.108 GB, free: 38.76 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.057e-05/0.186, allocations: 330.3 kB / 1.108 GB, free: 38.43 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.1861, allocations: 23.98 kB / 1.108 GB, free: 38.41 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001702/0.1863, allocations: 68.89 kB / 1.108 GB, free: 38.32 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001668/0.1865, allocations: 39.97 kB / 1.108 GB, free: 38.29 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.1865, allocations: 4 kB / 1.108 GB, free: 38.29 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003954/0.1869, allocations: 116.9 kB / 1.108 GB, free: 38.17 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.1869, allocations: 4 kB / 1.108 GB, free: 38.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.187, allocations: 3.953 kB / 1.108 GB, free: 38.16 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.187, allocations: 7.984 kB / 1.108 GB, free: 38.15 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.1872, allocations: 23.44 kB / 1.108 GB, free: 38.13 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.1872, allocations: 3.984 kB / 1.108 GB, free: 38.13 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.1873, allocations: 17.02 kB / 1.108 GB, free: 38.11 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.1873, allocations: 4 kB / 1.108 GB, free: 38.11 MB / 0.6042 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 7.993e-05/0.1874, allocations: 117.8 kB / 1.108 GB, free: 37.98 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.657e-05/0.1874, allocations: 7.484 kB / 1.108 GB, free: 37.98 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004116/0.1879, allocations: 114 kB / 1.108 GB, free: 37.86 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.1879, allocations: 3.953 kB / 1.108 GB, free: 37.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1879, allocations: 0 / 1.108 GB, free: 37.86 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.669e-05/0.1879, allocations: 88.39 kB / 1.109 GB, free: 37.75 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.592e-05/0.188, allocations: 0 / 1.109 GB, free: 37.75 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.1881, allocations: 15.98 kB / 1.109 GB, free: 37.74 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.037e-05/0.1881, allocations: 9.438 kB / 1.109 GB, free: 37.73 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004484/0.1886, allocations: 199.9 kB / 1.109 GB, free: 37.53 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0004116/0.189, allocations: 282.2 kB / 1.109 GB, free: 37.24 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00017/0.1892, allocations: 39.95 kB / 1.109 GB, free: 37.21 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.638e-05/0.1893, allocations: 87.28 kB / 1.109 GB, free: 37.12 MB / 0.6042 GB Notification: Performance of Backend: time 8.92e-07/0.1893, allocations: 7.875 kB / 1.109 GB, free: 37.11 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005344/0.1898, allocations: 129.2 kB / 1.109 GB, free: 36.98 MB / 0.6042 GB Notification: Performance of SimCode: time 0.0004523/0.1903, allocations: 0.5838 MB / 1.11 GB, free: 36.36 MB / 0.6042 GB Notification: Performance of Templates: time 0.003629/0.1939, allocations: 0.6816 MB / 1.111 GB, free: 35.72 MB / 0.6042 GB