Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.001658/0.001658, allocations: 102.9 kB / 16.35 MB, free: 5.875 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.00186/0.00186, allocations: 191 kB / 17.29 MB, free: 5.516 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.338/1.338, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.403/2.403, allocations: 437.1 MB / 0.7112 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 63.69 kB / 0.8707 GB, free: 1.414 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2857, allocations: 151.6 MB / 1.019 GB, free: 9.828 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002704/0.2885, allocations: 1.415 MB / 1.02 GB, free: 8.398 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0005739/0.2891, allocations: 268.7 kB / 1.02 GB, free: 8.137 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.338e-05/0.2891, allocations: 0 / 1.02 GB, free: 8.137 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001063/0.2893, allocations: 7.922 kB / 1.02 GB, free: 8.129 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001396/0.2894, allocations: 15.92 kB / 1.02 GB, free: 8.113 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001689/0.2896, allocations: 35.84 kB / 1.02 GB, free: 8.078 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001683/0.2898, allocations: 75.77 kB / 1.021 GB, free: 8.004 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.2899, allocations: 4 kB / 1.021 GB, free: 8 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.225e-05/0.29, allocations: 23.92 kB / 1.021 GB, free: 7.977 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.2901, allocations: 27.91 kB / 1.021 GB, free: 7.949 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.607e-05/0.2901, allocations: 15.92 kB / 1.021 GB, free: 7.934 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.54e-05/0.2902, allocations: 8 kB / 1.021 GB, free: 7.926 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 5.152e-05/0.2902, allocations: 11.94 kB / 1.021 GB, free: 7.914 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 6.249e-05/0.2903, allocations: 27.86 kB / 1.021 GB, free: 7.887 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001386/0.2904, allocations: 59.78 kB / 1.021 GB, free: 7.828 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2904, allocations: 0 / 1.021 GB, free: 7.828 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2905, allocations: 0 / 1.021 GB, free: 7.828 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.121e-05/0.2905, allocations: 0 / 1.021 GB, free: 7.828 MB / 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.0005998/0.2911, allocations: 389 kB / 1.021 GB, free: 7.391 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.2911, allocations: 19.97 kB / 1.021 GB, free: 7.371 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.446e-05/0.2912, allocations: 12.84 kB / 1.021 GB, free: 7.359 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000188/0.2914, allocations: 176.2 kB / 1.021 GB, free: 7.148 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.2914, allocations: 4.375 kB / 1.021 GB, free: 7.145 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.094e-05/0.2914, allocations: 4.375 kB / 1.021 GB, free: 7.141 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002029/0.2916, allocations: 74.16 kB / 1.021 GB, free: 7.062 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.2916, allocations: 4.125 kB / 1.021 GB, free: 7.059 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.2917, allocations: 3.938 kB / 1.021 GB, free: 7.055 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.2917, allocations: 0 / 1.021 GB, free: 7.055 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001152/0.2918, allocations: 43.98 kB / 1.021 GB, free: 7.012 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005244/0.2923, allocations: 280.9 kB / 1.022 GB, free: 6.688 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001329/0.2925, allocations: 66.5 kB / 1.022 GB, free: 6.613 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.2926, allocations: 68.91 kB / 1.022 GB, free: 6.543 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.2926, allocations: 0 / 1.022 GB, free: 6.543 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002164/0.2929, allocations: 113.1 kB / 1.022 GB, free: 6.414 MB / 0.795 GB Notification: Performance of pre-optimization done (n=11): time 1.422e-06/0.2929, allocations: 0 / 1.022 GB, free: 6.414 MB / 0.795 GB Notification: Performance of matching and sorting (n=11): time 0.0004262/0.2933, allocations: 199.2 kB / 1.022 GB, free: 6.207 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.333e-05/0.2934, allocations: 122.8 kB / 1.022 GB, free: 6.062 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.2935, allocations: 109.8 kB / 1.022 GB, free: 5.945 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.743e-05/0.2936, allocations: 33.7 kB / 1.022 GB, free: 5.906 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.076e-05/0.2936, allocations: 88.14 kB / 1.022 GB, free: 5.816 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.128e-05/0.2937, allocations: 35.62 kB / 1.022 GB, free: 5.781 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.586e-05/0.2937, allocations: 37.7 kB / 1.023 GB, free: 5.738 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001589/0.2939, allocations: 318.8 kB / 1.023 GB, free: 5.418 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.662e-05/0.294, allocations: 35.97 kB / 1.023 GB, free: 5.383 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.2941, allocations: 106.3 kB / 1.023 GB, free: 5.25 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002327/0.2944, allocations: 203.8 kB / 1.023 GB, free: 5.008 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.2944, allocations: 3.938 kB / 1.023 GB, free: 5.004 MB / 0.795 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003017/0.2947, allocations: 211.2 kB / 1.023 GB, free: 4.785 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.034e-05/0.2948, allocations: 33.69 kB / 1.023 GB, free: 4.746 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.2948, allocations: 4 kB / 1.023 GB, free: 4.742 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.6e-05/0.2948, allocations: 4 kB / 1.023 GB, free: 4.738 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.2949, allocations: 19.98 kB / 1.023 GB, free: 4.719 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.295, allocations: 7.938 kB / 1.023 GB, free: 4.711 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.266e-05/0.295, allocations: 11.91 kB / 1.023 GB, free: 4.699 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.2951, allocations: 8 kB / 1.023 GB, free: 4.691 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.0001504/0.2952, allocations: 180.2 kB / 1.024 GB, free: 4.5 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.914e-05/0.2952, allocations: 15.84 kB / 1.024 GB, free: 4.484 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.725e-05/0.2953, allocations: 8.375 kB / 1.024 GB, free: 4.477 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.2953, allocations: 0 / 1.024 GB, free: 4.477 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.2953, allocations: 3.938 kB / 1.024 GB, free: 4.473 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.2953, allocations: 7.938 kB / 1.024 GB, free: 4.465 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001352/0.2954, allocations: 185.6 kB / 1.024 GB, free: 4.234 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2955, allocations: 0 / 1.024 GB, free: 4.234 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.961e-05/0.2955, allocations: 7.984 kB / 1.024 GB, free: 4.227 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.2955, allocations: 4 kB / 1.024 GB, free: 4.223 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/0.2955, allocations: 8 kB / 1.024 GB, free: 4.215 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.2955, allocations: 0 / 1.024 GB, free: 4.215 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2955, allocations: 0 / 1.024 GB, free: 4.215 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003237/0.2959, allocations: 218.6 kB / 1.024 GB, free: 3.977 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.764e-05/0.2959, allocations: 89 kB / 1.024 GB, free: 3.871 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.643e-05/0.296, allocations: 8 kB / 1.024 GB, free: 3.863 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.883e-05/0.296, allocations: 4 kB / 1.024 GB, free: 3.859 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.112e-05/0.2961, allocations: 11.98 kB / 1.024 GB, free: 3.848 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.2961, allocations: 4 kB / 1.024 GB, free: 3.844 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.454e-05/0.2961, allocations: 91.2 kB / 1.024 GB, free: 3.754 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.733e-06/0.2962, allocations: 0 / 1.024 GB, free: 3.754 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002307/0.2964, allocations: 27.94 kB / 1.024 GB, free: 3.727 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.0001365/0.2965, allocations: 107.2 kB / 1.024 GB, free: 3.613 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003166/0.2969, allocations: 171.2 kB / 1.025 GB, free: 3.434 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.2969, allocations: 0 / 1.025 GB, free: 3.434 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002017/0.2971, allocations: 183.4 kB / 1.025 GB, free: 3.242 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002076/0.2973, allocations: 16.27 kB / 1.025 GB, free: 3.227 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004256/0.2977, allocations: 178.3 kB / 1.025 GB, free: 3.027 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.298, allocations: 0.6933 MB / 1.026 GB, free: 2.309 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.811e-05/0.298, allocations: 12.66 kB / 1.026 GB, free: 2.293 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.937e-05/0.2981, allocations: 11.44 kB / 1.026 GB, free: 2.281 MB / 0.795 GB Notification: Performance of SimCode: time 2e-07/0.2981, allocations: 0 / 1.026 GB, free: 2.281 MB / 0.795 GB Notification: Performance of Templates: time 0.003164/0.3012, allocations: 0.9746 MB / 1.027 GB, free: 1.316 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_10_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_10_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_10_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_10_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_10_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches