Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|movMea.u|movMea.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|movMea.u|movMea.y",fileNamePrefix="Buildings_maint.7.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 7.0.3-maint.7.0.x/package.mo): time 1.197/1.197, allocations: 249.4 MB / 256.7 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001075/0.001075, allocations: 193.2 kB / 316 MB, free: 3.484 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.104/1.104, allocations: 205.2 MB / 0.5667 GB, free: 15.56 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007994/0.0007994, allocations: 81.98 kB / 0.671 GB, free: 4.707 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.601e-06/5.631e-06, allocations: 0 / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1436, allocations: 106.3 MB / 0.8846 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4304/0.574, allocations: 132.4 MB / 1.014 GB, free: 6.266 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001956/0.5742, allocations: 80.56 kB / 1.014 GB, free: 6.219 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.004064/0.5783, allocations: 1.313 MB / 1.015 GB, free: 5.164 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.106e-06/0.5783, allocations: 0 / 1.015 GB, free: 5.164 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000356/0.5787, allocations: 381.9 kB / 1.016 GB, free: 4.746 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.5787, allocations: 8.031 kB / 1.016 GB, free: 4.738 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.372e-05/0.5788, allocations: 11.91 kB / 1.016 GB, free: 4.727 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001995/0.579, allocations: 183.1 kB / 1.016 GB, free: 4.512 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.579, allocations: 4.859 kB / 1.016 GB, free: 4.508 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.607e-05/0.579, allocations: 4 kB / 1.016 GB, free: 4.504 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.055e-05/0.5791, allocations: 28.56 kB / 1.016 GB, free: 4.488 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.5792, allocations: 64.17 kB / 1.016 GB, free: 4.43 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.5792, allocations: 0 / 1.016 GB, free: 4.43 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.5793, allocations: 0 / 1.016 GB, free: 4.43 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.5793, allocations: 4 kB / 1.016 GB, free: 4.426 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003474/0.5796, allocations: 280 kB / 1.016 GB, free: 4.129 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.029e-05/0.5797, allocations: 65.97 kB / 1.016 GB, free: 4.078 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.538e-05/0.5798, allocations: 51.92 kB / 1.016 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.5798, allocations: 4 kB / 1.016 GB, free: 4.047 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001129/0.5799, allocations: 113.8 kB / 1.016 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 1.353e-06/0.5799, allocations: 0 / 1.016 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0002092/0.5801, allocations: 126.3 kB / 1.016 GB, free: 3.828 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.076e-05/0.5802, allocations: 114.4 kB / 1.017 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.902e-05/0.5803, allocations: 100.5 kB / 1.017 GB, free: 3.594 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.5803, allocations: 25.7 kB / 1.017 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.524e-05/0.5804, allocations: 91.2 kB / 1.017 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.822e-05/0.5804, allocations: 31.25 kB / 1.017 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-06/0.5804, allocations: 4 kB / 1.017 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.87e-05/0.5805, allocations: 322.4 kB / 1.017 GB, free: 3.121 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.034e-05/0.5806, allocations: 26.38 kB / 1.017 GB, free: 3.105 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.99e-05/0.5807, allocations: 96.89 kB / 1.017 GB, free: 3 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.939e-05/0.5807, allocations: 50.34 kB / 1.017 GB, free: 2.961 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.5807, allocations: 0 / 1.017 GB, free: 2.961 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001971/0.5809, allocations: 146.7 kB / 1.017 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 9.568e-06/0.581, allocations: 4 kB / 1.017 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.581, allocations: 4 kB / 1.017 GB, free: 2.824 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.581, allocations: 7.984 kB / 1.017 GB, free: 2.816 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.5811, allocations: 23.38 kB / 1.017 GB, free: 2.797 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.5811, allocations: 12.05 kB / 1.017 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.842e-05/0.5812, allocations: 11.84 kB / 1.017 GB, free: 2.773 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.447e-05/0.5812, allocations: 12.22 kB / 1.017 GB, free: 2.762 MB / 0.6355 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.0001057/0.5813, allocations: 158.1 kB / 1.018 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.752e-05/0.5814, allocations: 7.906 kB / 1.018 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.428e-05/0.5814, allocations: 7.938 kB / 1.018 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.5814, allocations: 0 / 1.018 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.5814, allocations: 0 / 1.018 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.5814, allocations: 4 kB / 1.018 GB, free: 2.578 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001095/0.5815, allocations: 157.2 kB / 1.018 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.5815, allocations: 7.984 kB / 1.018 GB, free: 2.387 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.322e-05/0.5816, allocations: 8 kB / 1.018 GB, free: 2.379 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.5816, allocations: 3.938 kB / 1.018 GB, free: 2.375 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.5816, allocations: 3.938 kB / 1.018 GB, free: 2.371 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.5816, allocations: 4 kB / 1.018 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.5816, allocations: 0 / 1.018 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001965/0.5818, allocations: 169.4 kB / 1.018 GB, free: 2.219 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.032e-05/0.5819, allocations: 81.11 kB / 1.018 GB, free: 2.121 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.328e-05/0.5819, allocations: 11.91 kB / 1.018 GB, free: 2.109 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.488e-05/0.582, allocations: 7.984 kB / 1.018 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.374e-05/0.582, allocations: 4 kB / 1.018 GB, free: 2.098 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.997e-05/0.582, allocations: 7.484 kB / 1.018 GB, free: 2.094 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.57e-05/0.5821, allocations: 90.83 kB / 1.018 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002072/0.5823, allocations: 16 kB / 1.018 GB, free: 1.992 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: 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.0001101/0.5824, allocations: 113.9 kB / 1.018 GB, free: 1.875 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001852/0.5826, allocations: 128.1 kB / 1.018 GB, free: 1.77 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5826, allocations: 0 / 1.018 GB, free: 1.77 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.5827, allocations: 152.9 kB / 1.019 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001415/0.5829, allocations: 7.984 kB / 1.019 GB, free: 1.672 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000277/0.5832, allocations: 106.5 kB / 1.019 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002796/0.5835, allocations: 0.7148 MB / 1.019 GB, free: 0.8164 MB / 0.6355 GB Notification: Performance of SimCode: time 2.31e-07/0.5835, allocations: 0 / 1.019 GB, free: 0.8164 MB / 0.6355 GB Notification: Performance of Templates: time 0.002691/0.5862, allocations: 1 MB / 1.02 GB, free: 15.84 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.csv","../files/Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches