Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 186 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.1 MB / 222.5 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.74/1.74, allocations: 292.3 MB / 0.549 GB, free: 12.76 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002472/0.002472, allocations: 68.31 kB / 0.6723 GB, free: 25.97 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.228, allocations: 114.6 MB / 0.7841 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002967/0.231, allocations: 1.388 MB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0006356/0.2316, allocations: 284 kB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.682e-05/0.2318, allocations: 0 / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 9.753e-05/0.2319, allocations: 3.938 kB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.232, allocations: 19.84 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001715/0.2322, allocations: 27.92 kB / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001514/0.2323, allocations: 63.84 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.796e-05/0.2325, allocations: 11.98 kB / 0.7859 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.2326, allocations: 23.91 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.2327, allocations: 31.86 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.2327, allocations: 11.94 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.402e-05/0.2328, allocations: 7.938 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.464e-05/0.2328, allocations: 15.97 kB / 0.786 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.579e-05/0.2329, allocations: 31.86 kB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001225/0.233, allocations: 55.8 kB / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.233, allocations: 0 / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.373e-06/0.233, allocations: 0 / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.233, allocations: 0 / 0.7861 GB, free: 10.72 MB / 0.6075 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.0005309/0.2336, allocations: 401 kB / 0.7864 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.2336, allocations: 12.02 kB / 0.7865 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.466e-05/0.2337, allocations: 8.844 kB / 0.7865 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001817/0.2339, allocations: 180.3 kB / 0.7866 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.2339, allocations: 384 / 0.7866 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.506e-05/0.2339, allocations: 8.375 kB / 0.7866 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001851/0.2341, allocations: 66.17 kB / 0.7867 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.2341, allocations: 192 / 0.7867 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.2341, allocations: 11.94 kB / 0.7867 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.2341, allocations: 0 / 0.7867 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001171/0.2343, allocations: 39.97 kB / 0.7868 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004504/0.2347, allocations: 284.8 kB / 0.787 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001259/0.2349, allocations: 74.59 kB / 0.7871 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.965e-05/0.235, allocations: 60.83 kB / 0.7872 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.749e-05/0.235, allocations: 0 / 0.7872 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002279/0.2352, allocations: 118.1 kB / 0.7873 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.673e-06/0.2352, allocations: 0 / 0.7873 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004266/0.2357, allocations: 195.6 kB / 0.7875 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.312e-05/0.2358, allocations: 118.8 kB / 0.7876 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.545e-05/0.2359, allocations: 109.8 kB / 0.7877 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.764e-05/0.2359, allocations: 37.69 kB / 0.7877 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.714e-05/0.236, allocations: 92.08 kB / 0.7878 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.18e-05/0.236, allocations: 27.7 kB / 0.7878 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.697e-05/0.2361, allocations: 37.7 kB / 0.7879 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.2362, allocations: 318.8 kB / 0.7882 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.626e-05/0.2363, allocations: 39.97 kB / 0.7882 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/0.2364, allocations: 103 kB / 0.7883 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002363/0.2367, allocations: 211.8 kB / 0.7885 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.2367, allocations: 3.938 kB / 0.7885 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003214/0.237, allocations: 203.2 kB / 0.7887 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.203e-05/0.237, allocations: 33.7 kB / 0.7887 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.2371, allocations: 4.094 kB / 0.7887 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.2371, allocations: 11.92 kB / 0.7887 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.2372, allocations: 23.92 kB / 0.7888 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.2372, allocations: 4 kB / 0.7888 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.182e-05/0.2373, allocations: 23.77 kB / 0.7888 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.566e-05/0.2373, allocations: 12 kB / 0.7888 GB, free: 7.566 MB / 0.6075 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 (movMea.iSample,$PRE.movMea.iSample,movMea.counter,$PRE.movMea.counter,movMea.ySample[4],$PRE.movMea.ySample[4],movMea.ySample[3],$PRE.movMea.ySample[3],movMea.ySample[2],$PRE.movMea.ySample[2],movMea.ySample[1],$PRE.movMea.ySample[1],movMea.index,$PRE.movMea.index,movMea.y,$PRE.movMea.y,movMea.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001362/0.2375, allocations: 172.2 kB / 0.789 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.048e-05/0.2375, allocations: 8 kB / 0.789 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.325e-05/0.2375, allocations: 8.375 kB / 0.789 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.2375, allocations: 3.984 kB / 0.789 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2375, allocations: 0 / 0.789 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2375, allocations: 0 / 0.789 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001414/0.2377, allocations: 189.5 kB / 0.7892 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.2377, allocations: 0 / 0.7892 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.784e-05/0.2377, allocations: 0 / 0.7892 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.2378, allocations: 8 kB / 0.7892 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.616e-05/0.2378, allocations: 7.984 kB / 0.7892 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2378, allocations: 0 / 0.7892 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2378, allocations: 4 kB / 0.7892 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003252/0.2381, allocations: 222.5 kB / 0.7894 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.705e-05/0.2382, allocations: 85.05 kB / 0.7895 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.312e-05/0.2382, allocations: 11.98 kB / 0.7895 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.055e-05/0.2383, allocations: 8 kB / 0.7895 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.915e-05/0.2383, allocations: 7.938 kB / 0.7895 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.2384, allocations: 0 / 0.7895 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.776e-05/0.2384, allocations: 91.27 kB / 0.7896 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2384, allocations: 0 / 0.7896 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002422/0.2387, allocations: 24 kB / 0.7896 GB, free: 6.625 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00013/0.2388, allocations: 113.6 kB / 0.7897 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002971/0.2391, allocations: 175.2 kB / 0.7899 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.2391, allocations: 0 / 0.7899 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001798/0.2393, allocations: 183.4 kB / 0.7901 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002026/0.2395, allocations: 18.59 kB / 0.7901 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004028/0.2399, allocations: 175.6 kB / 0.7903 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.2402, allocations: 0.6924 MB / 0.7909 GB, free: 5.199 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.076e-05/0.2402, allocations: 4.906 kB / 0.7909 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.681e-05/0.2403, allocations: 11.44 kB / 0.7909 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.2403, allocations: 0 / 0.7909 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of Templates: time 0.003455/0.2437, allocations: 0.9837 MB / 0.7919 GB, free: 4.207 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)