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.368/2.368, allocations: 393.5 MB / 408.4 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.001127/0.001127, allocations: 190.6 kB / 0.4902 GB, free: 2.234 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.732/1.732, allocations: 223.1 MB / 0.7992 GB, free: 15.67 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.0008882/0.0008882, allocations: 92.38 kB / 0.9396 GB, free: 2.836 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003702/0.0003702, allocations: 9.281 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3155, allocations: 143 MB / 1.229 GB, free: 85.47 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2087/0.5242, allocations: 150.3 MB / 1.376 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002718/0.5246, allocations: 79.94 kB / 1.376 GB, free: 14.85 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.00459/0.5292, allocations: 1.65 MB / 1.378 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.403e-06/0.5292, allocations: 0 / 1.378 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.708e-06/0.5292, allocations: 0 / 1.378 GB, free: 13.2 MB / 0.8855 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.0004726/0.5297, allocations: 388.9 kB / 1.378 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.5297, allocations: 12.75 kB / 1.378 GB, free: 12.75 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.371e-05/0.5298, allocations: 7.906 kB / 1.378 GB, free: 12.75 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002231/0.53, allocations: 182.9 kB / 1.378 GB, free: 12.53 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.5301, allocations: 8 kB / 1.378 GB, free: 12.52 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.948e-05/0.5301, allocations: 4 kB / 1.378 GB, free: 12.52 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001939/0.5303, allocations: 69.67 kB / 1.378 GB, free: 12.44 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.5303, allocations: 11.92 kB / 1.378 GB, free: 12.43 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.5303, allocations: 0 / 1.378 GB, free: 12.43 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.5303, allocations: 0 / 1.378 GB, free: 12.43 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001202/0.5305, allocations: 39.92 kB / 1.378 GB, free: 12.39 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000505/0.531, allocations: 300.7 kB / 1.379 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001315/0.5311, allocations: 70.56 kB / 1.379 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.414e-05/0.5312, allocations: 0 / 1.379 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.5313, allocations: 125.1 kB / 1.379 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=11): time 2.975e-06/0.5314, allocations: 96 / 1.379 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.0004976/0.5319, allocations: 288.5 kB / 1.379 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.398e-05/0.532, allocations: 126.8 kB / 1.379 GB, free: 11.37 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.64e-05/0.5321, allocations: 100.9 kB / 1.379 GB, free: 11.26 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.976e-05/0.5321, allocations: 41.69 kB / 1.379 GB, free: 11.21 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.254e-05/0.5322, allocations: 84.14 kB / 1.38 GB, free: 11.13 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.355e-05/0.5322, allocations: 23.66 kB / 1.38 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.07e-05/0.5322, allocations: 8 kB / 1.38 GB, free: 11.1 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.5324, allocations: 318.8 kB / 1.38 GB, free: 10.78 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.667e-05/0.5324, allocations: 39.97 kB / 1.38 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.5326, allocations: 109.9 kB / 1.38 GB, free: 10.6 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001316/0.5327, allocations: 81.67 kB / 1.38 GB, free: 10.52 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.5327, allocations: 4 kB / 1.38 GB, free: 10.51 MB / 0.8855 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003635/0.5331, allocations: 207.2 kB / 1.38 GB, free: 10.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.234e-05/0.5332, allocations: 30.64 kB / 1.38 GB, free: 10.26 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.5332, allocations: 8 kB / 1.38 GB, free: 10.25 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.5332, allocations: 8.047 kB / 1.38 GB, free: 10.25 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.5333, allocations: 23.98 kB / 1.38 GB, free: 10.22 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.5334, allocations: 7.938 kB / 1.38 GB, free: 10.21 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.464e-05/0.5334, allocations: 19.88 kB / 1.38 GB, free: 10.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.5335, allocations: 4 kB / 1.38 GB, free: 10.19 MB / 0.8855 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.0001514/0.5336, allocations: 172.2 kB / 1.381 GB, free: 10.01 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.109e-05/0.5337, allocations: 7.906 kB / 1.381 GB, free: 10 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.131e-05/0.5337, allocations: 8.375 kB / 1.381 GB, free: 9.984 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.5337, allocations: 7.938 kB / 1.381 GB, free: 9.977 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.5337, allocations: 3.938 kB / 1.381 GB, free: 9.973 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.5337, allocations: 0 / 1.381 GB, free: 9.973 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001581/0.5339, allocations: 189.5 kB / 1.381 GB, free: 9.738 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.5339, allocations: 0 / 1.381 GB, free: 9.738 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.352e-05/0.5339, allocations: 4 kB / 1.381 GB, free: 9.734 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.534, allocations: 4 kB / 1.381 GB, free: 9.73 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.534, allocations: 7.984 kB / 1.381 GB, free: 9.723 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.534, allocations: 0 / 1.381 GB, free: 9.723 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.534, allocations: 3.953 kB / 1.381 GB, free: 9.719 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003572/0.5344, allocations: 230.6 kB / 1.381 GB, free: 9.469 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.241e-05/0.5344, allocations: 81.11 kB / 1.381 GB, free: 9.371 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.457e-05/0.5345, allocations: 11.98 kB / 1.381 GB, free: 9.359 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.971e-05/0.5345, allocations: 4 kB / 1.381 GB, free: 9.355 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.755e-05/0.5346, allocations: 8 kB / 1.381 GB, free: 9.348 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.5346, allocations: 11.94 kB / 1.381 GB, free: 9.336 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.822e-05/0.5347, allocations: 83.28 kB / 1.381 GB, free: 9.254 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.274e-06/0.5347, allocations: 0 / 1.381 GB, free: 9.254 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002345/0.5349, allocations: 31.78 kB / 1.381 GB, free: 9.223 MB / 0.8855 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.0001566/0.5351, allocations: 129.1 kB / 1.381 GB, free: 9.09 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003091/0.5354, allocations: 167.3 kB / 1.381 GB, free: 8.914 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.5354, allocations: 0 / 1.381 GB, free: 8.914 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002034/0.5356, allocations: 199.8 kB / 1.382 GB, free: 8.707 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001584/0.5358, allocations: 9.578 kB / 1.382 GB, free: 8.699 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004213/0.5362, allocations: 189.2 kB / 1.382 GB, free: 8.488 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.5365, allocations: 0.6965 MB / 1.383 GB, free: 7.766 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.565e-05/0.5365, allocations: 8.672 kB / 1.383 GB, free: 7.754 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.93e-05/0.5366, allocations: 11.44 kB / 1.383 GB, free: 7.742 MB / 0.8855 GB Notification: Performance of SimCode: time 8.62e-07/0.5366, allocations: 0 / 1.383 GB, free: 7.742 MB / 0.8855 GB Notification: Performance of Templates: time 0.003263/0.5398, allocations: 0.8673 MB / 1.383 GB, free: 6.883 MB / 0.8855 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