Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.866/4.866, allocations: 0.5623 GB / 0.5775 GB, free: 66.94 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002669/0.002669, allocations: 358.6 kB / 0.6446 GB, free: 21.59 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.177/4.177, allocations: 410.8 MB / 1.113 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001769/0.001769, allocations: 180.6 kB / 1.226 GB, free: 11.55 MB / 0.7292 GB Notification: Performance of FrontEnd - loaded program: time 0.0004839/0.0004843, allocations: 12.41 kB / 1.349 GB, free: 321.1 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.2174, allocations: 115.3 MB / 1.461 GB, free: 220.7 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.201/0.4185, allocations: 137.8 MB / 1.596 GB, free: 82.7 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/0.4188, allocations: 79.95 kB / 1.596 GB, free: 82.62 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 0.004406/0.4232, allocations: 1.102 MB / 1.597 GB, free: 81.53 MB / 0.8073 GB Notification: Performance of FrontEnd: time 2.063e-06/0.4233, allocations: 3.938 kB / 1.597 GB, free: 81.52 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.973e-06/0.4233, allocations: 0 / 1.597 GB, free: 81.52 MB / 0.8073 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.0005263/0.4238, allocations: 373.7 kB / 1.597 GB, free: 81.11 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.4239, allocations: 9.906 kB / 1.597 GB, free: 81.11 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.208e-05/0.4239, allocations: 3.906 kB / 1.597 GB, free: 81.1 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.496e-05/0.424, allocations: 178.9 kB / 1.598 GB, free: 80.89 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.853e-05/0.4241, allocations: 1.344 kB / 1.598 GB, free: 80.89 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.712e-05/0.4241, allocations: 4 kB / 1.598 GB, free: 80.88 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002602/0.4244, allocations: 76.45 kB / 1.598 GB, free: 80.8 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.4244, allocations: 0 / 1.598 GB, free: 80.8 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.4244, allocations: 0 / 1.598 GB, free: 80.8 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.4244, allocations: 7.938 kB / 1.598 GB, free: 80.8 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002958/0.4247, allocations: 61.94 kB / 1.598 GB, free: 80.74 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005786/0.4253, allocations: 290.9 kB / 1.598 GB, free: 80.41 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002309/0.4256, allocations: 64.7 kB / 1.598 GB, free: 80.34 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.4257, allocations: 37.95 kB / 1.598 GB, free: 80.3 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.4258, allocations: 5.406 kB / 1.598 GB, free: 80.29 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002928/0.4261, allocations: 82.66 kB / 1.598 GB, free: 80.2 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.934e-06/0.4261, allocations: 0.8125 kB / 1.598 GB, free: 80.2 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0006086/0.4267, allocations: 144.4 kB / 1.598 GB, free: 80.06 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.4268, allocations: 56.11 kB / 1.598 GB, free: 79.99 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.85e-05/0.4269, allocations: 107 kB / 1.599 GB, free: 79.88 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.4269, allocations: 29.7 kB / 1.599 GB, free: 79.84 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.692e-05/0.4269, allocations: 84.14 kB / 1.599 GB, free: 79.76 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.839e-05/0.427, allocations: 24.25 kB / 1.599 GB, free: 79.73 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.384e-06/0.427, allocations: 4.562 kB / 1.599 GB, free: 79.73 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.917e-05/0.4271, allocations: 319.4 kB / 1.599 GB, free: 79.41 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.4272, allocations: 30.27 kB / 1.599 GB, free: 79.38 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.4274, allocations: 65.67 kB / 1.599 GB, free: 79.3 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/0.4276, allocations: 39.22 kB / 1.599 GB, free: 79.27 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.4276, allocations: 0 / 1.599 GB, free: 79.27 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004106/0.428, allocations: 127.8 kB / 1.599 GB, free: 79.14 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.4281, allocations: 5.375 kB / 1.599 GB, free: 79.14 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.4281, allocations: 0 / 1.599 GB, free: 79.14 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.4281, allocations: 4 kB / 1.599 GB, free: 79.13 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.4283, allocations: 20.77 kB / 1.599 GB, free: 79.11 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.4283, allocations: 4.125 kB / 1.599 GB, free: 79.11 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.4284, allocations: 17 kB / 1.599 GB, free: 79.09 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.4285, allocations: 13.66 kB / 1.599 GB, free: 79.08 MB / 0.8073 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.847e-05/0.4286, allocations: 117.6 kB / 1.599 GB, free: 78.96 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.861e-05/0.4286, allocations: 3.953 kB / 1.599 GB, free: 78.96 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004162/0.429, allocations: 124.9 kB / 1.599 GB, free: 78.84 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.429, allocations: 0 / 1.599 GB, free: 78.84 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.429, allocations: 4.844 kB / 1.599 GB, free: 78.83 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.4291, allocations: 0 / 1.599 GB, free: 78.83 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005671/0.4296, allocations: 373.1 kB / 1.6 GB, free: 78.41 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.4297, allocations: 1.5 kB / 1.6 GB, free: 78.41 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.4298, allocations: 15.98 kB / 1.6 GB, free: 78.4 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.227e-06/0.4298, allocations: 0 / 1.6 GB, free: 78.4 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.4298, allocations: 0.9688 kB / 1.6 GB, free: 78.4 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.4298, allocations: 0 / 1.6 GB, free: 78.4 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.4298, allocations: 7.891 kB / 1.6 GB, free: 78.39 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004311/0.4303, allocations: 210.9 kB / 1.6 GB, free: 78.17 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.466e-05/0.4303, allocations: 81.11 kB / 1.6 GB, free: 78.07 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.4303, allocations: 1.031 kB / 1.6 GB, free: 78.07 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001548/0.4305, allocations: 18.08 kB / 1.6 GB, free: 78.06 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.164e-05/0.4306, allocations: 11.95 kB / 1.6 GB, free: 78.05 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.4306, allocations: 0 / 1.6 GB, free: 78.05 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.499e-05/0.4306, allocations: 87.27 kB / 1.6 GB, free: 77.96 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.3e-07/0.4306, allocations: 1.062 kB / 1.6 GB, free: 77.96 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003184/0.431, allocations: 19.94 kB / 1.6 GB, free: 77.94 MB / 0.8073 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.0001606/0.4311, allocations: 110 kB / 1.6 GB, free: 77.82 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.000391/0.4316, allocations: 82.3 kB / 1.6 GB, free: 77.75 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4316, allocations: 0 / 1.6 GB, free: 77.75 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001812/0.4318, allocations: 41.38 kB / 1.601 GB, free: 77.71 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.4321, allocations: 8.766 kB / 1.601 GB, free: 77.7 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003697/0.4325, allocations: 151.7 kB / 1.601 GB, free: 77.52 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001363/0.4326, allocations: 0.6848 MB / 1.601 GB, free: 76.81 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 4.954e-05/0.4327, allocations: 5.234 kB / 1.601 GB, free: 76.81 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.242e-05/0.4327, allocations: 11.44 kB / 1.601 GB, free: 76.8 MB / 0.8073 GB Notification: Performance of SimCode: time 9.12e-07/0.4327, allocations: 1.125 kB / 1.601 GB, free: 76.8 MB / 0.8073 GB Notification: Performance of Templates: time 0.003679/0.4364, allocations: 0.715 MB / 1.602 GB, free: 76.12 MB / 0.8073 GB