Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 2.192/2.192, allocations: 252 MB / 267.3 MB, free: 10.79 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001635/0.001635, allocations: 178.5 kB / 327 MB, free: 2.094 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.712/2.712, allocations: 205.4 MB / 0.578 GB, free: 20.17 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001179/0.001179, allocations: 87.5 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000539/0.0005391, allocations: 9.531 kB / 0.7971 GB, free: 134.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2941, allocations: 106.3 MB / 0.9009 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.00209/0.2962, allocations: 1.132 MB / 0.902 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008388/0.2971, allocations: 280 kB / 0.9023 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.459e-05/0.2972, allocations: 0 / 0.9023 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001128/0.2973, allocations: 11.94 kB / 0.9023 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001785/0.2975, allocations: 11.91 kB / 0.9023 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000204/0.2978, allocations: 23.98 kB / 0.9024 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001296/0.2979, allocations: 63.72 kB / 0.9024 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.298, allocations: 15.97 kB / 0.9024 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.2982, allocations: 23.92 kB / 0.9025 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.2983, allocations: 27.91 kB / 0.9025 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.491e-05/0.2984, allocations: 0 / 0.9025 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.196e-05/0.2984, allocations: 4 kB / 0.9025 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.857e-05/0.2985, allocations: 7.938 kB / 0.9025 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 9.269e-05/0.2986, allocations: 57.55 kB / 0.9025 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001424/0.2988, allocations: 55.78 kB / 0.9026 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2988, allocations: 4 kB / 0.9026 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.074e-06/0.2988, allocations: 0 / 0.9026 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.2988, allocations: 0 / 0.9026 GB, free: 61.5 MB / 0.6042 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.0005462/0.2994, allocations: 381.4 kB / 0.903 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/0.2994, allocations: 12.03 kB / 0.903 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.584e-05/0.2995, allocations: 34.69 kB / 0.903 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.467e-05/0.2995, allocations: 8.844 kB / 0.903 GB, free: 61.01 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001952/0.2997, allocations: 188.2 kB / 0.9032 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.2998, allocations: 4.375 kB / 0.9032 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/0.2998, allocations: 8.359 kB / 0.9032 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002469/0.3001, allocations: 74.22 kB / 0.9033 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.3001, allocations: 7.875 kB / 0.9033 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.3001, allocations: 0 / 0.9033 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.3001, allocations: 0 / 0.9033 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001786/0.3003, allocations: 47.97 kB / 0.9033 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005114/0.3009, allocations: 284.8 kB / 0.9036 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001651/0.301, allocations: 78.48 kB / 0.9037 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001364/0.3012, allocations: 56.89 kB / 0.9037 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.3012, allocations: 8 kB / 0.9037 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002422/0.3015, allocations: 109.1 kB / 0.9038 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 4.688e-06/0.3015, allocations: 96 / 0.9038 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0005732/0.3021, allocations: 207.2 kB / 0.904 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.915e-05/0.3022, allocations: 114.9 kB / 0.9042 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.181e-05/0.3023, allocations: 113.8 kB / 0.9043 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.3023, allocations: 33.7 kB / 0.9043 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.791e-05/0.3024, allocations: 84.12 kB / 0.9044 GB, free: 59.44 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.771e-05/0.3024, allocations: 27.66 kB / 0.9044 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.236e-05/0.3024, allocations: 4 kB / 0.9044 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.405e-05/0.3025, allocations: 318.8 kB / 0.9047 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.3027, allocations: 43.97 kB / 0.9047 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.3029, allocations: 104.5 kB / 0.9048 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003277/0.3032, allocations: 223.8 kB / 0.9051 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.3032, allocations: 0 / 0.9051 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004888/0.3037, allocations: 199.1 kB / 0.9053 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.578e-05/0.3038, allocations: 33.7 kB / 0.9053 GB, free: 58.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.699e-06/0.3038, allocations: 288 / 0.9053 GB, free: 58.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.3038, allocations: 8 kB / 0.9053 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000178/0.304, allocations: 31.92 kB / 0.9053 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.304, allocations: 4 kB / 0.9053 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.3042, allocations: 11.89 kB / 0.9053 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.329e-05/0.3042, allocations: 12 kB / 0.9053 GB, free: 58.34 MB / 0.6042 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 ($PRE.movMea.iSample,movMea.iSample,$PRE.movMea.counter,movMea.counter,$PRE.movMea.ySample[4],movMea.ySample[4],$PRE.movMea.ySample[3],movMea.ySample[3],$PRE.movMea.ySample[2],movMea.ySample[2],$PRE.movMea.ySample[1],movMea.ySample[1],$PRE.movMea.index,movMea.index,$PRE.movMea.y,movMea.y,$whenCondition1,movMea.sampleTrigger) * 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.0001607/0.3044, allocations: 179.4 kB / 0.9055 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.934e-05/0.3044, allocations: 15.91 kB / 0.9055 GB, free: 58.13 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.239e-05/0.3045, allocations: 8.359 kB / 0.9055 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.3045, allocations: 0 / 0.9055 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.3045, allocations: 3.938 kB / 0.9055 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.3045, allocations: 3.938 kB / 0.9056 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.3047, allocations: 189.6 kB / 0.9057 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3047, allocations: 0 / 0.9057 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.161e-05/0.3047, allocations: 7.984 kB / 0.9057 GB, free: 57.87 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.3048, allocations: 4 kB / 0.9057 GB, free: 57.87 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.3048, allocations: 4 kB / 0.9057 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.3048, allocations: 4 kB / 0.9058 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3048, allocations: 0 / 0.9058 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004717/0.3053, allocations: 234.5 kB / 0.906 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.232e-05/0.3053, allocations: 81.02 kB / 0.9061 GB, free: 57.51 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.508e-05/0.3054, allocations: 7.984 kB / 0.9061 GB, free: 57.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.951e-05/0.3055, allocations: 8 kB / 0.9061 GB, free: 57.49 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.483e-05/0.3056, allocations: 8 kB / 0.9061 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.3056, allocations: 7.984 kB / 0.9061 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.367e-05/0.3057, allocations: 87.59 kB / 0.9062 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.192e-06/0.3057, allocations: 0 / 0.9062 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003931/0.3061, allocations: 19.94 kB / 0.9062 GB, free: 57.37 MB / 0.6042 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.0007282/0.3068, allocations: 0.7822 MB / 0.9069 GB, free: 56.55 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004032/0.3073, allocations: 167.7 kB / 0.9071 GB, free: 56.38 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3073, allocations: 64 / 0.9071 GB, free: 56.38 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002409/0.3075, allocations: 191.4 kB / 0.9073 GB, free: 56.18 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003328/0.3079, allocations: 8 kB / 0.9073 GB, free: 56.17 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002168/0.3101, allocations: 1.648 MB / 0.9089 GB, free: 54.38 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001483/0.3102, allocations: 0.6965 MB / 0.9096 GB, free: 53.66 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.088e-05/0.3103, allocations: 4.672 kB / 0.9096 GB, free: 53.65 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.05e-05/0.3104, allocations: 19.42 kB / 0.9096 GB, free: 53.63 MB / 0.6042 GB Notification: Performance of SimCode: time 4.81e-07/0.3104, allocations: 0 / 0.9096 GB, free: 53.63 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01793/0.3283, allocations: 1.798 MB / 0.9114 GB, free: 52.02 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002299/0.3286, allocations: 225.4 kB / 0.9116 GB, free: 51.76 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.859/3.188, allocations: 6.875 kB / 0.9116 GB, free: 51.75 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)