Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.978/1.978, allocations: 387.2 MB / 394.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 173.3 kB / 487 MB, free: 5.398 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 221.3 MB / 0.7819 GB, free: 1.391 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008537/0.0008537, allocations: 89.81 kB / 0.9213 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.341e-06/6.372e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2149, allocations: 142.3 MB / 1.205 GB, free: 26.24 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.601/0.816, allocations: 148.7 MB / 1.35 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002363/0.8163, allocations: 77.62 kB / 1.351 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.004144/0.8205, allocations: 1.305 MB / 1.352 GB, free: 15.75 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 9.829e-06/0.8205, allocations: 1.062 kB / 1.352 GB, free: 15.75 MB / 0.8073 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.0003606/0.8208, allocations: 390.4 kB / 1.352 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.8209, allocations: 10.62 kB / 1.352 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.984e-05/0.8209, allocations: 8.031 kB / 1.352 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001887/0.8211, allocations: 176.4 kB / 1.352 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.8212, allocations: 1.375 kB / 1.352 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.097e-05/0.8212, allocations: 14.58 kB / 1.352 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.391e-05/0.8213, allocations: 31.91 kB / 1.352 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.8214, allocations: 64.72 kB / 1.352 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.8214, allocations: 1.641 kB / 1.352 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.8214, allocations: 1.594 kB / 1.353 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.8214, allocations: 0 / 1.353 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003425/0.8218, allocations: 261.7 kB / 1.353 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 8.949e-05/0.8219, allocations: 67.52 kB / 1.353 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.643e-05/0.822, allocations: 53.88 kB / 1.353 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.822, allocations: 4.188 kB / 1.353 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001213/0.8221, allocations: 120.5 kB / 1.353 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.8221, allocations: 0 / 1.353 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.0002472/0.8224, allocations: 112.2 kB / 1.353 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.712e-05/0.8224, allocations: 118.8 kB / 1.353 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.841e-05/0.8225, allocations: 98.5 kB / 1.353 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.8225, allocations: 30.77 kB / 1.353 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.32e-05/0.8226, allocations: 89.55 kB / 1.353 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.066e-05/0.8226, allocations: 23.73 kB / 1.353 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.261e-06/0.8226, allocations: 0 / 1.353 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.355e-05/0.8227, allocations: 328 kB / 1.354 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.288e-05/0.8227, allocations: 34.75 kB / 1.354 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.438e-05/0.8228, allocations: 92.36 kB / 1.354 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.085e-05/0.8229, allocations: 45.17 kB / 1.354 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.8229, allocations: 1.031 kB / 1.354 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002114/0.8231, allocations: 149.6 kB / 1.354 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.8232, allocations: 5.531 kB / 1.354 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.8232, allocations: 7.094 kB / 1.354 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.8232, allocations: 3 kB / 1.354 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.8233, allocations: 25.27 kB / 1.354 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.8233, allocations: 4.672 kB / 1.354 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.194e-05/0.8234, allocations: 10.41 kB / 1.354 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/0.8235, allocations: 10.89 kB / 1.354 GB, free: 13.9 MB / 0.8073 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.0001073/0.8236, allocations: 163.2 kB / 1.354 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.295e-05/0.8236, allocations: 9.781 kB / 1.354 GB, free: 13.74 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.528e-05/0.8236, allocations: 14.66 kB / 1.354 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.8236, allocations: 1.125 kB / 1.354 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.8237, allocations: 0 / 1.354 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.8237, allocations: 1.406 kB / 1.354 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.637e-05/0.8238, allocations: 156.8 kB / 1.354 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.8238, allocations: 1.156 kB / 1.354 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.203e-05/0.8238, allocations: 9.078 kB / 1.354 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.8238, allocations: 4.75 kB / 1.354 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.8239, allocations: 4.594 kB / 1.354 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.8239, allocations: 0 / 1.354 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.8239, allocations: 0.8438 kB / 1.354 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002327/0.8241, allocations: 174.4 kB / 1.355 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.771e-05/0.8241, allocations: 82.58 kB / 1.355 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.713e-05/0.8242, allocations: 16.12 kB / 1.355 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.405e-05/0.8243, allocations: 5.484 kB / 1.355 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.425e-05/0.8243, allocations: 3.891 kB / 1.355 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.8243, allocations: 3.719 kB / 1.355 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.192e-05/0.8244, allocations: 90.52 kB / 1.355 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002205/0.8246, allocations: 17.84 kB / 1.355 GB, free: 13.31 MB / 0.8073 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.000143/0.8247, allocations: 120 kB / 1.355 GB, free: 13.22 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002306/0.825, allocations: 128.1 kB / 1.355 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.825, allocations: 0 / 1.355 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001441/0.8251, allocations: 148.2 kB / 1.355 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000161/0.8253, allocations: 11.55 kB / 1.355 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003127/0.8256, allocations: 106.4 kB / 1.355 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000185/0.8258, allocations: 0.7107 MB / 1.356 GB, free: 12.37 MB / 0.8073 GB Notification: Performance of SimCode: time 7.11e-07/0.8258, allocations: 0 / 1.356 GB, free: 12.37 MB / 0.8073 GB Notification: Performance of Templates: time 0.003596/0.8294, allocations: 1.007 MB / 1.357 GB, free: 12.27 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.csv","../files/Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches