Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_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.1.4-maint.8.1.x/package.mo): time 1.53/1.53, allocations: 289.8 MB / 297.1 MB, free: 6.648 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.001365/0.001365, allocations: 185.3 kB / 366.3 MB, free: 1.984 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.513/1.513, allocations: 205.1 MB / 0.6256 GB, free: 5.805 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.0009307/0.0009306, allocations: 96.64 kB / 0.7396 GB, free: 39.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.136e-06/8.156e-06, allocations: 0 / 0.859 GB, free: 13.31 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7247/0.7248, allocations: 116.3 MB / 0.9726 GB, free: 68.77 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1728/0.8976, allocations: 138.4 MB / 1.108 GB, free: 10.04 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002038/0.8979, allocations: 75.94 kB / 1.108 GB, free: 9.965 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.004031/0.902, allocations: 1.294 MB / 1.109 GB, free: 8.688 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.172e-05/0.902, allocations: 4 kB / 1.109 GB, free: 8.684 MB / 0.7136 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.0004198/0.9024, allocations: 389 kB / 1.109 GB, free: 8.254 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.9025, allocations: 12.03 kB / 1.109 GB, free: 8.242 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.882e-05/0.9025, allocations: 4.594 kB / 1.109 GB, free: 8.238 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002184/0.9027, allocations: 179 kB / 1.11 GB, free: 8.023 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.541e-05/0.9028, allocations: 3.906 kB / 1.11 GB, free: 8.02 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.9028, allocations: 7.938 kB / 1.11 GB, free: 8.012 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.164e-05/0.9029, allocations: 28 kB / 1.11 GB, free: 7.984 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.903, allocations: 73.66 kB / 1.11 GB, free: 7.906 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.903, allocations: 1 kB / 1.11 GB, free: 7.906 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.903, allocations: 0 / 1.11 GB, free: 7.906 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.903, allocations: 0 / 1.11 GB, free: 7.906 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003765/0.9034, allocations: 258.5 kB / 1.11 GB, free: 7.617 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.673e-05/0.9035, allocations: 78.5 kB / 1.11 GB, free: 7.531 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.331e-05/0.9036, allocations: 48.86 kB / 1.11 GB, free: 7.48 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.9036, allocations: 0 / 1.11 GB, free: 7.48 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001182/0.9038, allocations: 115.6 kB / 1.11 GB, free: 7.352 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 1.032e-06/0.9038, allocations: 0 / 1.11 GB, free: 7.352 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0002349/0.904, allocations: 117.6 kB / 1.11 GB, free: 7.23 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.514e-05/0.9041, allocations: 106.8 kB / 1.11 GB, free: 7.102 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.792e-05/0.9042, allocations: 108.9 kB / 1.111 GB, free: 6.988 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.272e-05/0.9042, allocations: 33.7 kB / 1.111 GB, free: 6.949 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.427e-05/0.9042, allocations: 80.14 kB / 1.111 GB, free: 6.867 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.85e-05/0.9043, allocations: 32.86 kB / 1.111 GB, free: 6.836 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.396e-06/0.9043, allocations: 96 / 1.111 GB, free: 6.836 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.9044, allocations: 322.8 kB / 1.111 GB, free: 6.512 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.02e-05/0.9045, allocations: 32 kB / 1.111 GB, free: 6.48 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.606e-05/0.9046, allocations: 92.58 kB / 1.111 GB, free: 6.359 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.025e-05/0.9046, allocations: 47.97 kB / 1.111 GB, free: 6.312 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.9046, allocations: 4 kB / 1.111 GB, free: 6.309 MB / 0.7136 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002216/0.9049, allocations: 141.4 kB / 1.111 GB, free: 6.164 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.9049, allocations: 8 kB / 1.111 GB, free: 6.156 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.9049, allocations: 0 / 1.111 GB, free: 6.156 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.9049, allocations: 4 kB / 1.111 GB, free: 6.152 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.9051, allocations: 32.77 kB / 1.111 GB, free: 6.121 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.9051, allocations: 5.125 kB / 1.111 GB, free: 6.117 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.954e-05/0.9052, allocations: 7.906 kB / 1.111 GB, free: 6.109 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.9052, allocations: 12 kB / 1.111 GB, free: 6.098 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.0001264/0.9053, allocations: 165.3 kB / 1.112 GB, free: 5.926 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.938e-05/0.9053, allocations: 8 kB / 1.112 GB, free: 5.918 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.074e-05/0.9054, allocations: 20.2 kB / 1.112 GB, free: 5.898 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.9054, allocations: 0.625 kB / 1.112 GB, free: 5.898 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.9054, allocations: 0 / 1.112 GB, free: 5.898 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.9054, allocations: 0 / 1.112 GB, free: 5.898 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001378/0.9056, allocations: 162.2 kB / 1.112 GB, free: 5.703 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.9056, allocations: 0.6875 kB / 1.112 GB, free: 5.703 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.344e-05/0.9056, allocations: 7.906 kB / 1.112 GB, free: 5.695 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.9056, allocations: 0.8438 kB / 1.112 GB, free: 5.695 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.9056, allocations: 4 kB / 1.112 GB, free: 5.691 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.9056, allocations: 3.984 kB / 1.112 GB, free: 5.688 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.9057, allocations: 5.125 kB / 1.112 GB, free: 5.684 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000217/0.9059, allocations: 167 kB / 1.112 GB, free: 5.504 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.451e-05/0.9059, allocations: 81.02 kB / 1.112 GB, free: 5.406 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.572e-05/0.906, allocations: 15.98 kB / 1.112 GB, free: 5.391 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.284e-05/0.9061, allocations: 4 kB / 1.112 GB, free: 5.387 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.487e-05/0.9061, allocations: 0 / 1.112 GB, free: 5.387 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.9061, allocations: 9.531 kB / 1.112 GB, free: 5.379 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.416e-05/0.9062, allocations: 98.31 kB / 1.112 GB, free: 5.285 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002109/0.9064, allocations: 16 kB / 1.112 GB, free: 5.27 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.0001408/0.9065, allocations: 107.2 kB / 1.112 GB, free: 5.156 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002028/0.9068, allocations: 125.5 kB / 1.112 GB, free: 5.027 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.9068, allocations: 4.562 kB / 1.112 GB, free: 5.023 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001558/0.9069, allocations: 153.7 kB / 1.112 GB, free: 4.867 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001469/0.9071, allocations: 11.91 kB / 1.113 GB, free: 4.855 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003031/0.9074, allocations: 107.6 kB / 1.113 GB, free: 4.727 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003072/0.9077, allocations: 0.7036 MB / 1.113 GB, free: 3.996 MB / 0.7136 GB Notification: Performance of SimCode: time 2.71e-07/0.9077, allocations: 0 / 1.113 GB, free: 3.996 MB / 0.7136 GB Notification: Performance of Templates: time 0.002957/0.9107, allocations: 1.009 MB / 1.114 GB, free: 3.012 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)