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/Buildings 8.1.1-maint.8.1.x/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.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/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/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.705/1.705, allocations: 293 MB / 309 MB, free: 4.793 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.001125/0.001125, allocations: 164.6 kB / 378.7 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.616/1.616, allocations: 205.4 MB / 0.6383 GB, free: 8.129 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000775/0.000775, allocations: 87.73 kB / 0.7527 GB, free: 62.95 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004052/0.0004053, allocations: 15.98 kB / 0.8768 GB, free: 10.39 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2329, allocations: 116.4 MB / 0.9905 GB, free: 5.836 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6083/0.8412, allocations: 139.3 MB / 1.127 GB, free: 34.46 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/0.8415, allocations: 75.42 kB / 1.127 GB, free: 34.41 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003772/0.8453, allocations: 1.644 MB / 1.128 GB, free: 33.17 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.392e-06/0.8453, allocations: 1.281 kB / 1.128 GB, free: 33.17 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 7.744e-06/0.8453, allocations: 0 / 1.128 GB, free: 33.17 MB / 0.7292 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.0003131/0.8456, allocations: 395.7 kB / 1.129 GB, free: 32.74 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.8457, allocations: 8.031 kB / 1.129 GB, free: 32.73 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.007e-05/0.8457, allocations: 10.38 kB / 1.129 GB, free: 32.73 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.8459, allocations: 183.7 kB / 1.129 GB, free: 32.51 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.8459, allocations: 384 / 1.129 GB, free: 32.51 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.344e-05/0.8459, allocations: 4.375 kB / 1.129 GB, free: 32.51 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001488/0.8461, allocations: 75.78 kB / 1.129 GB, free: 32.44 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.904e-06/0.8461, allocations: 0.7969 kB / 1.129 GB, free: 32.44 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.8461, allocations: 3.938 kB / 1.129 GB, free: 32.44 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.8461, allocations: 0 / 1.129 GB, free: 32.44 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.53e-05/0.8462, allocations: 46.78 kB / 1.129 GB, free: 32.4 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000322/0.8466, allocations: 290.1 kB / 1.129 GB, free: 32.09 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 9.645e-05/0.8467, allocations: 77.64 kB / 1.129 GB, free: 32.01 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.432e-05/0.8467, allocations: 57 kB / 1.129 GB, free: 31.96 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.8468, allocations: 0 / 1.129 GB, free: 31.96 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001236/0.8469, allocations: 122.7 kB / 1.129 GB, free: 31.83 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=11): time 1.292e-06/0.8469, allocations: 4 kB / 1.129 GB, free: 31.83 MB / 0.7292 GB Notification: Performance of matching and sorting (n=11): time 0.0003261/0.8472, allocations: 198.2 kB / 1.13 GB, free: 31.64 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.818e-05/0.8473, allocations: 118.2 kB / 1.13 GB, free: 31.5 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.47e-05/0.8474, allocations: 109.3 kB / 1.13 GB, free: 31.39 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.8474, allocations: 29.7 kB / 1.13 GB, free: 31.36 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 2.418e-05/0.8474, allocations: 88.14 kB / 1.13 GB, free: 31.27 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.466e-05/0.8474, allocations: 31.27 kB / 1.13 GB, free: 31.24 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.142e-06/0.8475, allocations: 4.844 kB / 1.13 GB, free: 31.23 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 4.936e-05/0.8475, allocations: 322.4 kB / 1.13 GB, free: 30.91 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.665e-05/0.8476, allocations: 38.78 kB / 1.13 GB, free: 30.88 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.441e-05/0.8477, allocations: 109.7 kB / 1.13 GB, free: 30.76 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001802/0.8479, allocations: 214.8 kB / 1.131 GB, free: 30.52 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.8479, allocations: 3.938 kB / 1.131 GB, free: 30.51 MB / 0.7292 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002567/0.8482, allocations: 209.9 kB / 1.131 GB, free: 30.31 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.8482, allocations: 31.73 kB / 1.131 GB, free: 30.28 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.8482, allocations: 4.656 kB / 1.131 GB, free: 30.27 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.8482, allocations: 4 kB / 1.131 GB, free: 30.27 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.8483, allocations: 19.66 kB / 1.131 GB, free: 30.25 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.8483, allocations: 7.938 kB / 1.131 GB, free: 30.25 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.576e-05/0.8484, allocations: 28.06 kB / 1.131 GB, free: 30.22 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.8484, allocations: 4.625 kB / 1.131 GB, free: 30.21 MB / 0.7292 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 9.427e-05/0.8485, allocations: 175.5 kB / 1.131 GB, free: 30.04 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.607e-05/0.8486, allocations: 8.469 kB / 1.131 GB, free: 30.03 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.124e-05/0.8486, allocations: 8.375 kB / 1.131 GB, free: 30.02 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.8486, allocations: 3.656 kB / 1.131 GB, free: 30.02 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.8486, allocations: 0 / 1.131 GB, free: 30.02 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.8486, allocations: 4 kB / 1.131 GB, free: 30.01 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.8487, allocations: 187.4 kB / 1.131 GB, free: 29.8 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.8488, allocations: 5.812 kB / 1.131 GB, free: 29.79 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.89e-05/0.8488, allocations: 4 kB / 1.131 GB, free: 29.79 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.8488, allocations: 4 kB / 1.131 GB, free: 29.79 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.8488, allocations: 3.469 kB / 1.131 GB, free: 29.79 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.8488, allocations: 0.625 kB / 1.131 GB, free: 29.79 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.8488, allocations: 0 / 1.131 GB, free: 29.79 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002581/0.8491, allocations: 239.8 kB / 1.132 GB, free: 29.55 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.247e-05/0.8491, allocations: 81.02 kB / 1.132 GB, free: 29.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.72e-05/0.8492, allocations: 8 kB / 1.132 GB, free: 29.44 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.307e-05/0.8492, allocations: 8.906 kB / 1.132 GB, free: 29.44 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.776e-05/0.8493, allocations: 4 kB / 1.132 GB, free: 29.43 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.8493, allocations: 5.594 kB / 1.132 GB, free: 29.43 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.55e-05/0.8493, allocations: 86.75 kB / 1.132 GB, free: 29.35 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8493, allocations: 4 kB / 1.132 GB, free: 29.34 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002137/0.8496, allocations: 24 kB / 1.132 GB, free: 29.32 MB / 0.7292 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 8.697e-05/0.8496, allocations: 114.6 kB / 1.132 GB, free: 29.2 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002355/0.8499, allocations: 165.9 kB / 1.132 GB, free: 29.04 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.8499, allocations: 4.062 kB / 1.132 GB, free: 29.04 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.85, allocations: 194.9 kB / 1.132 GB, free: 28.85 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001756/0.8502, allocations: 12.97 kB / 1.132 GB, free: 28.84 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003073/0.8505, allocations: 192.4 kB / 1.132 GB, free: 28.65 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001004/0.8507, allocations: 0.6992 MB / 1.133 GB, free: 27.93 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 4.016e-05/0.8507, allocations: 4.672 kB / 1.133 GB, free: 27.93 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.358e-05/0.8507, allocations: 15 kB / 1.133 GB, free: 27.92 MB / 0.7292 GB Notification: Performance of SimCode: time 2.1e-07/0.8507, allocations: 0 / 1.133 GB, free: 27.92 MB / 0.7292 GB Notification: Performance of Templates: time 0.002439/0.8532, allocations: 0.871 MB / 1.134 GB, free: 27.43 MB / 0.7292 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)