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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.202/2.202, allocations: 390.5 MB / 398 MB, free: 11 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.001321/0.001321, allocations: 175.8 kB / 491.2 MB, free: 1.625 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.695/1.695, allocations: 221.5 MB / 0.7868 GB, free: 13.36 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.001073/0.001074, allocations: 99.09 kB / 0.9269 GB, free: 13.85 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.692e-05/1.696e-05, allocations: 7.984 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3888/0.3888, allocations: 143 MB / 1.212 GB, free: 39.56 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.218/1.607, allocations: 149.6 MB / 1.358 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/1.607, allocations: 81.95 kB / 1.359 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005092/1.612, allocations: 1.622 MB / 1.36 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.834e-06/1.612, allocations: 3.938 kB / 1.36 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.127e-05/1.612, allocations: 0 / 1.36 GB, free: 33.2 MB / 0.8386 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.000429/1.613, allocations: 388.8 kB / 1.36 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/1.613, allocations: 7.688 kB / 1.36 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.907e-05/1.613, allocations: 3.812 kB / 1.36 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002162/1.613, allocations: 190.6 kB / 1.361 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.008e-05/1.613, allocations: 7.438 kB / 1.361 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.431e-05/1.613, allocations: 0 / 1.361 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001033/1.613, allocations: 31.22 kB / 1.361 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/1.613, allocations: 63.45 kB / 1.361 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/1.613, allocations: 0 / 1.361 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/1.613, allocations: 0 / 1.361 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/1.613, allocations: 0 / 1.361 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000448/1.614, allocations: 272.1 kB / 1.361 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.421e-05/1.614, allocations: 64.61 kB / 1.361 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.45e-05/1.614, allocations: 51.31 kB / 1.361 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/1.614, allocations: 7.797 kB / 1.361 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001389/1.614, allocations: 107.2 kB / 1.361 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.873e-06/1.614, allocations: 7.844 kB / 1.361 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002586/1.614, allocations: 107.8 kB / 1.361 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/1.614, allocations: 116 kB / 1.361 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.984e-05/1.615, allocations: 99.42 kB / 1.362 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/1.615, allocations: 28.89 kB / 1.362 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.947e-05/1.615, allocations: 89.34 kB / 1.362 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.402e-05/1.615, allocations: 24.98 kB / 1.362 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.394e-06/1.615, allocations: 7.875 kB / 1.362 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001192/1.615, allocations: 329.8 kB / 1.362 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.398e-05/1.615, allocations: 29.02 kB / 1.362 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.638e-05/1.615, allocations: 91.05 kB / 1.362 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.366e-05/1.615, allocations: 46.86 kB / 1.362 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/1.615, allocations: 3.938 kB / 1.362 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002396/1.615, allocations: 144.8 kB / 1.362 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/1.615, allocations: 34.27 kB / 1.362 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/1.615, allocations: 3.969 kB / 1.362 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/1.615, allocations: 5.359 kB / 1.362 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/1.615, allocations: 26.59 kB / 1.362 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.647e-06/1.615, allocations: 3.953 kB / 1.362 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.562e-05/1.616, allocations: 19.86 kB / 1.362 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/1.616, allocations: 7.656 kB / 1.362 GB, free: 31.32 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.0001226/1.616, allocations: 165.5 kB / 1.363 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.89e-05/1.616, allocations: 11.62 kB / 1.363 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.113e-05/1.616, allocations: 6.406 kB / 1.363 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/1.616, allocations: 0 / 1.363 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/1.616, allocations: 0 / 1.363 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/1.616, allocations: 7.797 kB / 1.363 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/1.616, allocations: 156.5 kB / 1.363 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/1.616, allocations: 3.844 kB / 1.363 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.923e-05/1.616, allocations: 5.172 kB / 1.363 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/1.616, allocations: 4 kB / 1.363 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/1.616, allocations: 5.25 kB / 1.363 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/1.616, allocations: 0 / 1.363 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/1.616, allocations: 3.938 kB / 1.363 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002145/1.616, allocations: 167.5 kB / 1.363 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.062e-05/1.616, allocations: 86.53 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.136e-05/1.616, allocations: 5.281 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.727e-05/1.616, allocations: 9.531 kB / 1.363 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/1.616, allocations: 5.141 kB / 1.363 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/1.616, allocations: 8.844 kB / 1.363 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.585e-05/1.616, allocations: 83.25 kB / 1.363 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.617, allocations: 0 / 1.363 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002105/1.617, allocations: 19.22 kB / 1.363 GB, free: 30.74 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.0001148/1.617, allocations: 109.3 kB / 1.363 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001972/1.617, allocations: 158.4 kB / 1.363 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/1.617, allocations: 0 / 1.363 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001182/1.617, allocations: 181.3 kB / 1.364 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001646/1.617, allocations: 9.031 kB / 1.364 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002814/1.618, allocations: 113.9 kB / 1.364 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/1.618, allocations: 0.6965 MB / 1.364 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.072e-05/1.618, allocations: 10.52 kB / 1.364 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.971e-05/1.618, allocations: 11.97 kB / 1.364 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/1.618, allocations: 0 / 1.364 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of Templates: time 0.002925/1.621, allocations: 0.852 MB / 1.365 GB, free: 29.62 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