Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.651/1.651, allocations: 285.6 MB / 293.1 MB, free: 10.16 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001294/0.001294, allocations: 176.9 kB / 361.4 MB, free: 6.848 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.563/1.563, allocations: 205.3 MB / 0.62 GB, free: 11.69 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008671/0.0008672, allocations: 91.83 kB / 0.733 GB, free: 44.18 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.16e-05/2.162e-05, allocations: 4 kB / 0.8519 GB, free: 2.629 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.682/0.6821, allocations: 115.3 MB / 0.9645 GB, free: 78.62 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2021/0.8842, allocations: 137.5 MB / 1.099 GB, free: 2.211 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002141/0.8845, allocations: 79.94 kB / 1.099 GB, free: 2.133 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004289/0.8888, allocations: 1.619 MB / 1.1 GB, free: 0.5547 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.513e-06/0.8888, allocations: 0.8125 kB / 1.1 GB, free: 0.5547 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.446e-06/0.8888, allocations: 0 / 1.1 GB, free: 0.5547 MB / 0.698 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.0004051/0.8892, allocations: 385.8 kB / 1.101 GB, free: 132 kB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.8893, allocations: 8.031 kB / 1.101 GB, free: 124 kB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.042e-05/0.8893, allocations: 8.938 kB / 1.101 GB, free: 116 kB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002352/0.8895, allocations: 183.5 kB / 1.101 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.8896, allocations: 4.75 kB / 1.101 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.341e-05/0.8896, allocations: 4 kB / 1.101 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.191e-05/0.8897, allocations: 33.14 kB / 1.101 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00011/0.8898, allocations: 65.67 kB / 1.101 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.8899, allocations: 0 / 1.101 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.8899, allocations: 0.5312 kB / 1.101 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.8899, allocations: 0.5938 kB / 1.101 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004163/0.8903, allocations: 267.3 kB / 1.101 GB, free: 15.49 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.134e-05/0.8904, allocations: 69.72 kB / 1.101 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.77e-05/0.8905, allocations: 54.95 kB / 1.101 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.8905, allocations: 1.031 kB / 1.101 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001435/0.8907, allocations: 122.3 kB / 1.102 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 1.473e-06/0.8907, allocations: 0 / 1.102 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0002509/0.8909, allocations: 109.7 kB / 1.102 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.899e-05/0.891, allocations: 115.4 kB / 1.102 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.224e-05/0.8911, allocations: 98.41 kB / 1.102 GB, free: 14.88 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.8911, allocations: 33.7 kB / 1.102 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.413e-05/0.8912, allocations: 88.03 kB / 1.102 GB, free: 14.75 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.036e-05/0.8912, allocations: 28.53 kB / 1.102 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.392e-06/0.8912, allocations: 0 / 1.102 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.8914, allocations: 323.4 kB / 1.102 GB, free: 14.39 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.386e-05/0.8914, allocations: 32.67 kB / 1.102 GB, free: 14.36 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.653e-05/0.8915, allocations: 92.62 kB / 1.102 GB, free: 14.25 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.189e-05/0.8916, allocations: 46.92 kB / 1.103 GB, free: 14.2 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.8916, allocations: 0 / 1.103 GB, free: 14.2 MB / 0.7136 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002226/0.8918, allocations: 155.7 kB / 1.103 GB, free: 14.05 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 3.349e-05/0.8919, allocations: 33.7 kB / 1.103 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.8919, allocations: 0 / 1.103 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.8919, allocations: 4 kB / 1.103 GB, free: 14.01 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.8921, allocations: 31.92 kB / 1.103 GB, free: 13.98 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.8921, allocations: 5.328 kB / 1.103 GB, free: 13.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.474e-05/0.8921, allocations: 4 kB / 1.103 GB, free: 13.97 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.8922, allocations: 16.23 kB / 1.103 GB, free: 13.96 MB / 0.7136 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001298/0.8923, allocations: 162.3 kB / 1.103 GB, free: 13.79 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002029/0.8925, allocations: 141.4 kB / 1.103 GB, free: 13.64 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.64e-05/0.8925, allocations: 7.906 kB / 1.103 GB, free: 13.63 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.753e-05/0.8926, allocations: 8.625 kB / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.8926, allocations: 0 / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.8926, allocations: 7.953 kB / 1.103 GB, free: 13.61 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.8926, allocations: 0 / 1.103 GB, free: 13.61 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001302/0.8927, allocations: 158.2 kB / 1.103 GB, free: 13.42 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.8928, allocations: 4 kB / 1.103 GB, free: 13.42 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.123e-05/0.8928, allocations: 7.984 kB / 1.103 GB, free: 13.41 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.8928, allocations: 0 / 1.103 GB, free: 13.41 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.8928, allocations: 3.984 kB / 1.103 GB, free: 13.41 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.8928, allocations: 4 kB / 1.103 GB, free: 13.4 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.8928, allocations: 0 / 1.103 GB, free: 13.4 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002263/0.8931, allocations: 165.8 kB / 1.103 GB, free: 13.22 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.065e-05/0.8931, allocations: 93.02 kB / 1.103 GB, free: 13.11 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.92e-05/0.8932, allocations: 4 kB / 1.103 GB, free: 13.11 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.09e-05/0.8932, allocations: 7.984 kB / 1.103 GB, free: 13.1 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.172e-05/0.8933, allocations: 4 kB / 1.103 GB, free: 13.1 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.8933, allocations: 4 kB / 1.104 GB, free: 13.09 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.538e-05/0.8934, allocations: 88.58 kB / 1.104 GB, free: 13.01 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.01e-07/0.8934, allocations: 3.938 kB / 1.104 GB, free: 13 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002468/0.8936, allocations: 20 kB / 1.104 GB, free: 12.98 MB / 0.7136 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) * 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 (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.0005093/0.8941, allocations: 0.7108 MB / 1.104 GB, free: 12.25 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002182/0.8944, allocations: 159.2 kB / 1.104 GB, free: 12.08 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.8944, allocations: 0.5625 kB / 1.104 GB, free: 12.08 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.8945, allocations: 175.4 kB / 1.105 GB, free: 11.9 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001679/0.8947, allocations: 14.58 kB / 1.105 GB, free: 11.89 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004328/0.8952, allocations: 144.5 kB / 1.105 GB, free: 11.71 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002634/0.8954, allocations: 0.6923 MB / 1.105 GB, free: 10.99 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.947e-05/0.8955, allocations: 9.266 kB / 1.105 GB, free: 10.98 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.426e-05/0.8955, allocations: 17.12 kB / 1.105 GB, free: 10.97 MB / 0.7136 GB Notification: Performance of SimCode: time 5.41e-07/0.8955, allocations: 0 / 1.105 GB, free: 10.97 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01898/0.9145, allocations: 1.494 MB / 1.107 GB, free: 9.531 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002237/0.9148, allocations: 172.7 kB / 1.107 GB, free: 9.336 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.469/2.384, allocations: 0.75 kB / 1.107 GB, free: 9.336 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)