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.413/1.413, allocations: 249.5 MB / 257 MB, free: 6.898 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.00103/0.00103, allocations: 179.3 kB / 316.3 MB, free: 3.305 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.492/1.492, allocations: 205.3 MB / 0.5671 GB, free: 15.84 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.0009536/0.0009538, allocations: 97.52 kB / 0.6714 GB, free: 4.957 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.459e-05/1.462e-05, allocations: 0 / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.1775, allocations: 106.3 MB / 0.8853 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6852/0.8627, allocations: 132.3 MB / 1.015 GB, free: 5.148 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/0.863, allocations: 83.38 kB / 1.015 GB, free: 5.102 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004347/0.8674, allocations: 1.636 MB / 1.016 GB, free: 3.734 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.052e-06/0.8674, allocations: 0 / 1.016 GB, free: 3.734 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.486e-06/0.8674, allocations: 0 / 1.016 GB, free: 3.734 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.0004109/0.8678, allocations: 390.3 kB / 1.017 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.8679, allocations: 8.031 kB / 1.017 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.399e-05/0.8679, allocations: 4 kB / 1.017 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000204/0.8681, allocations: 185.8 kB / 1.017 GB, free: 3.078 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.8682, allocations: 0 / 1.017 GB, free: 3.078 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.301e-05/0.8682, allocations: 7.938 kB / 1.017 GB, free: 3.07 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.215e-05/0.8683, allocations: 29.8 kB / 1.017 GB, free: 3.051 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001082/0.8684, allocations: 67.17 kB / 1.017 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.8684, allocations: 0 / 1.017 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.8684, allocations: 0 / 1.017 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.8684, allocations: 4 kB / 1.017 GB, free: 2.984 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000393/0.8688, allocations: 270.1 kB / 1.017 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.902e-05/0.8689, allocations: 64.84 kB / 1.017 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.824e-05/0.869, allocations: 51.67 kB / 1.017 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.869, allocations: 4 kB / 1.017 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001231/0.8691, allocations: 111 kB / 1.017 GB, free: 2.508 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 1.302e-06/0.8692, allocations: 0 / 1.017 GB, free: 2.508 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0002334/0.8694, allocations: 116.3 kB / 1.017 GB, free: 2.414 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.8695, allocations: 118.7 kB / 1.018 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.195e-05/0.8695, allocations: 97.56 kB / 1.018 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.8696, allocations: 29.81 kB / 1.018 GB, free: 2.145 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.446e-05/0.8696, allocations: 95.56 kB / 1.018 GB, free: 2.051 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.456e-05/0.8697, allocations: 34.41 kB / 1.018 GB, free: 2.023 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.273e-06/0.8697, allocations: 0 / 1.018 GB, free: 2.023 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.8698, allocations: 322 kB / 1.018 GB, free: 1.703 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.821e-05/0.8698, allocations: 24.5 kB / 1.018 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.361e-05/0.8699, allocations: 99.94 kB / 1.018 GB, free: 1.574 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.628e-05/0.87, allocations: 45.8 kB / 1.018 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.87, allocations: 0 / 1.018 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002273/0.8703, allocations: 148.3 kB / 1.018 GB, free: 1.41 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.548e-05/0.8703, allocations: 37.64 kB / 1.018 GB, free: 1.367 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.8703, allocations: 0 / 1.018 GB, free: 1.367 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.8704, allocations: 4 kB / 1.018 GB, free: 1.363 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.8705, allocations: 27.8 kB / 1.019 GB, free: 1.34 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.8705, allocations: 4.25 kB / 1.019 GB, free: 1.336 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.283e-05/0.8706, allocations: 16.14 kB / 1.019 GB, free: 1.32 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.579e-05/0.8706, allocations: 12 kB / 1.019 GB, free: 1.309 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.0001377/0.8707, allocations: 154.2 kB / 1.019 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002135/0.871, allocations: 143.9 kB / 1.019 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.67e-05/0.871, allocations: 7.906 kB / 1.019 GB, free: 1.023 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.002e-05/0.871, allocations: 4.625 kB / 1.019 GB, free: 1.016 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.871, allocations: 4.828 kB / 1.019 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.8711, allocations: 4 kB / 1.019 GB, free: 1.008 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.8711, allocations: 4 kB / 1.019 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001326/0.8712, allocations: 157.8 kB / 1.019 GB, free: 0.8242 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.8712, allocations: 3.938 kB / 1.019 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.005e-05/0.8713, allocations: 11.98 kB / 1.019 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.8713, allocations: 3.375 kB / 1.019 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.8713, allocations: 0 / 1.019 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.8713, allocations: 4 kB / 1.019 GB, free: 0.8047 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.8713, allocations: 3.984 kB / 1.019 GB, free: 0.8008 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002324/0.8716, allocations: 170.6 kB / 1.019 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.786e-05/0.8716, allocations: 81.11 kB / 1.019 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.403e-05/0.8717, allocations: 4 kB / 1.019 GB, free: 0.5469 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.103e-05/0.8717, allocations: 11.92 kB / 1.019 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.999e-05/0.8718, allocations: 4 kB / 1.019 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.8718, allocations: 7.875 kB / 1.019 GB, free: 0.5273 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.641e-05/0.8719, allocations: 83.27 kB / 1.019 GB, free: 456 kB / 0.6355 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8719, allocations: 0 / 1.019 GB, free: 456 kB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002415/0.8721, allocations: 23.95 kB / 1.019 GB, free: 432 kB / 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.0005715/0.8727, allocations: 0.7103 MB / 1.02 GB, free: 15.72 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002407/0.873, allocations: 150.5 kB / 1.02 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.873, allocations: 0.5625 kB / 1.02 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000146/0.8731, allocations: 183.8 kB / 1.02 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001656/0.8733, allocations: 7.938 kB / 1.02 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004392/0.8737, allocations: 137.2 kB / 1.021 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.874, allocations: 0.6978 MB / 1.021 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.817e-05/0.8741, allocations: 5.047 kB / 1.021 GB, free: 14.56 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.273e-05/0.8741, allocations: 23.17 kB / 1.021 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of SimCode: time 3.01e-07/0.8742, allocations: 4 kB / 1.021 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01865/0.8928, allocations: 1.501 MB / 1.023 GB, free: 13.06 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002014/0.8931, allocations: 160 kB / 1.023 GB, free: 12.87 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.705/2.598, allocations: 32 / 1.023 GB, free: 12.87 MB / 0.6511 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)