Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_8_0_0_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_8_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 8.0.0/package.mo): time 2.727/2.727, allocations: 287.3 MB / 302.3 MB, free: 8.344 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.001567/0.001566, allocations: 179.6 kB / 370.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.18/2.18, allocations: 205.4 MB / 0.6295 GB, free: 10.59 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001262/0.001262, allocations: 86.08 kB / 0.7428 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004973/0.0004975, allocations: 18.91 kB / 0.8657 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.2063, allocations: 115.3 MB / 0.9783 GB, free: 28.25 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001521/0.2079, allocations: 1.095 MB / 0.9794 GB, free: 27.14 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0005958/0.2085, allocations: 277.1 kB / 0.9796 GB, free: 26.87 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.204e-05/0.2086, allocations: 0 / 0.9796 GB, free: 26.87 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 7.858e-05/0.2086, allocations: 0 / 0.9796 GB, free: 26.87 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001203/0.2088, allocations: 19.95 kB / 0.9797 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001353/0.2089, allocations: 27.86 kB / 0.9797 GB, free: 26.82 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.618e-05/0.209, allocations: 31.95 kB / 0.9797 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.599e-05/0.2091, allocations: 11.98 kB / 0.9797 GB, free: 26.78 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.75e-05/0.2092, allocations: 27.91 kB / 0.9798 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/0.2093, allocations: 19.92 kB / 0.9798 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.765e-05/0.2094, allocations: 7.938 kB / 0.9798 GB, free: 26.72 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.685e-05/0.2094, allocations: 0 / 0.9798 GB, free: 26.72 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.842e-05/0.2094, allocations: 11.98 kB / 0.9798 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.119e-05/0.2095, allocations: 33.7 kB / 0.9798 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 8.505e-05/0.2096, allocations: 52 kB / 0.9799 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.2096, allocations: 0 / 0.9799 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.004e-06/0.2096, allocations: 0 / 0.9799 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.2096, allocations: 8 kB / 0.9799 GB, free: 26.61 MB / 0.6198 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.0004546/0.2101, allocations: 388.8 kB / 0.9803 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.2101, allocations: 12.02 kB / 0.9803 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.329e-05/0.2102, allocations: 34.56 kB / 0.9803 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.322e-05/0.2102, allocations: 4 kB / 0.9803 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/0.2104, allocations: 178.9 kB / 0.9805 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.2104, allocations: 4 kB / 0.9805 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.064e-05/0.2104, allocations: 4 kB / 0.9805 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002112/0.2107, allocations: 77.66 kB / 0.9806 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.2107, allocations: 3.938 kB / 0.9806 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.2107, allocations: 0 / 0.9806 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.2107, allocations: 0 / 0.9806 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001737/0.2109, allocations: 47.97 kB / 0.9806 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004693/0.2114, allocations: 292.7 kB / 0.9809 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001631/0.2116, allocations: 74.56 kB / 0.981 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.2116, allocations: 4.031 kB / 0.981 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000229/0.2118, allocations: 121.1 kB / 0.9811 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 2.204e-06/0.2119, allocations: 4 kB / 0.9811 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.0005891/0.2125, allocations: 280.3 kB / 0.9813 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.632e-05/0.2125, allocations: 122.8 kB / 0.9815 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.952e-05/0.2126, allocations: 109.8 kB / 0.9816 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/0.2126, allocations: 33.7 kB / 0.9816 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.674e-05/0.2127, allocations: 88.14 kB / 0.9817 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.487e-05/0.2127, allocations: 31.75 kB / 0.9817 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.069e-05/0.2128, allocations: 4 kB / 0.9817 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.205e-05/0.2128, allocations: 322.8 kB / 0.982 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/0.213, allocations: 39.86 kB / 0.9821 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.2131, allocations: 108.5 kB / 0.9822 GB, free: 23.97 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.2133, allocations: 81.69 kB / 0.9822 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.2133, allocations: 0 / 0.9822 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004264/0.2138, allocations: 203 kB / 0.9824 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.229e-05/0.2138, allocations: 37.69 kB / 0.9825 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.974e-06/0.2138, allocations: 288 / 0.9825 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.2139, allocations: 11.95 kB / 0.9825 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.214, allocations: 31.92 kB / 0.9825 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.2141, allocations: 4 kB / 0.9825 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.2142, allocations: 11.84 kB / 0.9825 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.891e-05/0.2142, allocations: 8.094 kB / 0.9825 GB, free: 23.57 MB / 0.6198 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.0001441/0.2144, allocations: 175.4 kB / 0.9827 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.489e-05/0.2144, allocations: 15.91 kB / 0.9827 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.521e-05/0.2144, allocations: 4.375 kB / 0.9827 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.2144, allocations: 0 / 0.9827 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.2145, allocations: 3.953 kB / 0.9827 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.2145, allocations: 0 / 0.9827 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001292/0.2146, allocations: 185.6 kB / 0.9829 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.2146, allocations: 0 / 0.9829 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.984e-05/0.2147, allocations: 11.92 kB / 0.9829 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.2147, allocations: 4 kB / 0.9829 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.2147, allocations: 4 kB / 0.9829 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.2147, allocations: 4 kB / 0.9829 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.2148, allocations: 0 / 0.9829 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004769/0.2152, allocations: 234.6 kB / 0.9832 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.767e-05/0.2153, allocations: 88.89 kB / 0.9832 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.246e-05/0.2153, allocations: 12 kB / 0.9832 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.704e-05/0.2154, allocations: 4 kB / 0.9833 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.219e-05/0.2155, allocations: 7.984 kB / 0.9833 GB, free: 22.72 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.2155, allocations: 4 kB / 0.9833 GB, free: 22.72 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.312e-05/0.2156, allocations: 95.22 kB / 0.9834 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.6e-07/0.2156, allocations: 0 / 0.9834 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003154/0.2159, allocations: 24 kB / 0.9834 GB, free: 22.6 MB / 0.6198 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.0006752/0.2166, allocations: 0.7847 MB / 0.9841 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003929/0.217, allocations: 171.7 kB / 0.9843 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.217, allocations: 4 kB / 0.9843 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002381/0.2173, allocations: 191.4 kB / 0.9845 GB, free: 21.4 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001965/0.2175, allocations: 7.938 kB / 0.9845 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008783/0.2184, allocations: 1.796 MB / 0.9863 GB, free: 19.51 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001383/0.2185, allocations: 0.6965 MB / 0.9869 GB, free: 18.79 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.94e-05/0.2186, allocations: 8.656 kB / 0.9869 GB, free: 18.77 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.507e-05/0.2187, allocations: 15.44 kB / 0.987 GB, free: 18.76 MB / 0.6198 GB Notification: Performance of SimCode: time 1.744e-06/0.2187, allocations: 0 / 0.987 GB, free: 18.76 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02025/0.2389, allocations: 1.804 MB / 0.9887 GB, free: 17.12 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002789/0.2393, allocations: 206.3 kB / 0.9889 GB, free: 16.88 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.438/2.677, allocations: 0 / 0.9889 GB, free: 16.88 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)