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.001495/0.001495, allocations: 101.5 kB / 16.35 MB, free: 5.879 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.001935/0.001936, allocations: 192.6 kB / 17.29 MB, free: 5.52 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.339/1.339, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.484/2.484, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001249, allocations: 74.27 kB / 0.8773 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2986, allocations: 153 MB / 1.027 GB, free: 2.004 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.003002/0.3017, allocations: 1.41 MB / 1.028 GB, free: 0.5898 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0004915/0.3022, allocations: 275.1 kB / 1.028 GB, free: 328 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.795e-05/0.3022, allocations: 4 kB / 1.028 GB, free: 324 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 8.286e-05/0.3023, allocations: 3.938 kB / 1.028 GB, free: 320 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.3025, allocations: 15.8 kB / 1.028 GB, free: 304 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001236/0.3026, allocations: 35.84 kB / 1.028 GB, free: 268 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001583/0.3028, allocations: 71.83 kB / 1.028 GB, free: 196 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.183e-05/0.3029, allocations: 7.984 kB / 1.029 GB, free: 188 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.303, allocations: 31.86 kB / 1.029 GB, free: 156 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001238/0.3031, allocations: 31.89 kB / 1.029 GB, free: 124 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.285e-05/0.3032, allocations: 4 kB / 1.029 GB, free: 120 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.532e-05/0.3032, allocations: 8 kB / 1.029 GB, free: 112 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 4.713e-05/0.3032, allocations: 15.92 kB / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 6.696e-05/0.3033, allocations: 23.88 kB / 1.029 GB, free: 72 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001372/0.3035, allocations: 67.77 kB / 1.029 GB, free: 4 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3035, allocations: 0 / 1.029 GB, free: 4 kB / 0.795 GB Notification: Performance of FrontEnd: time 2.194e-06/0.3035, allocations: 0 / 1.029 GB, free: 4 kB / 0.795 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.3035, allocations: 4 kB / 1.029 GB, free: 0 / 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.0005822/0.3041, allocations: 386.2 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.3041, allocations: 12.03 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.189e-05/0.3042, allocations: 4.938 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002023/0.3044, allocations: 184.2 kB / 1.029 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.3044, allocations: 4.375 kB / 1.029 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.536e-05/0.3045, allocations: 4.375 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002189/0.3047, allocations: 78.09 kB / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.3047, allocations: 192 / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.3047, allocations: 7.938 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.3047, allocations: 0 / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001497/0.3049, allocations: 39.97 kB / 1.029 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005021/0.3054, allocations: 280.9 kB / 1.03 GB, free: 14.87 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001539/0.3056, allocations: 78.42 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.3057, allocations: 52.89 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.3058, allocations: 4 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002284/0.306, allocations: 121 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.893e-06/0.306, allocations: 0 / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0005101/0.3065, allocations: 199.3 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.207e-05/0.3066, allocations: 118.8 kB / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.795e-05/0.3067, allocations: 109.8 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.3068, allocations: 33.7 kB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.061e-05/0.3069, allocations: 92.03 kB / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.548e-05/0.3069, allocations: 23.75 kB / 1.03 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.899e-05/0.307, allocations: 37.7 kB / 1.03 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3071, allocations: 322.8 kB / 1.031 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.3073, allocations: 31.98 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001657/0.3074, allocations: 112.5 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003252/0.3078, allocations: 207.8 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.483e-06/0.3078, allocations: 3.938 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004435/0.3083, allocations: 207.2 kB / 1.031 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.028e-05/0.3083, allocations: 33.7 kB / 1.031 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.3083, allocations: 0 / 1.031 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.3084, allocations: 4 kB / 1.031 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.3085, allocations: 27.92 kB / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.116e-06/0.3085, allocations: 0 / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.3087, allocations: 15.91 kB / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/0.3087, allocations: 4 kB / 1.031 GB, free: 12.88 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.0001771/0.3089, allocations: 191.4 kB / 1.032 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.947e-05/0.3089, allocations: 11.91 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.671e-05/0.309, allocations: 12.31 kB / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.309, allocations: 0 / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.309, allocations: 0 / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.309, allocations: 0 / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001859/0.3092, allocations: 189.5 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3092, allocations: 0 / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.814e-05/0.3092, allocations: 4 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.3093, allocations: 0 / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.3093, allocations: 8 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.3093, allocations: 3.984 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3093, allocations: 0 / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004164/0.3097, allocations: 222.6 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.393e-05/0.3098, allocations: 88.95 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.731e-05/0.3098, allocations: 12 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.632e-05/0.3099, allocations: 7.984 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.945e-05/0.31, allocations: 4 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.31, allocations: 11.94 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.185e-05/0.3101, allocations: 91.25 kB / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3101, allocations: 0 / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003315/0.3104, allocations: 24 kB / 1.032 GB, free: 11.9 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.0001441/0.3106, allocations: 113.4 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003902/0.311, allocations: 171.2 kB / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.311, allocations: 0 / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002435/0.3112, allocations: 179.4 kB / 1.033 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002592/0.3115, allocations: 19.14 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004987/0.312, allocations: 179.2 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003094/0.3123, allocations: 0.6929 MB / 1.034 GB, free: 10.48 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.766e-05/0.3124, allocations: 8.656 kB / 1.034 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.478e-05/0.3124, allocations: 11.44 kB / 1.034 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of SimCode: time 4.4e-07/0.3124, allocations: 0 / 1.034 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of Templates: time 0.004226/0.3167, allocations: 0.9662 MB / 1.035 GB, free: 9.496 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 cvode -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