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.001098/0.001098, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 192.7 kB / 16.25 MB, free: 6.621 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.317/1.317, allocations: 205.1 MB / 222.1 MB, free: 4.711 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.657/1.657, allocations: 292.2 MB / 0.5485 GB, free: 13.68 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.001364/0.001364, allocations: 63.92 kB / 0.671 GB, free: 26.35 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2157, allocations: 114.6 MB / 0.7829 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002878/0.2187, allocations: 1.456 MB / 0.7843 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0005854/0.2193, allocations: 285 kB / 0.7846 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.805e-05/0.2194, allocations: 0 / 0.7846 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.2195, allocations: 0 / 0.7846 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001349/0.2196, allocations: 11.92 kB / 0.7846 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001841/0.2198, allocations: 35.91 kB / 0.7846 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.22, allocations: 59.84 kB / 0.7847 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.953e-05/0.2201, allocations: 12 kB / 0.7847 GB, free: 12.06 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.744e-05/0.2202, allocations: 27.91 kB / 0.7847 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001044/0.2203, allocations: 35.84 kB / 0.7847 GB, free: 12 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.076e-05/0.2203, allocations: 7.938 kB / 0.7847 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.405e-05/0.2203, allocations: 4 kB / 0.7848 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.851e-05/0.2204, allocations: 4 kB / 0.7848 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.996e-05/0.2204, allocations: 31.84 kB / 0.7848 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001152/0.2206, allocations: 64.08 kB / 0.7848 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.2206, allocations: 3.984 kB / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2206, allocations: 0 / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5e-06/0.2206, allocations: 0 / 0.7848 GB, free: 11.88 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.0004798/0.2211, allocations: 393 kB / 0.7852 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.2211, allocations: 12.03 kB / 0.7852 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.972e-05/0.2212, allocations: 8.844 kB / 0.7852 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.2213, allocations: 176.3 kB / 0.7854 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.2214, allocations: 4.375 kB / 0.7854 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.633e-05/0.2214, allocations: 8.375 kB / 0.7854 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000187/0.2216, allocations: 74.16 kB / 0.7855 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.2216, allocations: 4.125 kB / 0.7855 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.2216, allocations: 3.938 kB / 0.7855 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.2216, allocations: 0 / 0.7855 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001052/0.2217, allocations: 39.98 kB / 0.7855 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004093/0.2222, allocations: 292.8 kB / 0.7858 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001199/0.2223, allocations: 66.5 kB / 0.7859 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.871e-05/0.2224, allocations: 56.89 kB / 0.7859 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.2224, allocations: 8.078 kB / 0.7859 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002151/0.2226, allocations: 113 kB / 0.7861 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.463e-06/0.2226, allocations: 0 / 0.7861 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0003954/0.223, allocations: 199.6 kB / 0.7862 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.483e-05/0.2231, allocations: 114.8 kB / 0.7864 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.495e-05/0.2232, allocations: 114.1 kB / 0.7865 GB, free: 10 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.354e-05/0.2232, allocations: 29.7 kB / 0.7865 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.072e-05/0.2233, allocations: 88.08 kB / 0.7866 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.055e-05/0.2233, allocations: 31.64 kB / 0.7866 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.496e-05/0.2234, allocations: 33.7 kB / 0.7866 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.814e-05/0.2235, allocations: 322.8 kB / 0.7869 GB, free: 9.484 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.693e-05/0.2236, allocations: 39.97 kB / 0.787 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001116/0.2237, allocations: 96.56 kB / 0.7871 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002216/0.2239, allocations: 211.8 kB / 0.7873 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.2239, allocations: 7.938 kB / 0.7873 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000303/0.2242, allocations: 199 kB / 0.7875 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.748e-05/0.2243, allocations: 37.69 kB / 0.7875 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.2243, allocations: 4 kB / 0.7875 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.2243, allocations: 8.281 kB / 0.7875 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.2245, allocations: 19.98 kB / 0.7875 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.2245, allocations: 12 kB / 0.7876 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.345e-05/0.2245, allocations: 15.78 kB / 0.7876 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.2246, allocations: 12 kB / 0.7876 GB, free: 8.742 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.0001382/0.2247, allocations: 180.2 kB / 0.7878 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.888e-05/0.2247, allocations: 4 kB / 0.7878 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.617e-05/0.2248, allocations: 8.375 kB / 0.7878 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.2248, allocations: 0 / 0.7878 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.2248, allocations: 7.938 kB / 0.7878 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.2248, allocations: 0 / 0.7878 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.2249, allocations: 189.5 kB / 0.788 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.2249, allocations: 4 kB / 0.788 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.249e-05/0.225, allocations: 7.984 kB / 0.788 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.225, allocations: 3.938 kB / 0.788 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.225, allocations: 4 kB / 0.788 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.225, allocations: 0 / 0.788 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.225, allocations: 0 / 0.788 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003248/0.2254, allocations: 238.5 kB / 0.7882 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.801e-05/0.2254, allocations: 81.09 kB / 0.7883 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.379e-05/0.2255, allocations: 4 kB / 0.7883 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.22e-05/0.2255, allocations: 8 kB / 0.7883 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.905e-05/0.2256, allocations: 7.984 kB / 0.7883 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.2256, allocations: 4 kB / 0.7883 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.235e-05/0.2256, allocations: 87.28 kB / 0.7884 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.192e-06/0.2257, allocations: 0 / 0.7884 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002334/0.2259, allocations: 27.94 kB / 0.7884 GB, free: 7.785 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.0001226/0.226, allocations: 115.9 kB / 0.7885 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002882/0.2263, allocations: 171.7 kB / 0.7887 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.716e-06/0.2263, allocations: 4.125 kB / 0.7887 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001703/0.2265, allocations: 179.4 kB / 0.7889 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.2267, allocations: 19.06 kB / 0.7889 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003979/0.2271, allocations: 195 kB / 0.7891 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.2274, allocations: 0.6924 MB / 0.7897 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.418e-05/0.2274, allocations: 12.66 kB / 0.7897 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.72e-05/0.2274, allocations: 7.438 kB / 0.7898 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.2274, allocations: 4 kB / 0.7898 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of Templates: time 0.003229/0.2307, allocations: 0.9362 MB / 0.7907 GB, free: 5.383 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)