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.TriggeredMax.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.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.478/2.478, 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.001425/0.001424, allocations: 177 kB / 319.9 MB, free: 3.02 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.157/2.157, allocations: 205.5 MB / 0.5708 GB, free: 15.24 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.00107/0.00107, allocations: 96.94 kB / 0.6751 GB, free: 4.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.251e-05/2.253e-05, allocations: 4 kB / 0.7849 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.2015, allocations: 106.3 MB / 0.8887 GB, free: 11.8 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9977/1.199, allocations: 131.9 MB / 1.018 GB, free: 5.32 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000347/1.2, allocations: 77.64 kB / 1.018 GB, free: 5.277 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.008895/1.209, allocations: 1.469 MB / 1.019 GB, free: 4.008 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.144e-06/1.209, allocations: 0 / 1.019 GB, free: 4.008 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.264e-05/1.209, allocations: 8 kB / 1.019 GB, free: 4 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.0008245/1.21, allocations: 357.8 kB / 1.019 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.579e-05/1.21, allocations: 8.031 kB / 1.019 GB, free: 3.602 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.683e-05/1.21, allocations: 7.906 kB / 1.019 GB, free: 3.594 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/1.21, allocations: 175 kB / 1.02 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/1.21, allocations: 4 kB / 1.02 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.88e-05/1.21, allocations: 4 kB / 1.02 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001536/1.21, allocations: 22.69 kB / 1.02 GB, free: 3.359 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/1.21, allocations: 48.5 kB / 1.02 GB, free: 3.312 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/1.21, allocations: 3.984 kB / 1.02 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/1.21, allocations: 0 / 1.02 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.998e-06/1.21, allocations: 3.984 kB / 1.02 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006792/1.211, allocations: 268.2 kB / 1.02 GB, free: 3.02 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001582/1.211, allocations: 45.64 kB / 1.02 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.441e-05/1.211, allocations: 16.48 kB / 1.02 GB, free: 2.961 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.257e-05/1.211, allocations: 0 / 1.02 GB, free: 2.961 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002279/1.212, allocations: 66.52 kB / 1.02 GB, free: 2.891 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 3.256e-06/1.212, allocations: 0 / 1.02 GB, free: 2.891 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.00035/1.212, allocations: 72.44 kB / 1.02 GB, free: 2.824 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.212e-05/1.212, allocations: 59.34 kB / 1.02 GB, free: 2.754 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/1.212, allocations: 100.7 kB / 1.02 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.196e-05/1.212, allocations: 30.45 kB / 1.02 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.599e-05/1.213, allocations: 87.58 kB / 1.02 GB, free: 2.531 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 6.181e-05/1.213, allocations: 19.36 kB / 1.02 GB, free: 2.516 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.508e-06/1.213, allocations: 0 / 1.02 GB, free: 2.516 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001856/1.213, allocations: 317.1 kB / 1.021 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.817e-05/1.213, allocations: 15.5 kB / 1.021 GB, free: 2.191 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/1.213, allocations: 41.69 kB / 1.021 GB, free: 2.148 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.159e-05/1.213, allocations: 11.62 kB / 1.021 GB, free: 2.141 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/1.213, allocations: 0 / 1.021 GB, free: 2.141 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002912/1.213, allocations: 84.14 kB / 1.021 GB, free: 2.062 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/1.213, allocations: 4 kB / 1.021 GB, free: 2.059 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/1.214, allocations: 0 / 1.021 GB, free: 2.059 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/1.214, allocations: 4.031 kB / 1.021 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002558/1.214, allocations: 15.98 kB / 1.021 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/1.214, allocations: 4 kB / 1.021 GB, free: 2.035 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002313/1.214, allocations: 23.88 kB / 1.021 GB, free: 2.012 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/1.214, allocations: 0 / 1.021 GB, free: 2.012 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$PRE.triggeredMax.y,triggeredMax.y,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001383/1.214, allocations: 108.9 kB / 1.021 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.446e-05/1.214, allocations: 11.91 kB / 1.021 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003289/1.215, allocations: 80.98 kB / 1.021 GB, free: 1.812 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/1.215, allocations: 4 kB / 1.021 GB, free: 1.809 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/1.215, allocations: 0 / 1.021 GB, free: 1.809 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/1.215, allocations: 0 / 1.021 GB, free: 1.809 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007306/1.215, allocations: 328.1 kB / 1.021 GB, free: 1.465 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/1.216, allocations: 0.875 kB / 1.021 GB, free: 1.465 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001616/1.216, allocations: 15.98 kB / 1.021 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/1.216, allocations: 0 / 1.021 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/1.216, allocations: 0 / 1.021 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/1.216, allocations: 0 / 1.021 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/1.216, allocations: 4.547 kB / 1.021 GB, free: 1.445 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003151/1.216, allocations: 177.7 kB / 1.022 GB, free: 1.266 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.957e-05/1.216, allocations: 83.53 kB / 1.022 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.018e-05/1.216, allocations: 8 kB / 1.022 GB, free: 1.16 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003279/1.217, allocations: 15.8 kB / 1.022 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.596e-05/1.217, allocations: 7.984 kB / 1.022 GB, free: 1.141 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/1.217, allocations: 4 kB / 1.022 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 8.805e-05/1.217, allocations: 90.78 kB / 1.022 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.31e-07/1.217, allocations: 0 / 1.022 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0005343/1.217, allocations: 12 kB / 1.022 GB, free: 1.039 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: 5 (booPul.y,$whenCondition2,$whenCondition1,triggeredMax.y,booPul.pulseStart) * Number of discrete states: 1 (triggeredMax.y) * 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.0001876/1.218, allocations: 99.25 kB / 1.022 GB, free: 0.9336 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002419/1.218, allocations: 38.31 kB / 1.022 GB, free: 0.9062 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/1.218, allocations: 192 / 1.022 GB, free: 0.9062 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001052/1.218, allocations: 26.98 kB / 1.022 GB, free: 0.8867 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004325/1.218, allocations: 7.938 kB / 1.022 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004884/1.219, allocations: 110.5 kB / 1.022 GB, free: 0.7539 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003978/1.219, allocations: 0.6934 MB / 1.023 GB, free: 36 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 7.545e-05/1.22, allocations: 7.859 kB / 1.023 GB, free: 28 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.654e-05/1.22, allocations: 11.44 kB / 1.023 GB, free: 20 kB / 0.6355 GB Notification: Performance of SimCode: time 1.052e-06/1.22, allocations: 0 / 1.023 GB, free: 20 kB / 0.6355 GB Notification: Performance of Templates: time 0.005306/1.225, allocations: 0.7014 MB / 1.023 GB, free: 15.34 MB / 0.6511 GB