Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_7_0_0_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.1/package.mo): time 2.464/2.464, allocations: 248.7 MB / 256.2 MB, free: 7.078 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001439/0.001439, allocations: 184.5 kB / 315.4 MB, free: 4.02 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.137/2.137, allocations: 205.3 MB / 0.5662 GB, free: 0.582 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001044/0.001044, allocations: 96.41 kB / 0.6704 GB, free: 5.785 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.705e-05/2.716e-05, allocations: 4 kB / 0.7804 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.215, allocations: 106.3 MB / 0.8841 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.97/1.185, allocations: 132.1 MB / 1.013 GB, free: 6.914 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004123/1.186, allocations: 80.12 kB / 1.013 GB, free: 6.867 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01038/1.196, allocations: 1.635 MB / 1.015 GB, free: 5.496 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.284e-06/1.196, allocations: 0 / 1.015 GB, free: 5.496 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.376e-05/1.196, allocations: 3.125 kB / 1.015 GB, free: 5.496 MB / 0.6355 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.0006518/1.197, allocations: 383.6 kB / 1.015 GB, free: 5.074 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.971e-05/1.197, allocations: 12.03 kB / 1.015 GB, free: 5.062 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/1.197, allocations: 7.906 kB / 1.015 GB, free: 5.055 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003713/1.197, allocations: 190.7 kB / 1.015 GB, free: 4.832 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/1.197, allocations: 0 / 1.015 GB, free: 4.832 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.316e-05/1.197, allocations: 4 kB / 1.015 GB, free: 4.828 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001815/1.198, allocations: 26.38 kB / 1.015 GB, free: 4.812 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002346/1.198, allocations: 70.05 kB / 1.015 GB, free: 4.75 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/1.198, allocations: 0 / 1.015 GB, free: 4.75 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.038e-05/1.198, allocations: 0 / 1.015 GB, free: 4.75 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.954e-06/1.198, allocations: 0 / 1.015 GB, free: 4.75 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008361/1.199, allocations: 274.6 kB / 1.016 GB, free: 4.457 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/1.199, allocations: 63.3 kB / 1.016 GB, free: 4.414 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/1.199, allocations: 53.27 kB / 1.016 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.455e-05/1.199, allocations: 1.031 kB / 1.016 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002914/1.2, allocations: 113.5 kB / 1.016 GB, free: 4.27 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 3.456e-06/1.2, allocations: 0 / 1.016 GB, free: 4.27 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.000539/1.2, allocations: 114 kB / 1.016 GB, free: 4.176 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/1.2, allocations: 114.2 kB / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/1.2, allocations: 99.48 kB / 1.016 GB, free: 3.941 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.603e-05/1.201, allocations: 32.77 kB / 1.016 GB, free: 3.906 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.655e-05/1.201, allocations: 87.33 kB / 1.016 GB, free: 3.82 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 7.397e-05/1.201, allocations: 34.25 kB / 1.016 GB, free: 3.789 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.527e-05/1.201, allocations: 0 / 1.016 GB, free: 3.789 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000219/1.201, allocations: 328.2 kB / 1.017 GB, free: 3.465 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/1.201, allocations: 34.19 kB / 1.017 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000225/1.201, allocations: 85.83 kB / 1.017 GB, free: 3.34 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002127/1.202, allocations: 53.72 kB / 1.017 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.391e-06/1.202, allocations: 0 / 1.017 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005965/1.202, allocations: 141.3 kB / 1.017 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 6.781e-05/1.202, allocations: 37.69 kB / 1.017 GB, free: 3.133 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/1.202, allocations: 0 / 1.017 GB, free: 3.133 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.689e-05/1.202, allocations: 7.938 kB / 1.017 GB, free: 3.125 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003554/1.203, allocations: 27.17 kB / 1.017 GB, free: 3.102 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.112e-05/1.203, allocations: 7.953 kB / 1.017 GB, free: 3.094 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002015/1.203, allocations: 11.84 kB / 1.017 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.588e-05/1.203, allocations: 8 kB / 1.017 GB, free: 3.074 MB / 0.6355 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.0002675/1.203, allocations: 158.3 kB / 1.017 GB, free: 2.91 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005702/1.204, allocations: 151.4 kB / 1.017 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.027e-05/1.204, allocations: 4 kB / 1.017 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.481e-05/1.204, allocations: 11.95 kB / 1.017 GB, free: 2.77 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/1.204, allocations: 0 / 1.017 GB, free: 2.77 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/1.204, allocations: 4 kB / 1.017 GB, free: 2.766 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/1.204, allocations: 0 / 1.017 GB, free: 2.766 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002529/1.204, allocations: 160.7 kB / 1.018 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/1.204, allocations: 8 kB / 1.018 GB, free: 2.574 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/1.205, allocations: 4 kB / 1.018 GB, free: 2.57 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/1.205, allocations: 0 / 1.018 GB, free: 2.57 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.321e-05/1.205, allocations: 7.484 kB / 1.018 GB, free: 2.566 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.094e-06/1.205, allocations: 4 kB / 1.018 GB, free: 2.562 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/1.205, allocations: 3.953 kB / 1.018 GB, free: 2.559 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006102/1.205, allocations: 151.8 kB / 1.018 GB, free: 2.422 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.13e-05/1.205, allocations: 89.03 kB / 1.018 GB, free: 2.316 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.251e-05/1.206, allocations: 11.44 kB / 1.018 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/1.206, allocations: 4 kB / 1.018 GB, free: 2.305 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.223e-05/1.206, allocations: 11.92 kB / 1.018 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.663e-05/1.206, allocations: 7.953 kB / 1.018 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.192e-05/1.206, allocations: 82.97 kB / 1.018 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.21e-07/1.206, allocations: 0 / 1.018 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0004899/1.206, allocations: 20 kB / 1.018 GB, free: 2.188 MB / 0.6355 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.0009739/1.207, allocations: 0.7077 MB / 1.019 GB, free: 1.488 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0004637/1.208, allocations: 145.1 kB / 1.019 GB, free: 1.359 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/1.208, allocations: 0 / 1.019 GB, free: 1.359 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0003133/1.208, allocations: 180.6 kB / 1.019 GB, free: 1.238 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/1.209, allocations: 24 kB / 1.019 GB, free: 1.219 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008136/1.209, allocations: 141.2 kB / 1.019 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003787/1.21, allocations: 0.7017 MB / 1.02 GB, free: 332 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 8.248e-05/1.21, allocations: 4.672 kB / 1.02 GB, free: 328 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.381e-05/1.21, allocations: 22.8 kB / 1.02 GB, free: 312 kB / 0.6355 GB Notification: Performance of SimCode: time 1.353e-06/1.21, allocations: 0 / 1.02 GB, free: 312 kB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03418/1.244, allocations: 1.497 MB / 1.021 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003578/1.245, allocations: 171.5 kB / 1.021 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.375/3.619, allocations: 0.5 kB / 1.021 GB, free: 14.61 MB / 0.6511 GB