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.461/2.461, allocations: 248.5 MB / 261.1 MB, free: 5.996 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.002053/0.002053, allocations: 180.4 kB / 320.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.944/1.944, allocations: 205.2 MB / 0.571 GB, free: 11.81 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.001064/0.001064, allocations: 101.5 kB / 0.6754 GB, free: 0.8906 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.661e-05/3.666e-05, allocations: 4 kB / 0.7869 GB, free: 97.77 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2184, allocations: 106.2 MB / 0.8907 GB, free: 7.43 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9001/1.119, allocations: 131.9 MB / 1.019 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/1.119, allocations: 78.38 kB / 1.02 GB, free: 3.348 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.007258/1.126, allocations: 1.654 MB / 1.021 GB, free: 1.941 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.383e-06/1.126, allocations: 0 / 1.021 GB, free: 1.941 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.018e-05/1.126, allocations: 0 / 1.021 GB, free: 1.941 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.0005093/1.127, allocations: 389.9 kB / 1.022 GB, free: 1.516 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.527e-05/1.127, allocations: 8.031 kB / 1.022 GB, free: 1.508 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.564e-05/1.127, allocations: 37.44 kB / 1.022 GB, free: 1.465 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.223e-05/1.127, allocations: 15.8 kB / 1.022 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002702/1.127, allocations: 173.3 kB / 1.022 GB, free: 1.242 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.344e-05/1.127, allocations: 7 kB / 1.022 GB, free: 1.238 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.372e-05/1.127, allocations: 4 kB / 1.022 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001896/1.128, allocations: 64.98 kB / 1.022 GB, free: 1.176 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/1.128, allocations: 7.938 kB / 1.022 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/1.128, allocations: 0 / 1.022 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/1.128, allocations: 2.25 kB / 1.022 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001147/1.128, allocations: 38.55 kB / 1.022 GB, free: 1.141 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005679/1.128, allocations: 295.6 kB / 1.022 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000139/1.128, allocations: 63.64 kB / 1.022 GB, free: 0.7734 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/1.129, allocations: 59.95 kB / 1.022 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/1.129, allocations: 3.984 kB / 1.022 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001924/1.129, allocations: 109.9 kB / 1.022 GB, free: 0.6211 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 2.034e-06/1.129, allocations: 0 / 1.022 GB, free: 0.6211 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0003894/1.129, allocations: 156.8 kB / 1.023 GB, free: 496 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.238e-05/1.129, allocations: 106.8 kB / 1.023 GB, free: 364 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/1.129, allocations: 107.9 kB / 1.023 GB, free: 256 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.391e-05/1.13, allocations: 32.62 kB / 1.023 GB, free: 220 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.489e-05/1.13, allocations: 91.2 kB / 1.023 GB, free: 128 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.493e-05/1.13, allocations: 26.77 kB / 1.023 GB, free: 104 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.048e-05/1.13, allocations: 3 kB / 1.023 GB, free: 104 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000157/1.13, allocations: 325 kB / 1.023 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.496e-05/1.13, allocations: 29.69 kB / 1.023 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/1.13, allocations: 101.8 kB / 1.023 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001477/1.13, allocations: 73.88 kB / 1.023 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/1.13, allocations: 0 / 1.023 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004226/1.131, allocations: 192.5 kB / 1.024 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 4.73e-05/1.131, allocations: 37.66 kB / 1.024 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/1.131, allocations: 4.312 kB / 1.024 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.495e-05/1.131, allocations: 4.281 kB / 1.024 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002214/1.131, allocations: 23.98 kB / 1.024 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.799e-05/1.131, allocations: 7.938 kB / 1.024 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/1.131, allocations: 19.64 kB / 1.024 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.604e-05/1.131, allocations: 7.984 kB / 1.024 GB, free: 15.3 MB / 0.6511 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.0001744/1.131, allocations: 161.6 kB / 1.024 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.001e-05/1.132, allocations: 7.906 kB / 1.024 GB, free: 15.13 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.417e-05/1.132, allocations: 24.14 kB / 1.024 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/1.132, allocations: 3.938 kB / 1.024 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/1.132, allocations: 0 / 1.024 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/1.132, allocations: 0 / 1.024 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002074/1.132, allocations: 190.7 kB / 1.024 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/1.132, allocations: 0 / 1.024 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.37e-05/1.132, allocations: 4.875 kB / 1.024 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/1.132, allocations: 4 kB / 1.024 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/1.132, allocations: 6.859 kB / 1.024 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.284e-06/1.132, allocations: 3.953 kB / 1.024 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/1.132, allocations: 8 kB / 1.024 GB, free: 14.85 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004467/1.132, allocations: 211.3 kB / 1.024 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.444e-05/1.133, allocations: 81.02 kB / 1.024 GB, free: 14.56 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.062e-05/1.133, allocations: 16.42 kB / 1.024 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/1.133, allocations: 4 kB / 1.024 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.432e-05/1.133, allocations: 3.953 kB / 1.024 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.142e-05/1.133, allocations: 7.984 kB / 1.024 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.939e-05/1.133, allocations: 90.72 kB / 1.024 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.41e-07/1.133, allocations: 3.938 kB / 1.024 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003143/1.133, allocations: 23.5 kB / 1.024 GB, free: 14.43 MB / 0.6511 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.0007652/1.134, allocations: 0.7563 MB / 1.025 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003746/1.134, allocations: 166.6 kB / 1.025 GB, free: 13.53 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/1.134, allocations: 0 / 1.025 GB, free: 13.53 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002355/1.135, allocations: 182.4 kB / 1.026 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002171/1.135, allocations: 7.953 kB / 1.026 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006085/1.136, allocations: 149.9 kB / 1.026 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/1.136, allocations: 0.6931 MB / 1.026 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.905e-05/1.136, allocations: 16.59 kB / 1.026 GB, free: 12.49 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.428e-05/1.136, allocations: 18.88 kB / 1.026 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of SimCode: time 9.62e-07/1.136, allocations: 3.938 kB / 1.026 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02044/1.157, allocations: 1.815 MB / 1.028 GB, free: 10.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003279/1.157, allocations: 173.9 kB / 1.028 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.393/3.55, allocations: 4 kB / 1.028 GB, free: 10.57 MB / 0.6511 GB