Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 2/2, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.001251/0.001251, allocations: 183.5 kB / 490.8 MB, free: 1.945 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.535/1.535, allocations: 221.3 MB / 0.7863 GB, free: 13.62 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000911/0.0009113, allocations: 102.2 kB / 0.9264 GB, free: 14.17 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.925e-06/7.965e-06, allocations: 0 / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3299, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8415/1.172, allocations: 149.5 MB / 1.358 GB, free: 17.16 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/1.172, allocations: 77.25 kB / 1.358 GB, free: 17.16 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.004505/1.176, allocations: 1.316 MB / 1.359 GB, free: 17.08 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.065e-05/1.176, allocations: 1.031 kB / 1.359 GB, free: 17.08 MB / 0.823 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.0005079/1.177, allocations: 390.7 kB / 1.359 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/1.177, allocations: 8.812 kB / 1.359 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.142e-05/1.177, allocations: 8.219 kB / 1.359 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000209/1.177, allocations: 175.5 kB / 1.36 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/1.177, allocations: 0.875 kB / 1.36 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.579e-05/1.177, allocations: 3 kB / 1.36 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001017/1.177, allocations: 34.88 kB / 1.36 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001132/1.178, allocations: 70.8 kB / 1.36 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/1.178, allocations: 0 / 1.36 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/1.178, allocations: 0.9375 kB / 1.36 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/1.178, allocations: 0.6094 kB / 1.36 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003928/1.178, allocations: 265.5 kB / 1.36 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.61e-05/1.178, allocations: 65.8 kB / 1.36 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.543e-05/1.178, allocations: 53.34 kB / 1.36 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/1.178, allocations: 1.188 kB / 1.36 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001271/1.178, allocations: 114.9 kB / 1.36 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.233e-06/1.178, allocations: 0 / 1.36 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002572/1.179, allocations: 109.7 kB / 1.36 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/1.179, allocations: 116.4 kB / 1.36 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.161e-05/1.179, allocations: 110.1 kB / 1.36 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/1.179, allocations: 29.17 kB / 1.36 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.38e-05/1.179, allocations: 94.2 kB / 1.361 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.101e-05/1.179, allocations: 27.22 kB / 1.361 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.444e-06/1.179, allocations: 1.156 kB / 1.361 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001266/1.179, allocations: 326.6 kB / 1.361 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.206e-05/1.179, allocations: 26.28 kB / 1.361 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.112e-05/1.179, allocations: 104.4 kB / 1.361 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.07e-05/1.179, allocations: 47.52 kB / 1.361 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/1.179, allocations: 1.281 kB / 1.361 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002149/1.179, allocations: 141.6 kB / 1.361 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/1.179, allocations: 5.688 kB / 1.361 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/1.179, allocations: 4.969 kB / 1.361 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/1.179, allocations: 3.938 kB / 1.361 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/1.18, allocations: 34 kB / 1.361 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/1.18, allocations: 3.875 kB / 1.361 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.371e-05/1.18, allocations: 10.41 kB / 1.361 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/1.18, allocations: 5.812 kB / 1.361 GB, free: 31.22 MB / 0.8386 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.0001305/1.18, allocations: 158.2 kB / 1.361 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.061e-05/1.18, allocations: 9.281 kB / 1.361 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.31e-05/1.18, allocations: 11.56 kB / 1.361 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/1.18, allocations: 0 / 1.361 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/1.18, allocations: 3.906 kB / 1.361 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/1.18, allocations: 5.266 kB / 1.361 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.739e-05/1.18, allocations: 158.7 kB / 1.362 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/1.18, allocations: 0 / 1.362 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.317e-05/1.18, allocations: 6.031 kB / 1.362 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/1.18, allocations: 0.9688 kB / 1.362 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/1.18, allocations: 11.81 kB / 1.362 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/1.18, allocations: 5.406 kB / 1.362 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/1.18, allocations: 0 / 1.362 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002155/1.18, allocations: 162.6 kB / 1.362 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.472e-05/1.18, allocations: 82.36 kB / 1.362 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.638e-05/1.18, allocations: 11.44 kB / 1.362 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.785e-05/1.181, allocations: 8.016 kB / 1.362 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.113e-05/1.181, allocations: 8.078 kB / 1.362 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.281e-05/1.181, allocations: 6.781 kB / 1.362 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.441e-05/1.181, allocations: 85.67 kB / 1.362 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002196/1.181, allocations: 19.56 kB / 1.362 GB, free: 30.64 MB / 0.8386 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.0001342/1.181, allocations: 114.5 kB / 1.362 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002144/1.181, allocations: 122.3 kB / 1.362 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/1.181, allocations: 1.875 kB / 1.362 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001351/1.181, allocations: 159.8 kB / 1.362 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001872/1.182, allocations: 15.52 kB / 1.362 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003167/1.182, allocations: 110.8 kB / 1.362 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003112/1.182, allocations: 0.7027 MB / 1.363 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.182, allocations: 0 / 1.363 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of Templates: time 0.003265/1.186, allocations: 1.011 MB / 1.364 GB, free: 29.58 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.csv","../files/Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches