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.278/2.278, allocations: 251 MB / 265.9 MB, free: 11.67 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.001599/0.001598, allocations: 173 kB / 325.5 MB, free: 2.891 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.353/2.353, allocations: 205.4 MB / 0.5764 GB, free: 20.75 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.001157/0.001156, allocations: 85.67 kB / 0.6809 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005199/0.0005198, allocations: 12.78 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2037/0.2042, allocations: 106.3 MB / 0.8988 GB, free: 65.43 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2221/0.4264, allocations: 131.9 MB / 1.028 GB, free: 13.32 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002723/0.4267, allocations: 75.95 kB / 1.028 GB, free: 13.25 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007074/0.4338, allocations: 1.664 MB / 1.029 GB, free: 11.58 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.382e-06/0.4338, allocations: 0 / 1.029 GB, free: 11.58 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.588e-06/0.4338, allocations: 0 / 1.029 GB, free: 11.58 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.0005474/0.4344, allocations: 388.8 kB / 1.03 GB, free: 11.15 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.4345, allocations: 12.03 kB / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.689e-05/0.4345, allocations: 38.55 kB / 1.03 GB, free: 11.09 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.733e-05/0.4346, allocations: 15.86 kB / 1.03 GB, free: 11.07 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002343/0.4348, allocations: 175.1 kB / 1.03 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.4349, allocations: 4 kB / 1.03 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.861e-05/0.4349, allocations: 4 kB / 1.03 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002474/0.4351, allocations: 81.53 kB / 1.03 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.4352, allocations: 0 / 1.03 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.4352, allocations: 0 / 1.03 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.4352, allocations: 0 / 1.03 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001984/0.4354, allocations: 51.97 kB / 1.03 GB, free: 10.72 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005556/0.436, allocations: 296.7 kB / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001927/0.4362, allocations: 67.42 kB / 1.03 GB, free: 10.3 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.831e-05/0.4362, allocations: 8.062 kB / 1.03 GB, free: 10.3 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003094/0.4366, allocations: 125.1 kB / 1.031 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 2.775e-06/0.4366, allocations: 0 / 1.031 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0007001/0.4373, allocations: 288.5 kB / 1.031 GB, free: 9.844 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.302e-05/0.4374, allocations: 118.7 kB / 1.031 GB, free: 9.703 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.4375, allocations: 108.9 kB / 1.031 GB, free: 9.59 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.736e-05/0.4376, allocations: 33.69 kB / 1.031 GB, free: 9.551 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.679e-05/0.4376, allocations: 92.08 kB / 1.031 GB, free: 9.457 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.56e-05/0.4377, allocations: 23.7 kB / 1.031 GB, free: 9.434 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.373e-05/0.4377, allocations: 4 kB / 1.031 GB, free: 9.43 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001342/0.4378, allocations: 318.8 kB / 1.032 GB, free: 9.109 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.438, allocations: 35.97 kB / 1.032 GB, free: 9.074 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002017/0.4382, allocations: 104.6 kB / 1.032 GB, free: 8.941 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002071/0.4384, allocations: 89.61 kB / 1.032 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.4385, allocations: 0 / 1.032 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005144/0.439, allocations: 203.3 kB / 1.032 GB, free: 8.637 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.804e-05/0.439, allocations: 39.58 kB / 1.032 GB, free: 8.594 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.4391, allocations: 3.953 kB / 1.032 GB, free: 8.59 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.297e-05/0.4391, allocations: 7.938 kB / 1.032 GB, free: 8.582 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001962/0.4393, allocations: 27.92 kB / 1.032 GB, free: 8.555 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.4393, allocations: 4 kB / 1.032 GB, free: 8.551 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.4395, allocations: 11.92 kB / 1.032 GB, free: 8.539 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.4395, allocations: 12 kB / 1.032 GB, free: 8.527 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.0001979/0.4397, allocations: 171.3 kB / 1.032 GB, free: 8.344 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.19e-05/0.4397, allocations: 11.91 kB / 1.032 GB, free: 8.332 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.286e-05/0.4398, allocations: 8.359 kB / 1.032 GB, free: 8.324 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.4398, allocations: 3.953 kB / 1.032 GB, free: 8.32 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.4398, allocations: 3.938 kB / 1.032 GB, free: 8.316 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.4398, allocations: 0 / 1.032 GB, free: 8.316 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001943/0.44, allocations: 189.6 kB / 1.032 GB, free: 8.082 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.44, allocations: 0 / 1.032 GB, free: 8.082 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.601e-05/0.4401, allocations: 11.98 kB / 1.032 GB, free: 8.07 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.4401, allocations: 0 / 1.032 GB, free: 8.07 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.4402, allocations: 4 kB / 1.032 GB, free: 8.066 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.4402, allocations: 0 / 1.032 GB, free: 8.066 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/0.4402, allocations: 3.953 kB / 1.032 GB, free: 8.062 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005911/0.4408, allocations: 232.4 kB / 1.033 GB, free: 7.812 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.045e-05/0.4409, allocations: 85.02 kB / 1.033 GB, free: 7.711 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.116e-05/0.4409, allocations: 15.98 kB / 1.033 GB, free: 7.695 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.388e-05/0.441, allocations: 4 kB / 1.033 GB, free: 7.691 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.197e-05/0.4411, allocations: 4.094 kB / 1.033 GB, free: 7.688 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.131e-05/0.4411, allocations: 11.98 kB / 1.033 GB, free: 7.676 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.952e-05/0.4412, allocations: 91.58 kB / 1.033 GB, free: 7.586 MB / 0.6823 GB Notification: Performance of sort global known variables: time 4.81e-07/0.4412, allocations: 3.938 kB / 1.033 GB, free: 7.582 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003156/0.4415, allocations: 24 kB / 1.033 GB, free: 7.559 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.0008988/0.4424, allocations: 0.7702 MB / 1.034 GB, free: 6.75 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004793/0.4429, allocations: 179.3 kB / 1.034 GB, free: 6.562 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.443, allocations: 0 / 1.034 GB, free: 6.562 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002978/0.4433, allocations: 191.3 kB / 1.034 GB, free: 6.363 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002149/0.4435, allocations: 13.47 kB / 1.034 GB, free: 6.352 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.4449, allocations: 1.795 MB / 1.036 GB, free: 4.465 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.4453, allocations: 0.7004 MB / 1.036 GB, free: 3.738 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 7.938e-05/0.4454, allocations: 4.672 kB / 1.036 GB, free: 3.727 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.841e-05/0.4454, allocations: 19.42 kB / 1.036 GB, free: 3.711 MB / 0.6823 GB Notification: Performance of SimCode: time 1.042e-06/0.4455, allocations: 7.875 kB / 1.036 GB, free: 3.703 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02087/0.4663, allocations: 1.8 MB / 1.038 GB, free: 2.074 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003713/0.4668, allocations: 193.2 kB / 1.038 GB, free: 1.836 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.295/2.762, allocations: 1.719 kB / 1.038 GB, free: 1.836 MB / 0.6823 GB