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 1.425/1.425, allocations: 251.9 MB / 266.9 MB, free: 11.02 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.001256/0.001256, allocations: 182.9 kB / 326.5 MB, free: 2.25 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.119/2.119, allocations: 205.4 MB / 0.5775 GB, free: 20.27 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.001338/0.001337, allocations: 94.38 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003664/0.0003664, allocations: 6.312 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2804, allocations: 106.3 MB / 0.9002 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1793/0.4598, allocations: 132.1 MB / 1.029 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.4601, allocations: 83.94 kB / 1.029 GB, free: 11.47 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004541/0.4647, allocations: 1.652 MB / 1.031 GB, free: 9.816 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.914e-06/0.4647, allocations: 0 / 1.031 GB, free: 9.816 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.014e-05/0.4647, allocations: 0 / 1.031 GB, free: 9.816 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004889/0.4652, allocations: 400.8 kB / 1.031 GB, free: 9.371 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.4653, allocations: 12.03 kB / 1.031 GB, free: 9.359 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.876e-05/0.4653, allocations: 34.75 kB / 1.031 GB, free: 9.316 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.837e-05/0.4654, allocations: 7.906 kB / 1.031 GB, free: 9.309 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002205/0.4656, allocations: 183 kB / 1.031 GB, free: 9.09 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.4656, allocations: 0 / 1.031 GB, free: 9.09 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.795e-05/0.4657, allocations: 7.938 kB / 1.031 GB, free: 9.082 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.4659, allocations: 77.64 kB / 1.032 GB, free: 9 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.4659, allocations: 0 / 1.032 GB, free: 9 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.4659, allocations: 8 kB / 1.032 GB, free: 8.992 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.4659, allocations: 0 / 1.032 GB, free: 8.992 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000116/0.466, allocations: 47.91 kB / 1.032 GB, free: 8.945 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004968/0.4665, allocations: 296.7 kB / 1.032 GB, free: 8.605 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001333/0.4667, allocations: 71.22 kB / 1.032 GB, free: 8.527 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.4667, allocations: 8 kB / 1.032 GB, free: 8.52 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001751/0.4669, allocations: 121 kB / 1.032 GB, free: 8.383 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 3.216e-06/0.4669, allocations: 4.094 kB / 1.032 GB, free: 8.379 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0004981/0.4674, allocations: 284.4 kB / 1.032 GB, free: 8.07 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.4675, allocations: 118.8 kB / 1.032 GB, free: 7.93 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.594e-05/0.4676, allocations: 113.1 kB / 1.033 GB, free: 7.812 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.421e-05/0.4677, allocations: 29.7 kB / 1.033 GB, free: 7.777 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.487e-05/0.4677, allocations: 88.14 kB / 1.033 GB, free: 7.688 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.261e-05/0.4678, allocations: 23.7 kB / 1.033 GB, free: 7.664 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.544e-06/0.4678, allocations: 4 kB / 1.033 GB, free: 7.66 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.4679, allocations: 322.8 kB / 1.033 GB, free: 7.336 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.436e-05/0.468, allocations: 35.98 kB / 1.033 GB, free: 7.301 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.4682, allocations: 117.5 kB / 1.033 GB, free: 7.156 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001206/0.4683, allocations: 79.62 kB / 1.033 GB, free: 7.074 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.4683, allocations: 0 / 1.033 GB, free: 7.074 MB / 0.6823 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000306/0.4686, allocations: 207 kB / 1.033 GB, free: 6.859 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 3.735e-05/0.4687, allocations: 37.69 kB / 1.033 GB, free: 6.816 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.4687, allocations: 4 kB / 1.034 GB, free: 6.812 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.4687, allocations: 3.953 kB / 1.034 GB, free: 6.809 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.4688, allocations: 23.98 kB / 1.034 GB, free: 6.785 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.4689, allocations: 12 kB / 1.034 GB, free: 6.773 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.867e-05/0.4689, allocations: 12.19 kB / 1.034 GB, free: 6.762 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.62e-05/0.469, allocations: 12 kB / 1.034 GB, free: 6.75 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001557/0.4691, allocations: 175.3 kB / 1.034 GB, free: 6.562 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.891e-05/0.4692, allocations: 11.84 kB / 1.034 GB, free: 6.551 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.813e-05/0.4692, allocations: 4.375 kB / 1.034 GB, free: 6.547 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.4692, allocations: 0 / 1.034 GB, free: 6.547 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.208e-06/0.4692, allocations: 15.89 kB / 1.034 GB, free: 6.531 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.4692, allocations: 0 / 1.034 GB, free: 6.531 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001522/0.4694, allocations: 189.5 kB / 1.034 GB, free: 6.297 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.4694, allocations: 4 kB / 1.034 GB, free: 6.293 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.049e-05/0.4694, allocations: 7.984 kB / 1.034 GB, free: 6.285 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-06/0.4694, allocations: 96 / 1.034 GB, free: 6.285 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.4695, allocations: 4 kB / 1.034 GB, free: 6.281 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.4695, allocations: 0 / 1.034 GB, free: 6.281 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.4695, allocations: 3.984 kB / 1.034 GB, free: 6.277 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003256/0.4698, allocations: 230.7 kB / 1.034 GB, free: 6.027 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.175e-05/0.4699, allocations: 89 kB / 1.034 GB, free: 5.922 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.918e-05/0.4699, allocations: 4 kB / 1.034 GB, free: 5.918 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.86e-05/0.47, allocations: 4 kB / 1.034 GB, free: 5.914 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.693e-05/0.47, allocations: 15.92 kB / 1.034 GB, free: 5.898 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.47, allocations: 0 / 1.034 GB, free: 5.898 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.024e-05/0.4701, allocations: 95.22 kB / 1.034 GB, free: 5.805 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.543e-06/0.4701, allocations: 0 / 1.034 GB, free: 5.805 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002094/0.4703, allocations: 27.88 kB / 1.034 GB, free: 5.777 MB / 0.6823 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 (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.0006426/0.471, allocations: 0.7717 MB / 1.035 GB, free: 4.969 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002939/0.4713, allocations: 179.2 kB / 1.035 GB, free: 4.781 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.4713, allocations: 0 / 1.035 GB, free: 4.781 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002168/0.4715, allocations: 183.4 kB / 1.036 GB, free: 4.59 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001632/0.4717, allocations: 15.94 kB / 1.036 GB, free: 4.574 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001117/0.4728, allocations: 1.803 MB / 1.037 GB, free: 2.68 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002502/0.4731, allocations: 0.6887 MB / 1.038 GB, free: 1.965 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.014e-05/0.4731, allocations: 4.672 kB / 1.038 GB, free: 1.953 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.656e-05/0.4732, allocations: 27.42 kB / 1.038 GB, free: 1.93 MB / 0.6823 GB Notification: Performance of SimCode: time 2.31e-07/0.4732, allocations: 0 / 1.038 GB, free: 1.93 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01163/0.4848, allocations: 1.808 MB / 1.04 GB, free: 308 kB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001741/0.485, allocations: 201.2 kB / 1.04 GB, free: 60 kB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/2.173, allocations: 0 / 1.04 GB, free: 60 kB / 0.6823 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)