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.471/1.471, allocations: 252 MB / 267 MB, free: 10.97 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.0009384/0.0009384, allocations: 177.9 kB / 326.6 MB, free: 2.234 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.591/1.591, allocations: 205.4 MB / 0.5777 GB, free: 20.29 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.000728/0.0007281, allocations: 100.8 kB / 0.6823 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003429/0.0003428, allocations: 10.81 kB / 0.7965 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2514, allocations: 106.3 MB / 0.9003 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001425/0.2529, allocations: 1.12 MB / 0.9014 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000466/0.2534, allocations: 272.1 kB / 0.9017 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.453e-05/0.2534, allocations: 0 / 0.9017 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 8.238e-05/0.2535, allocations: 4 kB / 0.9017 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001375/0.2537, allocations: 7.938 kB / 0.9017 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001244/0.2538, allocations: 35.89 kB / 0.9017 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.847e-05/0.2539, allocations: 47.86 kB / 0.9018 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 7.918e-05/0.254, allocations: 11.92 kB / 0.9018 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001095/0.2541, allocations: 31.84 kB / 0.9018 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001003/0.2542, allocations: 23.91 kB / 0.9018 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.835e-05/0.2543, allocations: 4 kB / 0.9018 GB, free: 62.22 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.414e-05/0.2543, allocations: 4 kB / 0.9018 GB, free: 62.22 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.893e-05/0.2543, allocations: 4 kB / 0.9018 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.002e-05/0.2544, allocations: 37.64 kB / 0.9019 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.309e-05/0.2545, allocations: 47.89 kB / 0.9019 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.2545, allocations: 0 / 0.9019 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.274e-06/0.2545, allocations: 0 / 0.9019 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.2545, allocations: 0 / 0.9019 GB, free: 62.12 MB / 0.6042 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.000459/0.2549, allocations: 381.2 kB / 0.9023 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.255, allocations: 12.03 kB / 0.9023 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.46e-05/0.255, allocations: 30.56 kB / 0.9023 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.137e-05/0.2551, allocations: 7.906 kB / 0.9023 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.2552, allocations: 183 kB / 0.9025 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.2552, allocations: 4 kB / 0.9025 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.336e-05/0.2553, allocations: 7.938 kB / 0.9025 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000172/0.2554, allocations: 77.59 kB / 0.9026 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.2555, allocations: 0 / 0.9026 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.2555, allocations: 0 / 0.9026 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.2555, allocations: 0 / 0.9026 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001098/0.2556, allocations: 47.97 kB / 0.9026 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003961/0.256, allocations: 296.8 kB / 0.9029 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001136/0.2561, allocations: 78.48 kB / 0.903 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.503e-05/0.2562, allocations: 60.89 kB / 0.9031 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/0.2563, allocations: 4 kB / 0.9031 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001953/0.2565, allocations: 117.1 kB / 0.9032 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.563e-06/0.2565, allocations: 0 / 0.9032 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0003803/0.2569, allocations: 207.3 kB / 0.9034 GB, free: 60.44 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.2569, allocations: 122.8 kB / 0.9035 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.994e-05/0.257, allocations: 113.8 kB / 0.9036 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.257, allocations: 29.7 kB / 0.9036 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.253e-05/0.257, allocations: 92.08 kB / 0.9037 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.524e-05/0.2571, allocations: 31.62 kB / 0.9037 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.772e-06/0.2571, allocations: 4 kB / 0.9037 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.086e-05/0.2572, allocations: 322.8 kB / 0.9041 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.696e-05/0.2572, allocations: 31.98 kB / 0.9041 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.2573, allocations: 115 kB / 0.9042 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.2575, allocations: 85.66 kB / 0.9043 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2575, allocations: 0 / 0.9043 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002585/0.2577, allocations: 203.2 kB / 0.9045 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.2578, allocations: 37.69 kB / 0.9045 GB, free: 59.17 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.2578, allocations: 4 kB / 0.9045 GB, free: 59.17 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.2578, allocations: 7.953 kB / 0.9045 GB, free: 59.16 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.2579, allocations: 23.92 kB / 0.9045 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.2579, allocations: 4.312 kB / 0.9045 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.461e-05/0.258, allocations: 15.91 kB / 0.9046 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.307e-05/0.258, allocations: 4.188 kB / 0.9046 GB, free: 59.11 MB / 0.6042 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.0001487/0.2582, allocations: 187.2 kB / 0.9047 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.658e-05/0.2582, allocations: 4 kB / 0.9047 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.18e-05/0.2582, allocations: 8.312 kB / 0.9048 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.2582, allocations: 7.953 kB / 0.9048 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2583, allocations: 0 / 0.9048 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2583, allocations: 0 / 0.9048 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.2584, allocations: 185.5 kB / 0.9049 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.2584, allocations: 4 kB / 0.9049 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.188e-05/0.2584, allocations: 7.984 kB / 0.905 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.2584, allocations: 0 / 0.905 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.2585, allocations: 4 kB / 0.905 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.2585, allocations: 3.984 kB / 0.905 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2585, allocations: 3.953 kB / 0.905 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002907/0.2588, allocations: 234.7 kB / 0.9052 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.403e-05/0.2588, allocations: 85.02 kB / 0.9053 GB, free: 58.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.826e-05/0.2588, allocations: 12 kB / 0.9053 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.079e-05/0.2589, allocations: 4 kB / 0.9053 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.441e-05/0.259, allocations: 7.984 kB / 0.9053 GB, free: 58.26 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.259, allocations: 11.89 kB / 0.9053 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.405e-05/0.259, allocations: 87.27 kB / 0.9054 GB, free: 58.16 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.259, allocations: 0 / 0.9054 GB, free: 58.16 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001982/0.2592, allocations: 24 kB / 0.9054 GB, free: 58.14 MB / 0.6042 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.0004721/0.2597, allocations: 0.7731 MB / 0.9062 GB, free: 57.34 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002452/0.26, allocations: 183.2 kB / 0.9063 GB, free: 57.14 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.26, allocations: 0 / 0.9063 GB, free: 57.14 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001464/0.2601, allocations: 187.4 kB / 0.9065 GB, free: 56.95 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001881/0.2603, allocations: 8 kB / 0.9065 GB, free: 56.94 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000862/0.2612, allocations: 0.673 MB / 0.9072 GB, free: 56.19 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001444/0.2614, allocations: 0.6965 MB / 0.9079 GB, free: 55.46 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.604e-05/0.2614, allocations: 12.64 kB / 0.9079 GB, free: 55.45 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.344e-05/0.2614, allocations: 19.44 kB / 0.9079 GB, free: 55.43 MB / 0.6042 GB Notification: Performance of SimCode: time 2e-07/0.2615, allocations: 0 / 0.9079 GB, free: 55.43 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01207/0.2735, allocations: 1.824 MB / 0.9097 GB, free: 53.79 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001516/0.2737, allocations: 220.1 kB / 0.9099 GB, free: 53.54 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.708/1.982, allocations: 0 / 0.9099 GB, free: 53.54 MB / 0.6042 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)