Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.546/2.546, allocations: 253.2 MB / 260.6 MB, free: 7.477 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001399/0.001398, allocations: 180.8 kB / 319.9 MB, free: 3.082 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.182/2.182, allocations: 205.6 MB / 0.5709 GB, free: 15.25 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001145/0.001145, allocations: 85.34 kB / 0.6751 GB, free: 4.617 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.332e-05/2.347e-05, allocations: 4 kB / 0.7849 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2023/0.2024, allocations: 106.3 MB / 0.8887 GB, free: 11.83 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.88/1.082, allocations: 131.7 MB / 1.017 GB, free: 5.582 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/1.083, allocations: 72.2 kB / 1.017 GB, free: 5.543 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003893/1.087, allocations: 0.8871 MB / 1.018 GB, free: 4.738 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.104e-06/1.087, allocations: 0 / 1.018 GB, free: 4.738 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.225e-06/1.087, allocations: 3.938 kB / 1.018 GB, free: 4.734 MB / 0.6355 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.0006435/1.087, allocations: 357.8 kB / 1.019 GB, free: 4.344 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/1.088, allocations: 8.031 kB / 1.019 GB, free: 4.336 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.9e-05/1.088, allocations: 7.906 kB / 1.019 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/1.088, allocations: 174.5 kB / 1.019 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/1.088, allocations: 5.938 kB / 1.019 GB, free: 4.117 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.943e-05/1.088, allocations: 3.984 kB / 1.019 GB, free: 4.113 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001211/1.088, allocations: 18 kB / 1.019 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001285/1.088, allocations: 45.31 kB / 1.019 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/1.088, allocations: 4 kB / 1.019 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/1.088, allocations: 0 / 1.019 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/1.088, allocations: 0 / 1.019 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006695/1.089, allocations: 280.4 kB / 1.019 GB, free: 3.754 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000131/1.089, allocations: 43.77 kB / 1.019 GB, free: 3.711 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.802e-05/1.089, allocations: 19.3 kB / 1.019 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/1.089, allocations: 0 / 1.019 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001733/1.089, allocations: 64.83 kB / 1.019 GB, free: 3.629 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.425e-06/1.089, allocations: 0 / 1.019 GB, free: 3.629 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002865/1.09, allocations: 68.47 kB / 1.019 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.558e-05/1.09, allocations: 55.41 kB / 1.019 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/1.09, allocations: 103.6 kB / 1.019 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/1.09, allocations: 25.7 kB / 1.019 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.909e-05/1.09, allocations: 88.12 kB / 1.02 GB, free: 3.273 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.376e-05/1.09, allocations: 18.97 kB / 1.02 GB, free: 3.258 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.753e-06/1.09, allocations: 0 / 1.02 GB, free: 3.258 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001378/1.09, allocations: 314.2 kB / 1.02 GB, free: 2.945 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.43e-05/1.09, allocations: 10.94 kB / 1.02 GB, free: 2.938 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.772e-05/1.09, allocations: 46.91 kB / 1.02 GB, free: 2.883 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.192e-05/1.09, allocations: 18.69 kB / 1.02 GB, free: 2.871 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/1.09, allocations: 0 / 1.02 GB, free: 2.871 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002071/1.091, allocations: 80.67 kB / 1.02 GB, free: 2.793 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/1.091, allocations: 4 kB / 1.02 GB, free: 2.789 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/1.091, allocations: 128 / 1.02 GB, free: 2.789 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/1.091, allocations: 11.94 kB / 1.02 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002433/1.091, allocations: 23.86 kB / 1.02 GB, free: 2.762 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/1.091, allocations: 0 / 1.02 GB, free: 2.762 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/1.091, allocations: 15.92 kB / 1.02 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/1.091, allocations: 8.141 kB / 1.02 GB, free: 2.738 MB / 0.6355 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 () * 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 0.0001149/1.091, allocations: 104.9 kB / 1.02 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.779e-05/1.091, allocations: 15.84 kB / 1.02 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002371/1.092, allocations: 81.52 kB / 1.02 GB, free: 2.535 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/1.092, allocations: 4.047 kB / 1.02 GB, free: 2.531 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/1.092, allocations: 3.984 kB / 1.02 GB, free: 2.527 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/1.092, allocations: 0 / 1.02 GB, free: 2.527 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004261/1.092, allocations: 312.3 kB / 1.021 GB, free: 2.199 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.247e-06/1.092, allocations: 0 / 1.021 GB, free: 2.199 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000131/1.092, allocations: 15.98 kB / 1.021 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/1.092, allocations: 4 kB / 1.021 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/1.092, allocations: 0 / 1.021 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/1.092, allocations: 0 / 1.021 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.092, allocations: 80 / 1.021 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002357/1.092, allocations: 174.7 kB / 1.021 GB, free: 2.004 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.764e-05/1.093, allocations: 81.11 kB / 1.021 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.753e-05/1.093, allocations: 6.797 kB / 1.021 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/1.093, allocations: 12 kB / 1.021 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.373e-05/1.093, allocations: 7.984 kB / 1.021 GB, free: 1.883 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/1.093, allocations: 0 / 1.021 GB, free: 1.883 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.832e-05/1.093, allocations: 82.66 kB / 1.021 GB, free: 1.805 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.01e-07/1.093, allocations: 0 / 1.021 GB, free: 1.805 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003389/1.093, allocations: 15.91 kB / 1.021 GB, free: 1.789 MB / 0.6355 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) * 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.0001736/1.093, allocations: 105.7 kB / 1.021 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001667/1.094, allocations: 42.44 kB / 1.021 GB, free: 1.648 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/1.094, allocations: 0 / 1.021 GB, free: 1.648 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.226e-05/1.094, allocations: 19.25 kB / 1.021 GB, free: 1.633 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002527/1.094, allocations: 7.609 kB / 1.021 GB, free: 1.629 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003292/1.094, allocations: 86.86 kB / 1.021 GB, free: 1.523 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003658/1.095, allocations: 0.6923 MB / 1.022 GB, free: 0.8047 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.715e-05/1.095, allocations: 8.438 kB / 1.022 GB, free: 0.7969 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.583e-05/1.095, allocations: 11.38 kB / 1.022 GB, free: 0.7891 MB / 0.6355 GB Notification: Performance of SimCode: time 7.21e-07/1.095, allocations: 0 / 1.022 GB, free: 0.7891 MB / 0.6355 GB Notification: Performance of Templates: time 0.003406/1.098, allocations: 0.5548 MB / 1.022 GB, free: 260 kB / 0.6355 GB