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.001617/0.001617, allocations: 110.3 kB / 16.37 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001862/0.001863, allocations: 194.6 kB / 17.31 MB, free: 5.613 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.399/1.399, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.432/2.432, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 64.62 kB / 0.8774 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2898, allocations: 153 MB / 1.027 GB, free: 2.043 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002773/0.2927, allocations: 1.407 MB / 1.028 GB, free: 0.6328 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0005704/0.2932, allocations: 283.1 kB / 1.028 GB, free: 364 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.204e-05/0.2933, allocations: 0 / 1.028 GB, free: 364 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 9.52e-05/0.2934, allocations: 3.938 kB / 1.028 GB, free: 360 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001298/0.2936, allocations: 19.86 kB / 1.028 GB, free: 340 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001673/0.2938, allocations: 31.91 kB / 1.028 GB, free: 308 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001565/0.2939, allocations: 63.84 kB / 1.029 GB, free: 244 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.384e-05/0.294, allocations: 11.92 kB / 1.029 GB, free: 232 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.2941, allocations: 39.84 kB / 1.029 GB, free: 192 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001095/0.2943, allocations: 27.84 kB / 1.029 GB, free: 164 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.96e-05/0.2943, allocations: 4 kB / 1.029 GB, free: 160 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.41e-05/0.2943, allocations: 8 kB / 1.029 GB, free: 152 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.83e-05/0.2943, allocations: 4 kB / 1.029 GB, free: 148 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.608e-05/0.2944, allocations: 31.86 kB / 1.029 GB, free: 116 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001196/0.2945, allocations: 59.78 kB / 1.029 GB, free: 56 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2945, allocations: 0 / 1.029 GB, free: 56 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2946, allocations: 0 / 1.029 GB, free: 56 kB / 0.795 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.2946, allocations: 0 / 1.029 GB, free: 56 kB / 0.795 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.0005255/0.2951, allocations: 402.1 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.2951, allocations: 12.03 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.207e-05/0.2952, allocations: 4.938 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001699/0.2954, allocations: 176.2 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.2954, allocations: 8.312 kB / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/0.2954, allocations: 4.375 kB / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001739/0.2956, allocations: 70.23 kB / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.2956, allocations: 192 / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.2956, allocations: 7.938 kB / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.2956, allocations: 3.984 kB / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001111/0.2958, allocations: 35.97 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004199/0.2962, allocations: 284.9 kB / 1.03 GB, free: 14.92 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001268/0.2963, allocations: 74.44 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.167e-05/0.2964, allocations: 60.89 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.2965, allocations: 3.984 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002237/0.2967, allocations: 117 kB / 1.03 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.563e-06/0.2967, allocations: 0 / 1.03 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0004515/0.2971, allocations: 203.3 kB / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.589e-05/0.2972, allocations: 114.8 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.56e-05/0.2973, allocations: 109.8 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.434e-05/0.2974, allocations: 37.69 kB / 1.03 GB, free: 14.13 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.381e-05/0.2974, allocations: 88.05 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.332e-05/0.2974, allocations: 27.73 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.873e-05/0.2975, allocations: 33.72 kB / 1.03 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.2976, allocations: 318.8 kB / 1.031 GB, free: 13.65 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.828e-05/0.2977, allocations: 39.97 kB / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/0.2979, allocations: 104.6 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002359/0.2981, allocations: 211.8 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.2981, allocations: 7.875 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003137/0.2984, allocations: 203.1 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.2985, allocations: 29.7 kB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.2985, allocations: 4 kB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.2985, allocations: 4 kB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.2986, allocations: 27.86 kB / 1.031 GB, free: 12.94 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.2986, allocations: 7.984 kB / 1.031 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.491e-05/0.2987, allocations: 12.19 kB / 1.031 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.2988, allocations: 12.31 kB / 1.031 GB, free: 12.91 MB / 0.8106 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.0001498/0.2989, allocations: 175.3 kB / 1.032 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.22e-05/0.2989, allocations: 11.91 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.959e-05/0.299, allocations: 12.36 kB / 1.032 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.299, allocations: 0 / 1.032 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.299, allocations: 0 / 1.032 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.299, allocations: 0 / 1.032 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001524/0.2992, allocations: 193.5 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2992, allocations: 4 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.376e-05/0.2992, allocations: 7.984 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.2992, allocations: 0 / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.2992, allocations: 0 / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.2993, allocations: 8 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2993, allocations: 0 / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003311/0.2996, allocations: 230.6 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.187e-05/0.2996, allocations: 89.02 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.243e-05/0.2997, allocations: 11.98 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.224e-05/0.2998, allocations: 4 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.029e-05/0.2998, allocations: 4 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.2998, allocations: 11.98 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.145e-05/0.2999, allocations: 83.27 kB / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2999, allocations: 0 / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002354/0.3001, allocations: 24 kB / 1.032 GB, free: 11.95 MB / 0.8106 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.0001308/0.3003, allocations: 115.2 kB / 1.032 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003066/0.3006, allocations: 167.2 kB / 1.033 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3006, allocations: 0 / 1.033 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.3008, allocations: 187.4 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002089/0.301, allocations: 15.34 kB / 1.033 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004078/0.3014, allocations: 179.2 kB / 1.033 GB, free: 11.24 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002245/0.3016, allocations: 0.6885 MB / 1.034 GB, free: 10.53 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.731e-05/0.3017, allocations: 8.609 kB / 1.034 GB, free: 10.51 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.888e-05/0.3017, allocations: 11.44 kB / 1.034 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of SimCode: time 2.5e-07/0.3017, allocations: 3.938 kB / 1.034 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of Templates: time 0.003557/0.3053, allocations: 0.9734 MB / 1.035 GB, free: 9.531 MB / 0.8106 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 -s gbode -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) Reference file matches