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.TriggeredMovingMean.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.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.614/2.614, allocations: 253.1 MB / 260.4 MB, free: 7.578 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.001624/0.001624, allocations: 181.2 kB / 319.6 MB, free: 3.285 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.038/2.038, allocations: 205.4 MB / 0.5704 GB, free: 15.02 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.001301/0.001301, allocations: 91.45 kB / 0.6746 GB, free: 4.391 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.433e-05/1.45e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2431, allocations: 106.3 MB / 0.8881 GB, free: 12.14 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7657/1.009, allocations: 132.3 MB / 1.017 GB, free: 6.012 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003045/1.009, allocations: 77.69 kB / 1.017 GB, free: 5.969 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01838/1.028, allocations: 3.299 MB / 1.021 GB, free: 3.281 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.248e-05/1.028, allocations: 11.94 kB / 1.021 GB, free: 3.27 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.001131/1.029, allocations: 460.8 kB / 1.021 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/1.029, allocations: 8.031 kB / 1.021 GB, free: 2.777 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.55e-05/1.029, allocations: 23.73 kB / 1.021 GB, free: 2.754 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004842/1.03, allocations: 232 kB / 1.021 GB, free: 2.5 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.224e-05/1.03, allocations: 11.61 kB / 1.021 GB, free: 2.492 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.326e-05/1.03, allocations: 15.91 kB / 1.021 GB, free: 2.477 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003238/1.03, allocations: 81.16 kB / 1.021 GB, free: 2.426 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004753/1.031, allocations: 179.2 kB / 1.021 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/1.031, allocations: 8 kB / 1.022 GB, free: 2.273 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.627e-05/1.031, allocations: 0 / 1.022 GB, free: 2.273 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.737e-05/1.031, allocations: 4 kB / 1.022 GB, free: 2.27 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009349/1.032, allocations: 378 kB / 1.022 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004174/1.032, allocations: 129.5 kB / 1.022 GB, free: 1.809 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002411/1.032, allocations: 99.78 kB / 1.022 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/1.032, allocations: 0 / 1.022 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004576/1.033, allocations: 183.2 kB / 1.022 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=28): time 2.525e-06/1.033, allocations: 0 / 1.022 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of matching and sorting (n=28): time 0.0008055/1.034, allocations: 235.7 kB / 1.022 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.006e-05/1.034, allocations: 59.39 kB / 1.023 GB, free: 1.332 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/1.034, allocations: 127.7 kB / 1.023 GB, free: 1.211 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 7.639e-05/1.034, allocations: 41.31 kB / 1.023 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.636e-05/1.034, allocations: 88.02 kB / 1.023 GB, free: 1.082 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/1.034, allocations: 62.56 kB / 1.023 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.298e-05/1.034, allocations: 0 / 1.023 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001926/1.034, allocations: 336.3 kB / 1.023 GB, free: 0.7031 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003058/1.035, allocations: 84.73 kB / 1.023 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003624/1.035, allocations: 158.4 kB / 1.023 GB, free: 0.5039 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003144/1.036, allocations: 99.31 kB / 1.023 GB, free: 448 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.805e-06/1.036, allocations: 4 kB / 1.023 GB, free: 444 kB / 0.6355 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008351/1.036, allocations: 295.3 kB / 1.024 GB, free: 208 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/1.036, allocations: 8 kB / 1.024 GB, free: 200 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/1.036, allocations: 4 kB / 1.024 GB, free: 196 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.273e-05/1.036, allocations: 4 kB / 1.024 GB, free: 192 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006445/1.037, allocations: 71.78 kB / 1.024 GB, free: 120 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.704e-05/1.037, allocations: 7.984 kB / 1.024 GB, free: 112 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003471/1.038, allocations: 38.52 kB / 1.024 GB, free: 76 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.313e-05/1.038, allocations: 15.94 kB / 1.024 GB, free: 64 kB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition4,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition3,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.000274/1.038, allocations: 140.1 kB / 1.024 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.566e-05/1.038, allocations: 19.8 kB / 1.024 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.942e-05/1.038, allocations: 17.62 kB / 1.024 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.335e-06/1.038, allocations: 4 kB / 1.024 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/1.038, allocations: 0 / 1.024 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/1.038, allocations: 0 / 1.024 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001553/1.04, allocations: 0.5828 MB / 1.025 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/1.04, allocations: 7.938 kB / 1.025 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.956e-05/1.04, allocations: 15.3 kB / 1.025 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/1.04, allocations: 0 / 1.025 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.305e-05/1.04, allocations: 7.984 kB / 1.025 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.196e-06/1.04, allocations: 4 kB / 1.025 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.04, allocations: 4 kB / 1.025 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007967/1.041, allocations: 337.7 kB / 1.025 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.096e-05/1.041, allocations: 92.91 kB / 1.025 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/1.041, allocations: 15.48 kB / 1.025 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003557/1.041, allocations: 27.36 kB / 1.025 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.558e-05/1.041, allocations: 19.95 kB / 1.025 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-05/1.041, allocations: 15.8 kB / 1.025 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001198/1.042, allocations: 102.2 kB / 1.025 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005243/1.042, allocations: 44 kB / 1.025 GB, free: 14.7 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 27 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.pulseStart) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[3],triMovMea.ySample[2],triMovMea.ySample[1],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 21 * 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.0003002/1.042, allocations: 140 kB / 1.025 GB, free: 14.56 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0007704/1.043, allocations: 230.8 kB / 1.026 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/1.043, allocations: 0 / 1.026 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003073/1.044, allocations: 110.2 kB / 1.026 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005225/1.044, allocations: 23.42 kB / 1.026 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009414/1.045, allocations: 218.5 kB / 1.026 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005531/1.046, allocations: 0.7452 MB / 1.027 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of SimCode: time 1.232e-06/1.046, allocations: 0 / 1.027 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of Templates: time 0.01015/1.056, allocations: 2.744 MB / 1.029 GB, free: 10.6 MB / 0.6511 GB