Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01086/0.01086, allocations: 223 kB / 15.17 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.00113/0.00113, allocations: 181.8 kB / 16.06 MB, free: 5.828 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 3.54/3.54, allocations: 389.1 MB / 405.9 MB, free: 67.65 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.545/4.545, allocations: 472.3 MB / 0.9018 GB, free: 13.39 MB / 0.573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004952/0.0004954, allocations: 20 kB / 1.008 GB, free: 0.8086 MB / 0.6667 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5257/0.5263, allocations: 98.72 MB / 1.104 GB, free: 183.7 MB / 0.6823 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean): time 0.001775/0.5281, allocations: 1.668 MB / 1.106 GB, free: 182 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.001021/0.5291, allocations: 0.6437 MB / 1.106 GB, free: 181.4 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.673e-05/0.5293, allocations: 0 / 1.106 GB, free: 181.4 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 3.32e-05/0.5293, allocations: 11.86 kB / 1.106 GB, free: 181.4 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.000119/0.5294, allocations: 32.22 kB / 1.106 GB, free: 181.4 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003923/0.5298, allocations: 131 kB / 1.106 GB, free: 181.2 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.0002371/0.5301, allocations: 284 kB / 1.107 GB, free: 181 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.5302, allocations: 37.94 kB / 1.107 GB, free: 180.9 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001554/0.5304, allocations: 112.6 kB / 1.107 GB, free: 180.8 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001556/0.5306, allocations: 123.5 kB / 1.107 GB, free: 180.7 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 4.92e-05/0.5306, allocations: 19.44 kB / 1.107 GB, free: 180.7 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 4.431e-05/0.5307, allocations: 16 kB / 1.107 GB, free: 180.7 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 5.287e-05/0.5308, allocations: 59.8 kB / 1.107 GB, free: 180.6 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 5.74e-05/0.5308, allocations: 61.58 kB / 1.107 GB, free: 180.5 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001914/0.531, allocations: 209.6 kB / 1.107 GB, free: 180.3 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.52e-06/0.531, allocations: 0 / 1.107 GB, free: 180.3 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.881e-06/0.531, allocations: 0 / 1.107 GB, free: 180.3 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.008e-06/0.5311, allocations: 4 kB / 1.107 GB, free: 180.3 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001135/0.5322, allocations: 0.6071 MB / 1.108 GB, free: 179.7 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.5323, allocations: 11.97 kB / 1.108 GB, free: 179.7 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.643e-05/0.5324, allocations: 35.58 kB / 1.108 GB, free: 179.6 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.5325, allocations: 201 kB / 1.108 GB, free: 179.4 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001757/0.5327, allocations: 267.8 kB / 1.108 GB, free: 179.1 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.104e-05/0.5327, allocations: 24 kB / 1.108 GB, free: 179.1 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005661/0.5333, allocations: 265.6 kB / 1.109 GB, free: 178.8 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/0.5334, allocations: 1 kB / 1.109 GB, free: 178.8 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.406e-05/0.5334, allocations: 15.92 kB / 1.109 GB, free: 178.8 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.299e-06/0.5334, allocations: 5.688 kB / 1.109 GB, free: 178.8 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005536/0.534, allocations: 186.6 kB / 1.109 GB, free: 178.6 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.5352, allocations: 0.7733 MB / 1.11 GB, free: 177.8 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005622/0.5358, allocations: 217.5 kB / 1.11 GB, free: 177.5 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003435/0.5361, allocations: 140 kB / 1.11 GB, free: 177.4 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 5.179e-05/0.5362, allocations: 17.34 kB / 1.11 GB, free: 177.4 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006094/0.5368, allocations: 319 kB / 1.11 GB, free: 177 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=48): time 3.738e-06/0.5368, allocations: 0 / 1.11 GB, free: 177 MB / 0.6823 GB Notification: Performance of matching and sorting (n=48): time 0.001289/0.5381, allocations: 497.8 kB / 1.111 GB, free: 176.6 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/0.5382, allocations: 118.8 kB / 1.111 GB, free: 176.4 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001485/0.5384, allocations: 175.1 kB / 1.111 GB, free: 176.2 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.053e-05/0.5384, allocations: 41.7 kB / 1.111 GB, free: 176.2 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.851e-05/0.5385, allocations: 115.9 kB / 1.111 GB, free: 176.1 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.5386, allocations: 150 kB / 1.111 GB, free: 175.9 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.242e-05/0.5386, allocations: 15.94 kB / 1.111 GB, free: 175.9 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.153e-05/0.5387, allocations: 338.8 kB / 1.112 GB, free: 175.6 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003947/0.5391, allocations: 156 kB / 1.112 GB, free: 175.4 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004335/0.5396, allocations: 260.2 kB / 1.112 GB, free: 175.1 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004322/0.54, allocations: 172.1 kB / 1.112 GB, free: 175 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.54, allocations: 0 / 1.112 GB, free: 175 MB / 0.6823 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001091/0.5411, allocations: 0.4888 MB / 1.113 GB, free: 174.5 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.5412, allocations: 4 kB / 1.113 GB, free: 174.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.5412, allocations: 4 kB / 1.113 GB, free: 174.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.444e-05/0.5412, allocations: 11.16 kB / 1.113 GB, free: 174.5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004702/0.5417, allocations: 106.9 kB / 1.113 GB, free: 174.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.5417, allocations: 4 kB / 1.113 GB, free: 174.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003461/0.5421, allocations: 70.53 kB / 1.113 GB, free: 174.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.326e-05/0.5422, allocations: 20 kB / 1.113 GB, free: 174.3 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition5,$PRE.movingMean_1.mode,movingMean_1.mode,$whenCondition6,$PRE.movingMean_2.mode,movingMean_2.mode,$whenCondition7,$PRE.movingMean_3.mode,movingMean_3.mode,$whenCondition8,$PRE.movingMean_4.mode,movingMean_4.mode,$whenCondition9,$PRE.movingMean_5.mode,movingMean_5.mode,$whenCondition3,$PRE.movingMean_6.mode,movingMean_6.mode,$whenCondition4,$PRE.movingMean_7.mode,movingMean_7.mode,$whenCondition1,$PRE.movingMean_8.mode,movingMean_8.mode,$whenCondition2,$PRE.movingMean_9.mode,movingMean_9.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * 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.0001915/0.5424, allocations: 162.3 kB / 1.113 GB, free: 174.1 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.296e-05/0.5424, allocations: 35.56 kB / 1.113 GB, free: 174.1 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.673e-05/0.5425, allocations: 30.86 kB / 1.113 GB, free: 174.1 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.5425, allocations: 4 kB / 1.113 GB, free: 174.1 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.991e-06/0.5425, allocations: 4 kB / 1.113 GB, free: 174 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.28e-06/0.5426, allocations: 3.984 kB / 1.113 GB, free: 174 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003704/0.5429, allocations: 357.2 kB / 1.114 GB, free: 173.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.685e-06/0.543, allocations: 0 / 1.114 GB, free: 173.6 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000503/0.5435, allocations: 76.72 kB / 1.114 GB, free: 173.6 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.503e-06/0.5435, allocations: 7.953 kB / 1.114 GB, free: 173.6 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.276e-05/0.5436, allocations: 15.98 kB / 1.114 GB, free: 173.6 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.549e-06/0.5436, allocations: 4 kB / 1.114 GB, free: 173.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.339e-06/0.5436, allocations: 0 / 1.114 GB, free: 173.5 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.5449, allocations: 0.5969 MB / 1.114 GB, free: 172.9 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.198e-05/0.545, allocations: 109.7 kB / 1.114 GB, free: 172.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.158e-05/0.5451, allocations: 17.31 kB / 1.114 GB, free: 172.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002959/0.5454, allocations: 43.41 kB / 1.114 GB, free: 172.8 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.5455, allocations: 39.94 kB / 1.114 GB, free: 172.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-05/0.5455, allocations: 16 kB / 1.114 GB, free: 172.7 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 8.967e-05/0.5456, allocations: 129.2 kB / 1.115 GB, free: 172.6 MB / 0.6823 GB Notification: Performance of sort global known variables: time 8.1e-07/0.5457, allocations: 0.8438 kB / 1.115 GB, free: 172.6 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004485/0.5461, allocations: 80.09 kB / 1.115 GB, free: 172.5 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movingMean_1.mu,movingMean_2.mu,movingMean_3.mu,movingMean_4.mu,movingMean_5.mu,movingMean_6.mu,movingMean_7.mu,movingMean_8.mu,movingMean_9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movingMean_1.mode,movingMean_2.mode,movingMean_3.mode,movingMean_4.mode,movingMean_5.mode,$whenCondition4,$whenCondition3,movingMean_6.mode,movingMean_7.mode,$whenCondition2,$whenCondition1,movingMean_8.mode,movingMean_9.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.000158/0.5463, allocations: 126.2 kB / 1.115 GB, free: 172.4 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0009418/0.5472, allocations: 388.5 kB / 1.115 GB, free: 172 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.843e-06/0.5473, allocations: 3.938 kB / 1.115 GB, free: 172 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000462/0.5477, allocations: 192.5 kB / 1.115 GB, free: 171.8 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004451/0.5482, allocations: 49.72 kB / 1.115 GB, free: 171.8 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.5495, allocations: 0.6965 MB / 1.116 GB, free: 171 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001994/0.5497, allocations: 0.7715 MB / 1.117 GB, free: 170.3 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0002274/0.5499, allocations: 39.44 kB / 1.117 GB, free: 170.2 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/0.5501, allocations: 39.36 kB / 1.117 GB, free: 170.2 MB / 0.6823 GB Notification: Performance of SimCode: time 1.469e-06/0.5501, allocations: 0 / 1.117 GB, free: 170.2 MB / 0.6823 GB Notification: Performance of Templates: time 0.00846/0.5585, allocations: 3.042 MB / 1.12 GB, free: 167.4 MB / 0.6823 GB