Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.743/1.743, allocations: 285.4 MB / 298 MB, free: 6.008 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001292/0.001292, allocations: 188.8 kB / 366.4 MB, free: 2.086 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.542/1.542, allocations: 205.1 MB / 0.6248 GB, free: 7.762 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009297/0.0009298, allocations: 93.94 kB / 0.738 GB, free: 40.29 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.386e-05/3.388e-05, allocations: 4 kB / 0.8584 GB, free: 12.99 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7428/0.7428, allocations: 115.3 MB / 0.971 GB, free: 77.8 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1854/0.9283, allocations: 138.2 MB / 1.106 GB, free: 13.61 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002105/0.9285, allocations: 79.94 kB / 1.106 GB, free: 13.53 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.004147/0.9327, allocations: 1.62 MB / 1.108 GB, free: 11.94 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.182e-06/0.9327, allocations: 4 kB / 1.108 GB, free: 11.93 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.9327, allocations: 0 / 1.108 GB, free: 11.93 MB / 0.7136 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.0003818/0.9331, allocations: 393.1 kB / 1.108 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.9332, allocations: 8.031 kB / 1.108 GB, free: 11.49 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.817e-05/0.9332, allocations: 34.56 kB / 1.108 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.928e-05/0.9333, allocations: 4.812 kB / 1.108 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001881/0.9335, allocations: 186.9 kB / 1.108 GB, free: 11.22 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.9335, allocations: 6.156 kB / 1.108 GB, free: 11.22 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.433e-05/0.9335, allocations: 0.5 kB / 1.108 GB, free: 11.22 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001352/0.9336, allocations: 71.67 kB / 1.108 GB, free: 11.14 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.9337, allocations: 4.781 kB / 1.108 GB, free: 11.14 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.9337, allocations: 2.375 kB / 1.108 GB, free: 11.14 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.9337, allocations: 0 / 1.108 GB, free: 11.14 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.884e-05/0.9338, allocations: 35.98 kB / 1.108 GB, free: 11.11 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00043/0.9342, allocations: 291.4 kB / 1.109 GB, free: 10.77 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 8.382e-05/0.9343, allocations: 62.58 kB / 1.109 GB, free: 10.7 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.83e-05/0.9344, allocations: 56.89 kB / 1.109 GB, free: 10.64 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.9344, allocations: 96 / 1.109 GB, free: 10.64 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001322/0.9345, allocations: 121 kB / 1.109 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 3.647e-06/0.9345, allocations: 3.984 kB / 1.109 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.000258/0.9348, allocations: 151.4 kB / 1.109 GB, free: 10.35 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.407e-05/0.9349, allocations: 107.7 kB / 1.109 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.994e-05/0.935, allocations: 112.1 kB / 1.109 GB, free: 10.11 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.935, allocations: 25.7 kB / 1.109 GB, free: 10.07 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.36e-05/0.9351, allocations: 95.14 kB / 1.109 GB, free: 9.98 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.917e-05/0.9351, allocations: 27.72 kB / 1.109 GB, free: 9.953 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.732e-06/0.9351, allocations: 4 kB / 1.109 GB, free: 9.949 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.9352, allocations: 326.8 kB / 1.11 GB, free: 9.621 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.127e-05/0.9353, allocations: 31.94 kB / 1.11 GB, free: 9.59 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.174e-05/0.9354, allocations: 97.81 kB / 1.11 GB, free: 9.469 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.975e-05/0.9355, allocations: 77.52 kB / 1.11 GB, free: 9.391 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.9355, allocations: 0 / 1.11 GB, free: 9.391 MB / 0.7136 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000247/0.9357, allocations: 194.9 kB / 1.11 GB, free: 9.188 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.833e-05/0.9358, allocations: 35.98 kB / 1.11 GB, free: 9.148 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.9358, allocations: 4 kB / 1.11 GB, free: 9.145 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.9358, allocations: 0 / 1.11 GB, free: 9.145 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/0.936, allocations: 35.88 kB / 1.11 GB, free: 9.109 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.936, allocations: 4 kB / 1.11 GB, free: 9.105 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.043e-05/0.9361, allocations: 9.328 kB / 1.11 GB, free: 9.098 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.442e-05/0.9361, allocations: 12.5 kB / 1.11 GB, free: 9.086 MB / 0.7136 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.0001201/0.9362, allocations: 166.8 kB / 1.11 GB, free: 8.91 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.897e-05/0.9363, allocations: 7.906 kB / 1.11 GB, free: 8.902 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.685e-05/0.9363, allocations: 14.5 kB / 1.11 GB, free: 8.891 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.9363, allocations: 0 / 1.11 GB, free: 8.891 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.9363, allocations: 3.953 kB / 1.11 GB, free: 8.887 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.9363, allocations: 0 / 1.11 GB, free: 8.887 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.9365, allocations: 187.3 kB / 1.111 GB, free: 8.656 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.9365, allocations: 0 / 1.111 GB, free: 8.656 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.772e-05/0.9365, allocations: 4 kB / 1.111 GB, free: 8.652 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.9365, allocations: 8 kB / 1.111 GB, free: 8.645 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.9366, allocations: 3.984 kB / 1.111 GB, free: 8.641 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.9366, allocations: 0 / 1.111 GB, free: 8.641 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.9366, allocations: 4 kB / 1.111 GB, free: 8.637 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002677/0.9368, allocations: 212.6 kB / 1.111 GB, free: 8.406 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.418e-05/0.9369, allocations: 88.95 kB / 1.111 GB, free: 8.301 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.164e-05/0.9369, allocations: 11.98 kB / 1.111 GB, free: 8.289 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.815e-05/0.937, allocations: 7.938 kB / 1.111 GB, free: 8.281 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.782e-05/0.937, allocations: 4 kB / 1.111 GB, free: 8.277 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/0.9371, allocations: 14.42 kB / 1.111 GB, free: 8.266 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.793e-05/0.9371, allocations: 83.28 kB / 1.111 GB, free: 8.184 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9371, allocations: 0 / 1.111 GB, free: 8.184 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002047/0.9373, allocations: 27.95 kB / 1.111 GB, free: 8.156 MB / 0.7136 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.0005281/0.9379, allocations: 0.7586 MB / 1.112 GB, free: 7.367 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002141/0.9381, allocations: 163.4 kB / 1.112 GB, free: 7.195 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.9381, allocations: 0 / 1.112 GB, free: 7.195 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.000161/0.9383, allocations: 183.4 kB / 1.112 GB, free: 7.004 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001491/0.9384, allocations: 4 kB / 1.112 GB, free: 7 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000429/0.9389, allocations: 165.9 kB / 1.112 GB, free: 6.805 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.9391, allocations: 0.6926 MB / 1.113 GB, free: 6.086 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.873e-05/0.9392, allocations: 12.66 kB / 1.113 GB, free: 6.07 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.497e-05/0.9392, allocations: 19.44 kB / 1.113 GB, free: 6.051 MB / 0.7136 GB Notification: Performance of SimCode: time 3.2e-07/0.9392, allocations: 0 / 1.113 GB, free: 6.051 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01312/0.9523, allocations: 1.824 MB / 1.115 GB, free: 4.438 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002045/0.9526, allocations: 182.1 kB / 1.115 GB, free: 4.207 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.552/2.505, allocations: 0 / 1.115 GB, free: 4.207 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)