Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.514/1.514, allocations: 249.5 MB / 257 MB, free: 6.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001098/0.001099, allocations: 183.8 kB / 316.3 MB, free: 3.219 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.76/1.76, allocations: 205.3 MB / 0.5671 GB, free: 15.87 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00103/0.00103, allocations: 92.38 kB / 0.6714 GB, free: 4.988 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.921e-05/1.919e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2321, allocations: 106.3 MB / 0.8852 GB, free: 12.23 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7251/0.9572, allocations: 132.3 MB / 1.014 GB, free: 5.469 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002374/0.9575, allocations: 74.33 kB / 1.015 GB, free: 5.426 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004492/0.962, allocations: 1.642 MB / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.503e-06/0.962, allocations: 0 / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.095e-06/0.962, allocations: 8 kB / 1.016 GB, free: 4.035 MB / 0.6355 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.0004563/0.9625, allocations: 379.9 kB / 1.016 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.9625, allocations: 12.03 kB / 1.017 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.599e-05/0.9626, allocations: 7.906 kB / 1.017 GB, free: 3.602 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.9628, allocations: 178.8 kB / 1.017 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.9629, allocations: 4 kB / 1.017 GB, free: 3.387 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.632e-05/0.9629, allocations: 0 / 1.017 GB, free: 3.387 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.796e-05/0.963, allocations: 35.36 kB / 1.017 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001091/0.9631, allocations: 68.86 kB / 1.017 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.9631, allocations: 0 / 1.017 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.9631, allocations: 4 kB / 1.017 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.9632, allocations: 4.875 kB / 1.017 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004395/0.9636, allocations: 256.8 kB / 1.017 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.852e-05/0.9637, allocations: 69 kB / 1.017 GB, free: 2.965 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.306e-05/0.9638, allocations: 53.39 kB / 1.017 GB, free: 2.938 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.9638, allocations: 4 kB / 1.017 GB, free: 2.934 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001264/0.9639, allocations: 112 kB / 1.017 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 1.353e-06/0.9639, allocations: 0 / 1.017 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0002383/0.9642, allocations: 108.4 kB / 1.017 GB, free: 2.73 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.283e-05/0.9643, allocations: 118.7 kB / 1.017 GB, free: 2.594 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.446e-05/0.9644, allocations: 108.7 kB / 1.018 GB, free: 2.484 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.9644, allocations: 29.52 kB / 1.018 GB, free: 2.453 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.827e-05/0.9644, allocations: 92.06 kB / 1.018 GB, free: 2.359 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.936e-05/0.9645, allocations: 31.33 kB / 1.018 GB, free: 2.336 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.793e-06/0.9645, allocations: 0 / 1.018 GB, free: 2.336 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.9646, allocations: 326.5 kB / 1.018 GB, free: 2.012 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.745e-05/0.9647, allocations: 27.36 kB / 1.018 GB, free: 1.992 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.146e-05/0.9648, allocations: 102.2 kB / 1.018 GB, free: 1.879 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.512e-05/0.9649, allocations: 39.42 kB / 1.018 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.9649, allocations: 3.984 kB / 1.018 GB, free: 1.848 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002119/0.9651, allocations: 148.6 kB / 1.018 GB, free: 1.719 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.852e-05/0.9651, allocations: 29.7 kB / 1.018 GB, free: 1.684 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.9651, allocations: 4 kB / 1.018 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.9652, allocations: 4 kB / 1.018 GB, free: 1.676 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.9653, allocations: 24.2 kB / 1.018 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.9653, allocations: 8 kB / 1.018 GB, free: 1.645 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.575e-05/0.9654, allocations: 11.86 kB / 1.018 GB, free: 1.633 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.006e-05/0.9654, allocations: 16.8 kB / 1.018 GB, free: 1.621 MB / 0.6355 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.0001324/0.9656, allocations: 158.3 kB / 1.019 GB, free: 1.457 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.9656, allocations: 7.906 kB / 1.019 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.871e-05/0.9656, allocations: 4.625 kB / 1.019 GB, free: 1.441 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.9656, allocations: 8.094 kB / 1.019 GB, free: 1.434 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.9656, allocations: 0 / 1.019 GB, free: 1.434 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.9656, allocations: 3.984 kB / 1.019 GB, free: 1.43 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000138/0.9658, allocations: 165.2 kB / 1.019 GB, free: 1.242 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.9658, allocations: 4 kB / 1.019 GB, free: 1.238 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.232e-05/0.9658, allocations: 7.984 kB / 1.019 GB, free: 1.23 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.9659, allocations: 3.938 kB / 1.019 GB, free: 1.227 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.448e-05/0.9659, allocations: 4 kB / 1.019 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.9659, allocations: 0 / 1.019 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.9659, allocations: 0.9375 kB / 1.019 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002383/0.9661, allocations: 169.1 kB / 1.019 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.797e-05/0.9662, allocations: 88.95 kB / 1.019 GB, free: 0.9688 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.164e-05/0.9662, allocations: 4 kB / 1.019 GB, free: 0.9648 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.179e-05/0.9663, allocations: 11.98 kB / 1.019 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.974e-05/0.9664, allocations: 0 / 1.019 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.9664, allocations: 4 kB / 1.019 GB, free: 0.9492 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.735e-05/0.9664, allocations: 91.02 kB / 1.019 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9664, allocations: 4 kB / 1.019 GB, free: 0.8594 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002122/0.9667, allocations: 20 kB / 1.019 GB, free: 0.8398 MB / 0.6355 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.0001225/0.9668, allocations: 106.9 kB / 1.019 GB, free: 0.7305 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002139/0.967, allocations: 158.1 kB / 1.019 GB, free: 0.5898 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.967, allocations: 0 / 1.019 GB, free: 0.5898 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001271/0.9672, allocations: 181.3 kB / 1.02 GB, free: 476 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001511/0.9673, allocations: 14.38 kB / 1.02 GB, free: 464 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003074/0.9676, allocations: 104.2 kB / 1.02 GB, free: 344 kB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.9679, allocations: 0.7001 MB / 1.02 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.573e-05/0.968, allocations: 4.672 kB / 1.02 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.691e-05/0.968, allocations: 11.44 kB / 1.02 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of SimCode: time 2.6e-07/0.968, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of Templates: time 0.002865/0.9709, allocations: 0.8563 MB / 1.021 GB, free: 14.76 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.csv","../files/Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches