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.348/2.348, allocations: 387.1 MB / 399.7 MB, free: 9.484 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.0009583/0.0009586, allocations: 172 kB / 492.3 MB, free: 0.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.726/1.726, allocations: 221.3 MB / 0.7871 GB, free: 12.92 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.0008849/0.0008849, allocations: 98 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.287e-05/3.29e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2759, allocations: 142.3 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.117/1.393, allocations: 149.5 MB / 1.358 GB, free: 19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/1.393, allocations: 76.41 kB / 1.358 GB, free: 19 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006163/1.399, allocations: 1.64 MB / 1.36 GB, free: 34.62 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.623e-06/1.399, allocations: 0 / 1.36 GB, free: 34.62 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.114e-05/1.399, allocations: 0 / 1.36 GB, free: 34.62 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.0004056/1.4, allocations: 395.6 kB / 1.36 GB, free: 34.22 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/1.4, allocations: 7.719 kB / 1.36 GB, free: 34.22 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.153e-05/1.4, allocations: 7.844 kB / 1.36 GB, free: 34.22 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000208/1.4, allocations: 181.2 kB / 1.361 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/1.4, allocations: 6.156 kB / 1.361 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.822e-05/1.4, allocations: 0 / 1.361 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/1.4, allocations: 68.27 kB / 1.361 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/1.4, allocations: 0 / 1.361 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/1.4, allocations: 11.36 kB / 1.361 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/1.4, allocations: 0 / 1.361 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.912e-05/1.401, allocations: 32.86 kB / 1.361 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004853/1.401, allocations: 290.9 kB / 1.361 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001027/1.401, allocations: 64.88 kB / 1.361 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.941e-05/1.401, allocations: 56.33 kB / 1.361 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/1.401, allocations: 0 / 1.361 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001483/1.401, allocations: 116.4 kB / 1.361 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 2.785e-06/1.402, allocations: 96 / 1.361 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0003168/1.402, allocations: 154.5 kB / 1.361 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/1.402, allocations: 116.5 kB / 1.361 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.58e-05/1.402, allocations: 106.3 kB / 1.362 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/1.402, allocations: 33.55 kB / 1.362 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.027e-05/1.402, allocations: 90.42 kB / 1.362 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.435e-05/1.402, allocations: 25.47 kB / 1.362 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.706e-06/1.402, allocations: 7.5 kB / 1.362 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001171/1.402, allocations: 317.1 kB / 1.362 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.966e-05/1.402, allocations: 27.12 kB / 1.362 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001126/1.402, allocations: 107.5 kB / 1.362 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000111/1.403, allocations: 74.05 kB / 1.362 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/1.403, allocations: 0 / 1.362 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003125/1.403, allocations: 186.3 kB / 1.362 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.385e-05/1.403, allocations: 42.47 kB / 1.362 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/1.403, allocations: 7.781 kB / 1.362 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/1.403, allocations: 7.797 kB / 1.362 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/1.403, allocations: 26.16 kB / 1.363 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/1.403, allocations: 9.5 kB / 1.363 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.35e-05/1.403, allocations: 15.41 kB / 1.363 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/1.403, allocations: 3.812 kB / 1.363 GB, free: 32.6 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.0001385/1.403, allocations: 167.3 kB / 1.363 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.239e-05/1.404, allocations: 7.188 kB / 1.363 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.764e-05/1.404, allocations: 8.5 kB / 1.363 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/1.404, allocations: 7.344 kB / 1.363 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/1.404, allocations: 3.953 kB / 1.363 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/1.404, allocations: 1.5 kB / 1.363 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001325/1.404, allocations: 185 kB / 1.363 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/1.404, allocations: 0 / 1.363 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.785e-05/1.404, allocations: 10.39 kB / 1.363 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/1.404, allocations: 0 / 1.363 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/1.404, allocations: 6.406 kB / 1.363 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/1.404, allocations: 0 / 1.363 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/1.404, allocations: 5.453 kB / 1.363 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00033/1.404, allocations: 222.8 kB / 1.363 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.448e-05/1.404, allocations: 85.8 kB / 1.363 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.672e-05/1.404, allocations: 10.72 kB / 1.363 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.155e-05/1.404, allocations: 5.516 kB / 1.363 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.294e-05/1.404, allocations: 4.828 kB / 1.363 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/1.404, allocations: 6.812 kB / 1.363 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.651e-05/1.405, allocations: 92.52 kB / 1.363 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.5e-07/1.405, allocations: 4 kB / 1.363 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003079/1.405, allocations: 19.06 kB / 1.363 GB, free: 31.95 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.0001452/1.405, allocations: 119.6 kB / 1.363 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002722/1.405, allocations: 153.4 kB / 1.364 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/1.405, allocations: 0.5625 kB / 1.364 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001728/1.405, allocations: 188.6 kB / 1.364 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002083/1.406, allocations: 11.44 kB / 1.364 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003483/1.406, allocations: 116.2 kB / 1.364 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/1.406, allocations: 0.6922 MB / 1.365 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.322e-05/1.407, allocations: 9.688 kB / 1.365 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.761e-05/1.407, allocations: 12.89 kB / 1.365 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of SimCode: time 3e-07/1.407, allocations: 4 kB / 1.365 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of Templates: time 0.004063/1.411, allocations: 0.8734 MB / 1.365 GB, free: 30.83 MB / 0.8386 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