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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 98.69 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.714/2.714, allocations: 436.5 MB / 0.7104 GB, free: 7.918 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004224/0.0004225, allocations: 12 kB / 0.8708 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8863/0.8867, allocations: 153.7 MB / 1.021 GB, free: 1.121 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001659/0.8884, allocations: 1.106 MB / 1.022 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0005799/0.889, allocations: 263.3 kB / 1.022 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.933e-05/0.8891, allocations: 0 / 1.022 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.497e-05/0.8892, allocations: 3.984 kB / 1.022 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001421/0.8893, allocations: 19.91 kB / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001422/0.8895, allocations: 23.92 kB / 1.022 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.244e-05/0.8896, allocations: 35.94 kB / 1.022 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.35e-05/0.8897, allocations: 8 kB / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.597e-05/0.8898, allocations: 31.91 kB / 1.022 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001217/0.8899, allocations: 27.84 kB / 1.022 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.8899, allocations: 4 kB / 1.022 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.485e-05/0.89, allocations: 4 kB / 1.022 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.945e-05/0.89, allocations: 4 kB / 1.022 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.548e-05/0.8901, allocations: 41.64 kB / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 8.921e-05/0.8902, allocations: 35.89 kB / 1.022 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.8902, allocations: 0 / 1.022 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.956e-06/0.8902, allocations: 4 kB / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.058e-06/0.8902, allocations: 4 kB / 1.022 GB, free: 15.5 MB / 0.7794 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.0005463/0.8907, allocations: 386.8 kB / 1.023 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.8908, allocations: 15.92 kB / 1.023 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.014e-05/0.8908, allocations: 7.906 kB / 1.023 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001982/0.891, allocations: 179 kB / 1.023 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.8911, allocations: 0 / 1.023 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.8911, allocations: 4 kB / 1.023 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001956/0.8913, allocations: 81.61 kB / 1.023 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.8913, allocations: 3.938 kB / 1.023 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.8913, allocations: 0 / 1.023 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.8913, allocations: 7.938 kB / 1.023 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.8915, allocations: 43.97 kB / 1.023 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004379/0.8919, allocations: 288.8 kB / 1.023 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001177/0.892, allocations: 70.55 kB / 1.023 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.244e-05/0.8921, allocations: 4 kB / 1.023 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002116/0.8923, allocations: 117.2 kB / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.353e-06/0.8923, allocations: 0 / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004677/0.8928, allocations: 300.3 kB / 1.024 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.873e-05/0.8929, allocations: 114.8 kB / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.537e-05/0.893, allocations: 113.8 kB / 1.024 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.741e-05/0.893, allocations: 33.7 kB / 1.024 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.237e-05/0.893, allocations: 88.03 kB / 1.024 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.755e-05/0.8931, allocations: 23.75 kB / 1.024 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.803e-06/0.8931, allocations: 8 kB / 1.024 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.8932, allocations: 318.8 kB / 1.025 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001892/0.8934, allocations: 43.97 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001262/0.8936, allocations: 110 kB / 1.025 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.8937, allocations: 77.69 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.8937, allocations: 8 kB / 1.025 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003042/0.894, allocations: 211 kB / 1.025 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/0.8941, allocations: 29.7 kB / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.8941, allocations: 4 kB / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.8941, allocations: 4.281 kB / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.8942, allocations: 27.92 kB / 1.025 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.8943, allocations: 4 kB / 1.025 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.223e-05/0.8943, allocations: 19.84 kB / 1.025 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.8944, allocations: 8 kB / 1.025 GB, free: 12.49 MB / 0.7794 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 () * Number of clocked 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.0001611/0.8945, allocations: 175.4 kB / 1.025 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.754e-05/0.8946, allocations: 7.906 kB / 1.025 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.057e-05/0.8946, allocations: 12.38 kB / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.8946, allocations: 4 kB / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.8946, allocations: 0 / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.8946, allocations: 0 / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001526/0.8948, allocations: 193.5 kB / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.8948, allocations: 0 / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.859e-05/0.8948, allocations: 4 kB / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.8948, allocations: 0 / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.8949, allocations: 4 kB / 1.025 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.8949, allocations: 3.984 kB / 1.025 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.8949, allocations: 3.938 kB / 1.025 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003371/0.8952, allocations: 238.6 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.113e-05/0.8953, allocations: 85.02 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.05e-05/0.8953, allocations: 4 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.304e-05/0.8954, allocations: 11.92 kB / 1.026 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.329e-05/0.8954, allocations: 8 kB / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.8954, allocations: 8 kB / 1.026 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.834e-05/0.8955, allocations: 91.25 kB / 1.026 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8955, allocations: 0 / 1.026 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002196/0.8957, allocations: 20 kB / 1.026 GB, free: 11.52 MB / 0.7794 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) * Number of clocked states: 0 () * 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.000149/0.8959, allocations: 111.2 kB / 1.026 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003036/0.8962, allocations: 179.2 kB / 1.026 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.8962, allocations: 0 / 1.026 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001935/0.8964, allocations: 183.4 kB / 1.026 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001625/0.8966, allocations: 15.95 kB / 1.026 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004708/0.8971, allocations: 196.5 kB / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.8974, allocations: 0.6926 MB / 1.027 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.886e-05/0.8975, allocations: 12.92 kB / 1.027 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.275e-05/0.8975, allocations: 11.44 kB / 1.027 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of SimCode: time 4.41e-07/0.8975, allocations: 0 / 1.027 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of Templates: time 0.003871/0.9014, allocations: 0.8611 MB / 1.028 GB, free: 9.188 MB / 0.7794 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