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.001519/0.001519, allocations: 104 kB / 16.36 MB, free: 6.301 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.001598/0.001598, allocations: 192.1 kB / 17.29 MB, free: 5.875 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.499/1.499, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.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.785/1.785, allocations: 292.3 MB / 0.5496 GB, free: 17.41 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.001401/0.001401, allocations: 71.91 kB / 0.6729 GB, free: 5.816 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2532, allocations: 114.5 MB / 0.7848 GB, free: 3.152 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002692/0.256, allocations: 1.399 MB / 0.7862 GB, free: 1.742 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0005842/0.2566, allocations: 276 kB / 0.7864 GB, free: 1.469 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.89e-05/0.2566, allocations: 3.938 kB / 0.7864 GB, free: 1.465 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 8.952e-05/0.2567, allocations: 3.938 kB / 0.7864 GB, free: 1.461 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001225/0.2569, allocations: 11.92 kB / 0.7864 GB, free: 1.449 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001563/0.257, allocations: 43.89 kB / 0.7865 GB, free: 1.406 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001429/0.2572, allocations: 59.8 kB / 0.7865 GB, free: 1.348 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 9.352e-05/0.2573, allocations: 7.984 kB / 0.7866 GB, free: 1.34 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.449e-05/0.2574, allocations: 31.91 kB / 0.7866 GB, free: 1.309 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001186/0.2575, allocations: 27.84 kB / 0.7866 GB, free: 1.281 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.837e-05/0.2575, allocations: 8 kB / 0.7866 GB, free: 1.273 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.243e-05/0.2576, allocations: 8 kB / 0.7866 GB, free: 1.266 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.882e-05/0.2576, allocations: 4 kB / 0.7866 GB, free: 1.262 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.47e-05/0.2577, allocations: 31.86 kB / 0.7867 GB, free: 1.23 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001126/0.2578, allocations: 63.78 kB / 0.7867 GB, free: 1.168 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2578, allocations: 0 / 0.7867 GB, free: 1.168 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.843e-06/0.2578, allocations: 0 / 0.7867 GB, free: 1.168 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.2578, allocations: 0 / 0.7867 GB, free: 1.168 MB / 0.6544 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.0005195/0.2583, allocations: 400.9 kB / 0.7871 GB, free: 0.7188 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.2584, allocations: 16.03 kB / 0.7871 GB, free: 0.7031 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.708e-05/0.2584, allocations: 8.844 kB / 0.7871 GB, free: 0.6953 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001688/0.2586, allocations: 176.3 kB / 0.7873 GB, free: 496 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.2586, allocations: 384 / 0.7873 GB, free: 496 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.533e-05/0.2586, allocations: 4.375 kB / 0.7873 GB, free: 492 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001773/0.2588, allocations: 74.17 kB / 0.7874 GB, free: 412 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.2588, allocations: 192 / 0.7874 GB, free: 412 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.2589, allocations: 3.938 kB / 0.7874 GB, free: 408 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.2589, allocations: 0 / 0.7874 GB, free: 408 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001274/0.259, allocations: 47.91 kB / 0.7874 GB, free: 360 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004246/0.2594, allocations: 288.8 kB / 0.7877 GB, free: 20 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4057/0.6651, allocations: 70.08 kB / 0.7878 GB, free: 48.78 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.6653, allocations: 55.38 kB / 0.7878 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.6654, allocations: 2.094 kB / 0.7878 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002733/0.6656, allocations: 115.7 kB / 0.7879 GB, free: 48.69 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 3.346e-06/0.6656, allocations: 4.953 kB / 0.7879 GB, free: 48.69 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.000417/0.6661, allocations: 194.6 kB / 0.7881 GB, free: 48.63 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.15e-05/0.6661, allocations: 117.5 kB / 0.7882 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.568e-05/0.6662, allocations: 115.2 kB / 0.7883 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.6662, allocations: 30.73 kB / 0.7884 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.26e-05/0.6663, allocations: 87.44 kB / 0.7885 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.952e-05/0.6663, allocations: 24.14 kB / 0.7885 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.274e-05/0.6664, allocations: 40.44 kB / 0.7885 GB, free: 48.28 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.483e-05/0.6664, allocations: 323.7 kB / 0.7888 GB, free: 47.96 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.389e-05/0.6665, allocations: 35.7 kB / 0.7889 GB, free: 47.96 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.6666, allocations: 107.3 kB / 0.789 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001934/0.6668, allocations: 209.9 kB / 0.7892 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.6668, allocations: 1.719 kB / 0.7892 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002893/0.6671, allocations: 213.5 kB / 0.7894 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.307e-05/0.6672, allocations: 30.95 kB / 0.7894 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.6672, allocations: 4.969 kB / 0.7894 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.6672, allocations: 5.25 kB / 0.7894 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.6673, allocations: 18.89 kB / 0.7894 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.6673, allocations: 6 kB / 0.7894 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.129e-05/0.6674, allocations: 18.34 kB / 0.7894 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.6674, allocations: 7.875 kB / 0.7895 GB, free: 47.64 MB / 0.6544 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.0001164/0.6676, allocations: 178.2 kB / 0.7896 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.65e-05/0.6676, allocations: 5.25 kB / 0.7896 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.156e-05/0.6676, allocations: 9.953 kB / 0.7896 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.6676, allocations: 2.625 kB / 0.7896 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.391e-06/0.6676, allocations: 7.328 kB / 0.7896 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.6677, allocations: 0 / 0.7896 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.6678, allocations: 197.2 kB / 0.7898 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.6678, allocations: 0 / 0.7898 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.585e-05/0.6678, allocations: 5.906 kB / 0.7898 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.6678, allocations: 2.625 kB / 0.7898 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.6678, allocations: 5.672 kB / 0.7898 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.6679, allocations: 2.438 kB / 0.7899 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.6679, allocations: 0 / 0.7899 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002841/0.6681, allocations: 230.6 kB / 0.7901 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.615e-05/0.6682, allocations: 80.52 kB / 0.7901 GB, free: 47.11 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.985e-05/0.6682, allocations: 13.58 kB / 0.7902 GB, free: 47.11 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.333e-05/0.6683, allocations: 4 kB / 0.7902 GB, free: 47.11 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.192e-05/0.6683, allocations: 8.469 kB / 0.7902 GB, free: 47.11 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.6684, allocations: 2.406 kB / 0.7902 GB, free: 47.11 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.386e-05/0.6684, allocations: 89.64 kB / 0.7903 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6684, allocations: 0 / 0.7903 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002237/0.6686, allocations: 24.91 kB / 0.7903 GB, free: 47.03 MB / 0.6544 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.0001163/0.6688, allocations: 110.2 kB / 0.7904 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002712/0.669, allocations: 172.7 kB / 0.7906 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.669, allocations: 1.844 kB / 0.7906 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001721/0.6692, allocations: 187.5 kB / 0.7907 GB, free: 46.82 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002085/0.6694, allocations: 11.34 kB / 0.7907 GB, free: 46.82 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003923/0.6698, allocations: 208.6 kB / 0.7909 GB, free: 46.67 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000138/0.67, allocations: 0.6879 MB / 0.7916 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.107e-05/0.67, allocations: 12.23 kB / 0.7916 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of SimCode: time 2.21e-07/0.67, allocations: 4.875 kB / 0.7916 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of Templates: time 0.002664/0.6727, allocations: 1.105 MB / 0.7927 GB, free: 45.95 MB / 0.6544 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)