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.001566/0.001565, allocations: 108 kB / 15.61 MB, free: 152 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.001773/0.001773, allocations: 195.9 kB / 16.53 MB, free: 6.664 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.371/1.371, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.696/1.696, allocations: 292.3 MB / 0.5489 GB, free: 12.85 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.00141/0.00141, allocations: 72.11 kB / 0.6715 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2179, allocations: 114.5 MB / 0.7834 GB, free: 13.47 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002478/0.2204, allocations: 1.388 MB / 0.7847 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0005466/0.221, allocations: 283.9 kB / 0.785 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.373e-05/0.2211, allocations: 0 / 0.785 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 9.121e-05/0.2212, allocations: 3.938 kB / 0.785 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001383/0.2213, allocations: 19.91 kB / 0.785 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000141/0.2214, allocations: 27.86 kB / 0.7851 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001563/0.2216, allocations: 75.83 kB / 0.7851 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.685e-05/0.2217, allocations: 11.94 kB / 0.7851 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.335e-05/0.2218, allocations: 27.92 kB / 0.7852 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001115/0.2219, allocations: 35.83 kB / 0.7852 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.043e-05/0.222, allocations: 4 kB / 0.7852 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.477e-05/0.222, allocations: 8 kB / 0.7852 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.928e-05/0.222, allocations: 11.98 kB / 0.7852 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.879e-05/0.2221, allocations: 23.88 kB / 0.7852 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001047/0.2222, allocations: 60.05 kB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.2222, allocations: 0 / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2222, allocations: 3.938 kB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.2222, allocations: 0 / 0.7853 GB, free: 11.48 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.0004575/0.2227, allocations: 397 kB / 0.7857 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.2227, allocations: 12.03 kB / 0.7857 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.649e-05/0.2228, allocations: 12.84 kB / 0.7857 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.2229, allocations: 172.3 kB / 0.7859 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.2229, allocations: 4.375 kB / 0.7859 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.223, allocations: 4.375 kB / 0.7859 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001659/0.2231, allocations: 70.22 kB / 0.7859 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.2231, allocations: 192 / 0.7859 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.2232, allocations: 7.938 kB / 0.786 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.2232, allocations: 0 / 0.786 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001044/0.2233, allocations: 35.92 kB / 0.786 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003936/0.2237, allocations: 292.8 kB / 0.7863 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000118/0.2238, allocations: 70.5 kB / 0.7863 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.154e-05/0.2239, allocations: 60.88 kB / 0.7864 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.734e-05/0.2239, allocations: 0 / 0.7864 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001812/0.2241, allocations: 121.1 kB / 0.7865 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.233e-06/0.2241, allocations: 0 / 0.7865 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0003813/0.2245, allocations: 195.2 kB / 0.7867 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/0.2246, allocations: 122.8 kB / 0.7868 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.918e-05/0.2247, allocations: 105.8 kB / 0.7869 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.271e-05/0.2247, allocations: 33.7 kB / 0.7869 GB, free: 9.562 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.664e-05/0.2247, allocations: 93.14 kB / 0.787 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.664e-05/0.2248, allocations: 27.7 kB / 0.7871 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.132e-05/0.2248, allocations: 37.7 kB / 0.7871 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.072e-05/0.2249, allocations: 322.8 kB / 0.7874 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.371e-05/0.225, allocations: 31.98 kB / 0.7874 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.2251, allocations: 115.2 kB / 0.7875 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002137/0.2254, allocations: 207.9 kB / 0.7877 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.2254, allocations: 3.938 kB / 0.7877 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003247/0.2257, allocations: 211.2 kB / 0.7879 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.2257, allocations: 30.64 kB / 0.788 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.2258, allocations: 4 kB / 0.788 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.2258, allocations: 7.938 kB / 0.788 GB, free: 8.387 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.2259, allocations: 19.98 kB / 0.788 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.2259, allocations: 4.312 kB / 0.788 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.076e-05/0.226, allocations: 23.72 kB / 0.788 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.226, allocations: 8 kB / 0.788 GB, free: 8.332 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.0001252/0.2261, allocations: 172.2 kB / 0.7882 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.809e-05/0.2262, allocations: 8 kB / 0.7882 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.458e-05/0.2262, allocations: 8.375 kB / 0.7882 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.2262, allocations: 0 / 0.7882 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.2262, allocations: 0 / 0.7882 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.2262, allocations: 0 / 0.7882 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/0.2263, allocations: 197.5 kB / 0.7884 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.2264, allocations: 0 / 0.7884 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.227e-05/0.2264, allocations: 11.94 kB / 0.7884 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.2264, allocations: 4 kB / 0.7884 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.2264, allocations: 4 kB / 0.7884 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.2264, allocations: 0 / 0.7884 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.2264, allocations: 0 / 0.7884 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003181/0.2268, allocations: 222.6 kB / 0.7886 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.533e-05/0.2268, allocations: 85.05 kB / 0.7887 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.161e-05/0.2268, allocations: 8 kB / 0.7887 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.19e-05/0.2269, allocations: 4 kB / 0.7887 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.607e-05/0.227, allocations: 11.98 kB / 0.7887 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.227, allocations: 4 kB / 0.7887 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.251e-05/0.227, allocations: 91.25 kB / 0.7888 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.227, allocations: 0 / 0.7888 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002287/0.2273, allocations: 24 kB / 0.7889 GB, free: 7.387 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.0001231/0.2274, allocations: 116.3 kB / 0.789 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000303/0.2277, allocations: 171.2 kB / 0.7891 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2277, allocations: 0 / 0.7891 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.2279, allocations: 191.5 kB / 0.7893 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.2281, allocations: 15.92 kB / 0.7893 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004167/0.2286, allocations: 187.7 kB / 0.7895 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002438/0.2288, allocations: 0.6885 MB / 0.7902 GB, free: 5.949 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.046e-05/0.2289, allocations: 12.66 kB / 0.7902 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.671e-05/0.2289, allocations: 11.44 kB / 0.7902 GB, free: 5.922 MB / 0.6075 GB Notification: Performance of SimCode: time 2.01e-07/0.2289, allocations: 0 / 0.7902 GB, free: 5.922 MB / 0.6075 GB Notification: Performance of Templates: time 0.003379/0.2323, allocations: 0.9774 MB / 0.7912 GB, free: 4.953 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)