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: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.841/1.841, allocations: 287.5 MB / 302.6 MB, free: 8.242 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.0009312/0.0009312, allocations: 180.3 kB / 371.2 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 1.539/1.539, allocations: 205.4 MB / 0.6298 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.0008884/0.0008885, allocations: 86.34 kB / 0.7432 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000495/0.0004954, allocations: 10 kB / 0.8661 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2246, allocations: 115.3 MB / 0.9787 GB, free: 28.19 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001269/0.2259, allocations: 1.103 MB / 0.9798 GB, free: 27.07 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0004679/0.2264, allocations: 264.2 kB / 0.98 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.912e-05/0.2265, allocations: 4 kB / 0.98 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 8.438e-05/0.2266, allocations: 3.938 kB / 0.98 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001297/0.2267, allocations: 11.92 kB / 0.98 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000145/0.2269, allocations: 27.97 kB / 0.9801 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.44e-05/0.227, allocations: 51.78 kB / 0.9801 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.154e-05/0.2271, allocations: 8 kB / 0.9801 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.2272, allocations: 23.92 kB / 0.9802 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001023/0.2273, allocations: 31.89 kB / 0.9802 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.2273, allocations: 4 kB / 0.9802 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.342e-05/0.2273, allocations: 4 kB / 0.9802 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.054e-05/0.2274, allocations: 11.92 kB / 0.9802 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.015e-05/0.2274, allocations: 33.7 kB / 0.9802 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.415e-05/0.2275, allocations: 36.2 kB / 0.9803 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2275, allocations: 0 / 0.9803 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2275, allocations: 0 / 0.9803 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.937e-06/0.2275, allocations: 0 / 0.9803 GB, free: 26.55 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.0004261/0.228, allocations: 393 kB / 0.9806 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.228, allocations: 8.031 kB / 0.9807 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.411e-05/0.2281, allocations: 4.938 kB / 0.9807 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001376/0.2282, allocations: 188.1 kB / 0.9808 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.2282, allocations: 4.375 kB / 0.9808 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.372e-05/0.2282, allocations: 4.375 kB / 0.9808 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001681/0.2284, allocations: 70.22 kB / 0.9809 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.2284, allocations: 192 / 0.9809 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.2285, allocations: 7.938 kB / 0.9809 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.2285, allocations: 4 kB / 0.9809 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001064/0.2286, allocations: 47.91 kB / 0.981 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003725/0.229, allocations: 284.8 kB / 0.9812 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.2291, allocations: 78.48 kB / 0.9813 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.856e-05/0.2292, allocations: 56.89 kB / 0.9814 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.2292, allocations: 0 / 0.9814 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001708/0.2294, allocations: 121 kB / 0.9815 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 1.243e-06/0.2294, allocations: 0 / 0.9815 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.0003734/0.2298, allocations: 207.4 kB / 0.9817 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.81e-05/0.2298, allocations: 110.8 kB / 0.9818 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.572e-05/0.2299, allocations: 109.8 kB / 0.9819 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.2299, allocations: 29.7 kB / 0.9819 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.255e-05/0.2299, allocations: 95.97 kB / 0.982 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.41e-05/0.23, allocations: 27.8 kB / 0.982 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.04e-06/0.23, allocations: 0 / 0.982 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.244e-05/0.23, allocations: 326.8 kB / 0.9824 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.595e-05/0.2301, allocations: 39.97 kB / 0.9824 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.628e-05/0.2302, allocations: 104.5 kB / 0.9825 GB, free: 24 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/0.2304, allocations: 215.8 kB / 0.9827 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.2304, allocations: 7.938 kB / 0.9827 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002696/0.2307, allocations: 207.1 kB / 0.9829 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.894e-05/0.2308, allocations: 29.7 kB / 0.9829 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.2308, allocations: 4 kB / 0.9829 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.2308, allocations: 4 kB / 0.9829 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.2309, allocations: 27.92 kB / 0.983 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.2309, allocations: 4 kB / 0.983 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.176e-05/0.231, allocations: 19.86 kB / 0.983 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.486e-05/0.231, allocations: 8.156 kB / 0.983 GB, free: 23.43 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.0001584/0.2312, allocations: 179.5 kB / 0.9832 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.689e-05/0.2312, allocations: 7.906 kB / 0.9832 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.455e-05/0.2313, allocations: 8.359 kB / 0.9832 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.2313, allocations: 4 kB / 0.9832 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.2313, allocations: 0 / 0.9832 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2313, allocations: 0 / 0.9832 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.614e-05/0.2314, allocations: 185.6 kB / 0.9834 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.2314, allocations: 4 kB / 0.9834 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.206e-05/0.2314, allocations: 11.98 kB / 0.9834 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2315, allocations: 0 / 0.9834 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.2315, allocations: 4 kB / 0.9834 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.2315, allocations: 0 / 0.9834 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2315, allocations: 0 / 0.9834 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002793/0.2318, allocations: 242.5 kB / 0.9836 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.393e-05/0.2318, allocations: 84.95 kB / 0.9837 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.126e-05/0.2318, allocations: 11.98 kB / 0.9837 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.96e-05/0.2319, allocations: 4 kB / 0.9837 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.829e-05/0.232, allocations: 4 kB / 0.9837 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.232, allocations: 7.984 kB / 0.9837 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.153e-05/0.232, allocations: 87.59 kB / 0.9838 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.9e-07/0.232, allocations: 0 / 0.9838 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002107/0.2322, allocations: 20 kB / 0.9838 GB, free: 22.47 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.0001235/0.2324, allocations: 119.9 kB / 0.9839 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002584/0.2326, allocations: 171.2 kB / 0.9841 GB, free: 22.16 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2326, allocations: 0.5625 kB / 0.9841 GB, free: 22.16 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.00014/0.2328, allocations: 187.4 kB / 0.9843 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001975/0.233, allocations: 14.67 kB / 0.9843 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003732/0.2334, allocations: 194 kB / 0.9845 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001467/0.2335, allocations: 0.6965 MB / 0.9852 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.429e-05/0.2336, allocations: 4.672 kB / 0.9852 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.704e-05/0.2336, allocations: 15.38 kB / 0.9852 GB, free: 21 MB / 0.6198 GB Notification: Performance of SimCode: time 5.91e-07/0.2336, allocations: 0 / 0.9852 GB, free: 21 MB / 0.6198 GB Notification: Performance of Templates: time 0.00299/0.2366, allocations: 0.8749 MB / 0.986 GB, free: 20.12 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (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 & ./Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)