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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.399/2.399, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001066/0.001066, allocations: 181.2 kB / 498.1 MB, free: 5.754 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.559/1.559, allocations: 223.2 MB / 0.7948 GB, free: 17.91 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.0009378/0.000938, allocations: 101 kB / 0.9346 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003562/0.0003564, allocations: 13.5 kB / 1.084 GB, free: 221.6 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3052, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1958/0.501, allocations: 149.5 MB / 1.369 GB, free: 12.54 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002521/0.5013, allocations: 79.94 kB / 1.369 GB, free: 12.46 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004503/0.5058, allocations: 1.643 MB / 1.371 GB, free: 10.81 MB / 0.8698 GB Notification: Performance of FrontEnd: time 9.72e-07/0.5059, allocations: 4 kB / 1.371 GB, free: 10.81 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.166e-05/0.5059, allocations: 4 kB / 1.371 GB, free: 10.8 MB / 0.8698 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.0004635/0.5064, allocations: 392.8 kB / 1.371 GB, free: 10.37 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.5064, allocations: 12.03 kB / 1.371 GB, free: 10.36 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.553e-05/0.5065, allocations: 4 kB / 1.371 GB, free: 10.35 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002123/0.5067, allocations: 190.9 kB / 1.371 GB, free: 10.12 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.682e-05/0.5067, allocations: 4 kB / 1.371 GB, free: 10.12 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.63e-05/0.5067, allocations: 4 kB / 1.371 GB, free: 10.12 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001851/0.5069, allocations: 77.61 kB / 1.371 GB, free: 10.04 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.5069, allocations: 3.984 kB / 1.371 GB, free: 10.03 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.507, allocations: 0 / 1.371 GB, free: 10.03 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.507, allocations: 0 / 1.371 GB, free: 10.03 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000113/0.5071, allocations: 43.98 kB / 1.371 GB, free: 9.988 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004465/0.5075, allocations: 296.8 kB / 1.372 GB, free: 9.648 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001266/0.5077, allocations: 70.56 kB / 1.372 GB, free: 9.57 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.5077, allocations: 0 / 1.372 GB, free: 9.57 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001748/0.5079, allocations: 129.1 kB / 1.372 GB, free: 9.426 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=11): time 1.243e-06/0.5079, allocations: 0 / 1.372 GB, free: 9.426 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.0004799/0.5084, allocations: 296.4 kB / 1.372 GB, free: 9.105 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.3e-05/0.5085, allocations: 118.8 kB / 1.372 GB, free: 8.965 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.136e-05/0.5086, allocations: 101 kB / 1.372 GB, free: 8.859 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.623e-05/0.5086, allocations: 33.69 kB / 1.372 GB, free: 8.82 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.043e-05/0.5086, allocations: 88.14 kB / 1.372 GB, free: 8.73 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.882e-05/0.5087, allocations: 19.72 kB / 1.372 GB, free: 8.711 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.033e-06/0.5087, allocations: 8 kB / 1.372 GB, free: 8.703 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.5088, allocations: 318.8 kB / 1.373 GB, free: 8.383 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.385e-05/0.5089, allocations: 39.97 kB / 1.373 GB, free: 8.344 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.5091, allocations: 110 kB / 1.373 GB, free: 8.207 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001173/0.5092, allocations: 85.67 kB / 1.373 GB, free: 8.117 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.5092, allocations: 0 / 1.373 GB, free: 8.117 MB / 0.8698 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003048/0.5095, allocations: 203 kB / 1.373 GB, free: 7.906 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 3.718e-05/0.5096, allocations: 33.7 kB / 1.373 GB, free: 7.867 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.5096, allocations: 4.281 kB / 1.373 GB, free: 7.863 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.5096, allocations: 11.95 kB / 1.373 GB, free: 7.852 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.5097, allocations: 23.92 kB / 1.373 GB, free: 7.828 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.5097, allocations: 4 kB / 1.373 GB, free: 7.824 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.183e-05/0.5098, allocations: 23.77 kB / 1.373 GB, free: 7.801 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.5098, allocations: 8 kB / 1.373 GB, free: 7.793 MB / 0.8698 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.0001425/0.51, allocations: 171.2 kB / 1.373 GB, free: 7.609 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.837e-05/0.51, allocations: 11.91 kB / 1.373 GB, free: 7.598 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.608e-05/0.5101, allocations: 8.375 kB / 1.373 GB, free: 7.59 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.5101, allocations: 7.938 kB / 1.373 GB, free: 7.582 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.5101, allocations: 0 / 1.373 GB, free: 7.582 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.5101, allocations: 0 / 1.373 GB, free: 7.582 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001466/0.5102, allocations: 181.6 kB / 1.374 GB, free: 7.355 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.5102, allocations: 0 / 1.374 GB, free: 7.355 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-05/0.5103, allocations: 4 kB / 1.374 GB, free: 7.352 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.5103, allocations: 7.938 kB / 1.374 GB, free: 7.344 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.5103, allocations: 11.97 kB / 1.374 GB, free: 7.332 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.5103, allocations: 4 kB / 1.374 GB, free: 7.328 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.5103, allocations: 7.953 kB / 1.374 GB, free: 7.32 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003615/0.5107, allocations: 218.7 kB / 1.374 GB, free: 7.082 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.412e-05/0.5108, allocations: 92.89 kB / 1.374 GB, free: 6.973 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.223e-05/0.5108, allocations: 11.98 kB / 1.374 GB, free: 6.961 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.024e-05/0.5109, allocations: 8 kB / 1.374 GB, free: 6.953 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.597e-05/0.5109, allocations: 4 kB / 1.374 GB, free: 6.949 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.618e-05/0.5109, allocations: 11.94 kB / 1.374 GB, free: 6.938 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.061e-05/0.511, allocations: 87.58 kB / 1.374 GB, free: 6.852 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.4e-07/0.511, allocations: 0 / 1.374 GB, free: 6.852 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002082/0.5112, allocations: 24 kB / 1.374 GB, free: 6.828 MB / 0.8698 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.0001527/0.5114, allocations: 113.1 kB / 1.374 GB, free: 6.711 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003052/0.5117, allocations: 179.2 kB / 1.374 GB, free: 6.523 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5117, allocations: 0 / 1.374 GB, free: 6.523 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001835/0.5119, allocations: 195.3 kB / 1.375 GB, free: 6.32 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001552/0.5121, allocations: 4 kB / 1.375 GB, free: 6.316 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004116/0.5125, allocations: 197.7 kB / 1.375 GB, free: 6.094 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/0.5128, allocations: 0.6926 MB / 1.375 GB, free: 5.375 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.946e-05/0.5128, allocations: 8.672 kB / 1.375 GB, free: 5.363 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.85e-05/0.5129, allocations: 7.438 kB / 1.375 GB, free: 5.355 MB / 0.8698 GB Notification: Performance of SimCode: time 2.2e-07/0.5129, allocations: 11.94 kB / 1.375 GB, free: 5.344 MB / 0.8698 GB Notification: Performance of Templates: time 0.003011/0.5159, allocations: 0.8512 MB / 1.376 GB, free: 4.496 MB / 0.8698 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