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 2.519/2.519, allocations: 287.5 MB / 303.2 MB, free: 8.211 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.001439/0.001439, allocations: 184.3 kB / 371.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.088/2.088, allocations: 205.4 MB / 0.6305 GB, free: 10.57 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.0009442/0.0009437, allocations: 97.41 kB / 0.7438 GB, free: 6.586 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004618/0.000462, allocations: 14.22 kB / 0.8667 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2237/0.2242, allocations: 115.3 MB / 0.9793 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9328/1.157, allocations: 138.1 MB / 1.114 GB, free: 15.91 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/1.157, allocations: 82.62 kB / 1.114 GB, free: 15.91 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006957/1.164, allocations: 1.631 MB / 1.116 GB, free: 31.53 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.884e-06/1.164, allocations: 0 / 1.116 GB, free: 31.53 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.354e-05/1.164, allocations: 0 / 1.116 GB, free: 31.53 MB / 0.698 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.0005999/1.165, allocations: 392.2 kB / 1.116 GB, free: 31.13 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/1.165, allocations: 11.72 kB / 1.116 GB, free: 31.13 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.981e-05/1.165, allocations: 8.75 kB / 1.116 GB, free: 31.12 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000235/1.165, allocations: 181.9 kB / 1.116 GB, free: 30.92 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/1.165, allocations: 11.14 kB / 1.116 GB, free: 30.92 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/1.165, allocations: 11.41 kB / 1.116 GB, free: 30.91 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002281/1.166, allocations: 72.47 kB / 1.117 GB, free: 30.88 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/1.166, allocations: 192 / 1.117 GB, free: 30.88 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/1.166, allocations: 3.938 kB / 1.117 GB, free: 30.88 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/1.166, allocations: 4 kB / 1.117 GB, free: 30.88 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001707/1.166, allocations: 43.23 kB / 1.117 GB, free: 30.88 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005152/1.166, allocations: 287.8 kB / 1.117 GB, free: 30.61 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001618/1.167, allocations: 78.55 kB / 1.117 GB, free: 30.57 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/1.167, allocations: 58.06 kB / 1.117 GB, free: 30.57 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/1.167, allocations: 0 / 1.117 GB, free: 30.57 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002194/1.167, allocations: 116.1 kB / 1.117 GB, free: 30.49 MB / 0.698 GB Notification: Performance of pre-optimization done (n=11): time 1.853e-06/1.167, allocations: 0 / 1.117 GB, free: 30.49 MB / 0.698 GB Notification: Performance of matching and sorting (n=11): time 0.0005669/1.168, allocations: 210.4 kB / 1.117 GB, free: 30.41 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.542e-05/1.168, allocations: 113.1 kB / 1.117 GB, free: 30.29 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.806e-05/1.168, allocations: 115.1 kB / 1.118 GB, free: 30.18 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/1.168, allocations: 29.27 kB / 1.118 GB, free: 30.15 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.091e-05/1.168, allocations: 89.81 kB / 1.118 GB, free: 30.07 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.651e-05/1.168, allocations: 25.59 kB / 1.118 GB, free: 30.06 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.094e-05/1.168, allocations: 7.438 kB / 1.118 GB, free: 30.05 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001359/1.168, allocations: 321.1 kB / 1.118 GB, free: 29.74 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/1.168, allocations: 39.06 kB / 1.118 GB, free: 29.74 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000165/1.169, allocations: 105.7 kB / 1.118 GB, free: 29.66 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003364/1.169, allocations: 209.9 kB / 1.118 GB, free: 29.51 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/1.169, allocations: 7.875 kB / 1.118 GB, free: 29.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004864/1.169, allocations: 207.5 kB / 1.119 GB, free: 29.42 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 4.209e-05/1.169, allocations: 35.42 kB / 1.119 GB, free: 29.39 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/1.169, allocations: 0 / 1.119 GB, free: 29.39 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/1.169, allocations: 3.875 kB / 1.119 GB, free: 29.39 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001854/1.17, allocations: 30.98 kB / 1.119 GB, free: 29.38 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/1.17, allocations: 3.844 kB / 1.119 GB, free: 29.38 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/1.17, allocations: 18.44 kB / 1.119 GB, free: 29.37 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/1.17, allocations: 11.91 kB / 1.119 GB, free: 29.37 MB / 0.698 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.0001932/1.17, allocations: 175.1 kB / 1.119 GB, free: 29.21 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.528e-05/1.17, allocations: 7.75 kB / 1.119 GB, free: 29.21 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.048e-05/1.17, allocations: 7.094 kB / 1.119 GB, free: 29.21 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/1.17, allocations: 7.766 kB / 1.119 GB, free: 29.21 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/1.17, allocations: 0 / 1.119 GB, free: 29.21 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/1.17, allocations: 0 / 1.119 GB, free: 29.21 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001728/1.17, allocations: 186.6 kB / 1.119 GB, free: 29.02 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/1.17, allocations: 4 kB / 1.119 GB, free: 29.01 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.023e-05/1.17, allocations: 9.984 kB / 1.119 GB, free: 29.01 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/1.17, allocations: 0 / 1.119 GB, free: 29.01 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/1.17, allocations: 4.719 kB / 1.119 GB, free: 29.01 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/1.171, allocations: 0 / 1.119 GB, free: 29.01 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/1.171, allocations: 0 / 1.119 GB, free: 29.01 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004728/1.171, allocations: 236.8 kB / 1.119 GB, free: 28.9 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.801e-05/1.171, allocations: 88.86 kB / 1.119 GB, free: 28.8 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.323e-05/1.171, allocations: 6.75 kB / 1.119 GB, free: 28.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.388e-05/1.171, allocations: 7.906 kB / 1.119 GB, free: 28.8 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.596e-05/1.171, allocations: 9.891 kB / 1.119 GB, free: 28.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/1.171, allocations: 3.844 kB / 1.119 GB, free: 28.8 MB / 0.698 GB Notification: Performance of sorting global known variables: time 6.437e-05/1.171, allocations: 85.25 kB / 1.119 GB, free: 28.72 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.31e-07/1.171, allocations: 0 / 1.119 GB, free: 28.72 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003164/1.172, allocations: 25.62 kB / 1.119 GB, free: 28.72 MB / 0.698 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.0001531/1.172, allocations: 109.2 kB / 1.12 GB, free: 28.63 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004197/1.172, allocations: 176.5 kB / 1.12 GB, free: 28.55 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/1.172, allocations: 0.5625 kB / 1.12 GB, free: 28.55 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002546/1.173, allocations: 187.7 kB / 1.12 GB, free: 28.49 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002673/1.173, allocations: 21.42 kB / 1.12 GB, free: 28.48 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005031/1.173, allocations: 187.5 kB / 1.12 GB, free: 28.35 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002911/1.174, allocations: 0.6937 MB / 1.121 GB, free: 27.65 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 6.597e-05/1.174, allocations: 11.58 kB / 1.121 GB, free: 27.64 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.506e-05/1.174, allocations: 11.25 kB / 1.121 GB, free: 27.64 MB / 0.698 GB Notification: Performance of SimCode: time 2.195e-06/1.174, allocations: 3.938 kB / 1.121 GB, free: 27.63 MB / 0.698 GB Notification: Performance of Templates: time 0.1907/1.365, allocations: 0.8601 MB / 1.122 GB, free: 27.54 MB / 0.698 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)