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.051/2.051, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001051/0.001051, allocations: 180.8 kB / 487.4 MB, free: 5.047 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.416/1.416, allocations: 221.5 MB / 0.7824 GB, free: 0.9492 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 99.45 kB / 0.9219 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.566e-05/1.567e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2247/0.2247, allocations: 142.3 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.721/0.9458, allocations: 148.8 MB / 1.351 GB, free: 18.35 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001737/0.946, allocations: 76.08 kB / 1.351 GB, free: 18.35 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004428/0.9504, allocations: 1.627 MB / 1.353 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.202e-06/0.9504, allocations: 0 / 1.353 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.438e-06/0.9505, allocations: 1.281 kB / 1.353 GB, free: 33.97 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.0003362/0.9508, allocations: 389.5 kB / 1.353 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.9508, allocations: 10.09 kB / 1.353 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.374e-05/0.9509, allocations: 9.781 kB / 1.353 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001444/0.951, allocations: 188.6 kB / 1.354 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.9511, allocations: 0 / 1.354 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.9511, allocations: 3.812 kB / 1.354 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.82e-05/0.9512, allocations: 33.8 kB / 1.354 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.064e-05/0.9513, allocations: 63.97 kB / 1.354 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.9513, allocations: 0 / 1.354 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.9513, allocations: 0.7969 kB / 1.354 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.656e-06/0.9513, allocations: 0 / 1.354 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003367/0.9516, allocations: 270.5 kB / 1.354 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.899e-05/0.9517, allocations: 62.84 kB / 1.354 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.926e-05/0.9518, allocations: 54.41 kB / 1.354 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.9518, allocations: 0 / 1.354 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.705e-05/0.9519, allocations: 110.9 kB / 1.354 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.102e-06/0.9519, allocations: 7.938 kB / 1.354 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0001975/0.9521, allocations: 111.7 kB / 1.354 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/0.9522, allocations: 117.9 kB / 1.354 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.82e-05/0.9522, allocations: 98 kB / 1.354 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.9523, allocations: 33.48 kB / 1.354 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.698e-05/0.9523, allocations: 85.27 kB / 1.355 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.9523, allocations: 24.72 kB / 1.355 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.251e-06/0.9523, allocations: 0 / 1.355 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.9525, allocations: 328.7 kB / 1.355 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.22e-05/0.9525, allocations: 28.23 kB / 1.355 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.518e-05/0.9526, allocations: 92.5 kB / 1.355 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.255e-05/0.9526, allocations: 50.84 kB / 1.355 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.9526, allocations: 0 / 1.355 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001791/0.9528, allocations: 144.5 kB / 1.355 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.9529, allocations: 37.94 kB / 1.355 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.9529, allocations: 0.6094 kB / 1.355 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.9529, allocations: 11.69 kB / 1.355 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.953, allocations: 26.61 kB / 1.355 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.953, allocations: 4.438 kB / 1.355 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.394e-05/0.9531, allocations: 12.75 kB / 1.355 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.9531, allocations: 11.78 kB / 1.355 GB, free: 32.08 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 9.97e-05/0.9532, allocations: 165.8 kB / 1.355 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.525e-05/0.9532, allocations: 7.781 kB / 1.355 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.29e-05/0.9533, allocations: 9.094 kB / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.9533, allocations: 3.906 kB / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.9533, allocations: 2.938 kB / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.9533, allocations: 0.5156 kB / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.53e-05/0.9534, allocations: 163.7 kB / 1.356 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.9534, allocations: 0.6562 kB / 1.356 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.763e-05/0.9534, allocations: 9.188 kB / 1.356 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.9534, allocations: 4 kB / 1.356 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.9535, allocations: 5.156 kB / 1.356 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.9535, allocations: 0 / 1.356 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.9535, allocations: 96 / 1.356 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001811/0.9537, allocations: 170.9 kB / 1.356 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.265e-05/0.9537, allocations: 85.64 kB / 1.356 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.811e-05/0.9537, allocations: 5.328 kB / 1.356 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.608e-05/0.9538, allocations: 9.281 kB / 1.356 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.527e-05/0.9538, allocations: 5.5 kB / 1.356 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.9538, allocations: 7.672 kB / 1.356 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.282e-05/0.9539, allocations: 84.72 kB / 1.356 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9539, allocations: 0 / 1.356 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001941/0.9541, allocations: 19.28 kB / 1.356 GB, free: 31.5 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.0001027/0.9542, allocations: 110.5 kB / 1.356 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000167/0.9544, allocations: 160.1 kB / 1.356 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.9544, allocations: 0 / 1.356 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.9545, allocations: 175.5 kB / 1.356 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001408/0.9547, allocations: 15.09 kB / 1.356 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002338/0.9549, allocations: 108.8 kB / 1.357 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002491/0.9552, allocations: 0.6959 MB / 1.357 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.846e-05/0.9552, allocations: 10.92 kB / 1.357 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.389e-05/0.9552, allocations: 11.86 kB / 1.357 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/0.9552, allocations: 3.938 kB / 1.357 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of Templates: time 0.002629/0.9579, allocations: 0.8354 MB / 1.358 GB, free: 30.39 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