Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.573/1.573, allocations: 285.5 MB / 292.8 MB, free: 10.46 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00127/0.00127, allocations: 185.2 kB / 361.1 MB, free: 7.121 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.568/1.568, allocations: 205.1 MB / 0.6195 GB, free: 11.95 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008925/0.0008924, allocations: 95.78 kB / 0.7326 GB, free: 44.48 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.734e-06/7.905e-06, allocations: 0 / 0.8511 GB, free: 3.227 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7855/0.7855, allocations: 115.3 MB / 0.9637 GB, free: 78.04 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1941/0.9797, allocations: 137.5 MB / 1.098 GB, free: 2.637 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/0.9799, allocations: 79.05 kB / 1.098 GB, free: 2.562 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.004607/0.9846, allocations: 1.296 MB / 1.099 GB, free: 1.305 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.089e-05/0.9846, allocations: 1.188 kB / 1.099 GB, free: 1.305 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004847/0.9851, allocations: 381.6 kB / 1.1 GB, free: 0.8828 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.9851, allocations: 8.531 kB / 1.1 GB, free: 0.875 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.49e-05/0.9852, allocations: 11.89 kB / 1.1 GB, free: 0.8633 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002666/0.9855, allocations: 181.3 kB / 1.1 GB, free: 0.6484 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.175e-05/0.9855, allocations: 3.906 kB / 1.1 GB, free: 0.6445 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.795e-05/0.9855, allocations: 7.938 kB / 1.1 GB, free: 0.6367 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001125/0.9857, allocations: 28 kB / 1.1 GB, free: 0.6094 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001376/0.9858, allocations: 71.03 kB / 1.1 GB, free: 0.5352 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.9858, allocations: 0 / 1.1 GB, free: 0.5352 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.9858, allocations: 1.469 kB / 1.1 GB, free: 0.5352 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.9859, allocations: 4 kB / 1.1 GB, free: 0.5312 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004873/0.9864, allocations: 260 kB / 1.1 GB, free: 248 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001089/0.9865, allocations: 67.09 kB / 1.1 GB, free: 172 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.253e-05/0.9866, allocations: 54.61 kB / 1.1 GB, free: 116 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.9866, allocations: 4 kB / 1.1 GB, free: 112 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001481/0.9868, allocations: 111.6 kB / 1.1 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 2.956e-06/0.9868, allocations: 1.469 kB / 1.1 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0002889/0.9871, allocations: 112.6 kB / 1.101 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.064e-05/0.9871, allocations: 125 kB / 1.101 GB, free: 15.73 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.9873, allocations: 104.9 kB / 1.101 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.9873, allocations: 26.27 kB / 1.101 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.75e-05/0.9873, allocations: 88.64 kB / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.056e-05/0.9874, allocations: 28.3 kB / 1.101 GB, free: 15.47 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.214e-06/0.9874, allocations: 0 / 1.101 GB, free: 15.47 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001195/0.9875, allocations: 323.4 kB / 1.101 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.968e-05/0.9876, allocations: 29.5 kB / 1.101 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.9877, allocations: 93.8 kB / 1.101 GB, free: 15 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.132e-05/0.9878, allocations: 51 kB / 1.101 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.9878, allocations: 0 / 1.101 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002786/0.9881, allocations: 143.6 kB / 1.101 GB, free: 14.81 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.9881, allocations: 12.02 kB / 1.101 GB, free: 14.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.9882, allocations: 6.109 kB / 1.101 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.9882, allocations: 0.5156 kB / 1.101 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.9883, allocations: 28.58 kB / 1.102 GB, free: 14.77 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.9883, allocations: 4 kB / 1.102 GB, free: 14.76 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.234e-05/0.9884, allocations: 7.906 kB / 1.102 GB, free: 14.75 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.9885, allocations: 9.625 kB / 1.102 GB, free: 14.75 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.movMea.iSample,movMea.iSample,$PRE.movMea.counter,movMea.counter,$PRE.movMea.ySample[4],movMea.ySample[4],$PRE.movMea.ySample[3],movMea.ySample[3],$PRE.movMea.ySample[2],movMea.ySample[2],$PRE.movMea.ySample[1],movMea.ySample[1],$PRE.movMea.index,movMea.index,$PRE.movMea.y,movMea.y,$whenCondition1,movMea.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * 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.0001485/0.9886, allocations: 170.8 kB / 1.102 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.99e-05/0.9887, allocations: 4 kB / 1.102 GB, free: 14.56 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.731e-05/0.9887, allocations: 12.8 kB / 1.102 GB, free: 14.55 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.9887, allocations: 1.406 kB / 1.102 GB, free: 14.55 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.9887, allocations: 7.922 kB / 1.102 GB, free: 14.54 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.9887, allocations: 4 kB / 1.102 GB, free: 14.54 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001295/0.9889, allocations: 158.2 kB / 1.102 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.9889, allocations: 0.6562 kB / 1.102 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.817e-05/0.9889, allocations: 15.91 kB / 1.102 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/0.989, allocations: 0 / 1.102 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.989, allocations: 3.938 kB / 1.102 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.989, allocations: 4 kB / 1.102 GB, free: 14.32 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.989, allocations: 1.75 kB / 1.102 GB, free: 14.32 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002329/0.9892, allocations: 161 kB / 1.102 GB, free: 14.15 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.088e-05/0.9893, allocations: 81.02 kB / 1.102 GB, free: 14.05 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.96e-05/0.9894, allocations: 12 kB / 1.102 GB, free: 14.04 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.778e-05/0.9894, allocations: 11.98 kB / 1.102 GB, free: 14.03 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.421e-05/0.9895, allocations: 4.609 kB / 1.102 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.9895, allocations: 1.969 kB / 1.102 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.107e-05/0.9896, allocations: 91.27 kB / 1.102 GB, free: 13.93 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002656/0.9898, allocations: 19.94 kB / 1.102 GB, free: 13.91 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,movMea.y,movMea.sampleTrigger,movMea.iSample,movMea.counter,movMea.index,movMea.ySample[1],movMea.ySample[2],movMea.ySample[3],movMea.ySample[4]) * Number of discrete states: 9 (movMea.iSample,movMea.y,movMea.counter,movMea.ySample[4],movMea.ySample[3],movMea.ySample[2],movMea.ySample[1],movMea.index,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0001574/0.99, allocations: 108.2 kB / 1.102 GB, free: 13.8 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002297/0.9902, allocations: 134.4 kB / 1.103 GB, free: 13.66 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.9903, allocations: 0 / 1.103 GB, free: 13.66 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.9904, allocations: 149.7 kB / 1.103 GB, free: 13.51 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001879/0.9906, allocations: 11.91 kB / 1.103 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003703/0.991, allocations: 111.1 kB / 1.103 GB, free: 13.37 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003049/0.9913, allocations: 0.7127 MB / 1.103 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of SimCode: time 6.61e-07/0.9913, allocations: 4 kB / 1.103 GB, free: 12.62 MB / 0.7136 GB Notification: Performance of Templates: time 0.00351/0.9948, allocations: 0.9991 MB / 1.104 GB, free: 11.68 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)