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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001617/0.001618, allocations: 182.9 kB / 16.92 MB, free: 6.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.58/1.58, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.916/2.916, allocations: 443.2 MB / 0.7181 GB, free: 1.625 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003811/0.0003813, allocations: 8.281 kB / 0.8801 GB, free: 42.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3657, allocations: 155.2 MB / 1.032 GB, free: 4.754 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001542/0.3673, allocations: 1.117 MB / 1.033 GB, free: 3.629 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0005724/0.3679, allocations: 283.5 kB / 1.033 GB, free: 3.352 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.583e-05/0.3679, allocations: 0 / 1.033 GB, free: 3.352 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 8.524e-05/0.368, allocations: 3.938 kB / 1.033 GB, free: 3.348 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001214/0.3682, allocations: 7.938 kB / 1.033 GB, free: 3.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001402/0.3683, allocations: 31.95 kB / 1.033 GB, free: 3.309 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001088/0.3684, allocations: 59.73 kB / 1.033 GB, free: 3.25 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.07e-05/0.3685, allocations: 8 kB / 1.033 GB, free: 3.242 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.574e-05/0.3686, allocations: 23.92 kB / 1.033 GB, free: 3.219 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001196/0.3688, allocations: 31.89 kB / 1.033 GB, free: 3.188 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.626e-05/0.3688, allocations: 0 / 1.033 GB, free: 3.188 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.456e-05/0.3688, allocations: 4 kB / 1.033 GB, free: 3.184 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.302e-05/0.3689, allocations: 15.92 kB / 1.033 GB, free: 3.168 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.528e-05/0.3689, allocations: 45.58 kB / 1.033 GB, free: 3.117 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 8.771e-05/0.369, allocations: 48.17 kB / 1.033 GB, free: 3.07 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.369, allocations: 4 kB / 1.033 GB, free: 3.066 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.483e-06/0.369, allocations: 0 / 1.033 GB, free: 3.066 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.3691, allocations: 0 / 1.033 GB, free: 3.066 MB / 0.7794 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.0004986/0.3696, allocations: 381 kB / 1.034 GB, free: 2.637 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.3696, allocations: 12.03 kB / 1.034 GB, free: 2.625 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.19e-05/0.3697, allocations: 8.844 kB / 1.034 GB, free: 2.617 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001722/0.3698, allocations: 176.3 kB / 1.034 GB, free: 2.406 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.3699, allocations: 4.375 kB / 1.034 GB, free: 2.402 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.504e-05/0.3699, allocations: 8.312 kB / 1.034 GB, free: 2.395 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001742/0.3701, allocations: 74.22 kB / 1.034 GB, free: 2.316 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-06/0.3701, allocations: 192 / 1.034 GB, free: 2.316 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.674e-05/0.3701, allocations: 7.938 kB / 1.034 GB, free: 2.309 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.822e-06/0.3701, allocations: 4 kB / 1.034 GB, free: 2.305 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001192/0.3702, allocations: 43.97 kB / 1.034 GB, free: 2.262 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004274/0.3707, allocations: 292.7 kB / 1.034 GB, free: 1.926 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001226/0.3708, allocations: 74.5 kB / 1.034 GB, free: 1.844 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.3709, allocations: 64.88 kB / 1.034 GB, free: 1.777 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.3709, allocations: 0 / 1.034 GB, free: 1.777 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002012/0.3711, allocations: 117.1 kB / 1.034 GB, free: 1.645 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.3712, allocations: 0 / 1.034 GB, free: 1.645 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004209/0.3716, allocations: 203.3 kB / 1.035 GB, free: 1.434 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.598e-05/0.3717, allocations: 118.8 kB / 1.035 GB, free: 1.293 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.855e-05/0.3718, allocations: 105.8 kB / 1.035 GB, free: 1.18 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.3718, allocations: 37.7 kB / 1.035 GB, free: 1.137 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.235e-05/0.3719, allocations: 92.06 kB / 1.035 GB, free: 1.043 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.163e-05/0.3719, allocations: 27.7 kB / 1.035 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.542e-05/0.3719, allocations: 21.7 kB / 1.035 GB, free: 0.9883 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.3721, allocations: 322.8 kB / 1.035 GB, free: 0.6641 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.795e-05/0.3722, allocations: 43.97 kB / 1.035 GB, free: 0.6211 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.3723, allocations: 104.5 kB / 1.036 GB, free: 500 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000271/0.3726, allocations: 211.8 kB / 1.036 GB, free: 244 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.3726, allocations: 7.938 kB / 1.036 GB, free: 236 kB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003182/0.3729, allocations: 203.1 kB / 1.036 GB, free: 20 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.7e-05/0.373, allocations: 33.69 kB / 1.036 GB, free: 15.98 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.373, allocations: 4 kB / 1.036 GB, free: 15.98 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.373, allocations: 4 kB / 1.036 GB, free: 15.97 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.3732, allocations: 32.2 kB / 1.036 GB, free: 15.94 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.3732, allocations: 4 kB / 1.036 GB, free: 15.94 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.342e-05/0.3733, allocations: 15.84 kB / 1.036 GB, free: 15.92 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.3733, allocations: 12 kB / 1.036 GB, free: 15.91 MB / 0.795 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 (movMea.iSample,$PRE.movMea.iSample,movMea.counter,$PRE.movMea.counter,movMea.ySample[4],$PRE.movMea.ySample[4],movMea.ySample[3],$PRE.movMea.ySample[3],movMea.ySample[2],$PRE.movMea.ySample[2],movMea.ySample[1],$PRE.movMea.ySample[1],movMea.index,$PRE.movMea.index,movMea.y,$PRE.movMea.y,movMea.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001512/0.3734, allocations: 180.9 kB / 1.036 GB, free: 15.72 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.912e-05/0.3735, allocations: 7.906 kB / 1.036 GB, free: 15.71 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.823e-05/0.3735, allocations: 8.375 kB / 1.036 GB, free: 15.7 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3735, allocations: 4 kB / 1.036 GB, free: 15.7 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.3735, allocations: 0 / 1.036 GB, free: 15.7 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3735, allocations: 0 / 1.036 GB, free: 15.7 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001467/0.3737, allocations: 185.6 kB / 1.036 GB, free: 15.47 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3737, allocations: 4 kB / 1.036 GB, free: 15.46 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.154e-05/0.3737, allocations: 7.984 kB / 1.036 GB, free: 15.46 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3737, allocations: 0 / 1.036 GB, free: 15.46 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.3738, allocations: 0 / 1.036 GB, free: 15.46 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.3738, allocations: 4 kB / 1.036 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3738, allocations: 0 / 1.036 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003493/0.3741, allocations: 234.5 kB / 1.037 GB, free: 15.2 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.456e-05/0.3742, allocations: 89 kB / 1.037 GB, free: 15.09 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.982e-05/0.3742, allocations: 4 kB / 1.037 GB, free: 15.09 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.026e-05/0.3743, allocations: 7.938 kB / 1.037 GB, free: 15.08 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.225e-05/0.3743, allocations: 11.98 kB / 1.037 GB, free: 15.07 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/0.3744, allocations: 8 kB / 1.037 GB, free: 15.06 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.327e-05/0.3744, allocations: 87.27 kB / 1.037 GB, free: 14.98 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3744, allocations: 0 / 1.037 GB, free: 14.98 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002294/0.3747, allocations: 20 kB / 1.037 GB, free: 14.96 MB / 0.795 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000167/0.3748, allocations: 109.1 kB / 1.037 GB, free: 14.84 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003154/0.3751, allocations: 179.3 kB / 1.037 GB, free: 14.66 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3752, allocations: 0 / 1.037 GB, free: 14.66 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002033/0.3754, allocations: 183.4 kB / 1.037 GB, free: 14.46 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002167/0.3756, allocations: 21.53 kB / 1.037 GB, free: 14.45 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004263/0.376, allocations: 238.3 kB / 1.038 GB, free: 14.18 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002423/0.3763, allocations: 0.6848 MB / 1.038 GB, free: 13.47 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.085e-05/0.3763, allocations: 11.44 kB / 1.038 GB, free: 13.46 MB / 0.795 GB Notification: Performance of SimCode: time 3.1e-07/0.3763, allocations: 0 / 1.038 GB, free: 13.46 MB / 0.795 GB Notification: Performance of Templates: time 0.002668/0.379, allocations: 1.102 MB / 1.039 GB, free: 12.36 MB / 0.795 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,movMea.u,movMea.y Variables in the result:movMea.u,movMea.y,time