Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.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.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter") translateModel(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 102.9 kB / 16.35 MB, free: 6.348 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.001036/0.001037, allocations: 194.8 kB / 17.29 MB, free: 5.93 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.348/1.348, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.719/1.719, allocations: 292.3 MB / 0.5496 GB, free: 17.61 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.001391/0.001391, allocations: 70.25 kB / 0.6729 GB, free: 5.871 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2083/0.2097, allocations: 114.6 MB / 0.7848 GB, free: 3.207 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.003266/0.213, allocations: 1.715 MB / 0.7864 GB, free: 1.473 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.3278/0.5408, allocations: 1.818 MB / 0.7882 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.98e-05/0.541, allocations: 4.594 kB / 0.7882 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001706/0.5412, allocations: 28.05 kB / 0.7883 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001146/0.5413, allocations: 24.23 kB / 0.7883 GB, free: 46.54 MB / 0.6544 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:310:3-383:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.replace' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Obsolete/Utilities/IO/Python27/Functions/exchange.mo:2:1-109:13:writable] Warning: Pure function 'Buildings.Obsolete.Utilities.IO.Python27.Functions.exchange' contains a call to impure function 'Modelica.Utilities.Strings.replace'. Notification: Performance of NFTyping.typeClassSections: time 0.00112/0.5424, allocations: 301.5 kB / 0.7886 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001947/0.5426, allocations: 192.5 kB / 0.7887 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 9.14e-05/0.5427, allocations: 31.97 kB / 0.7888 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.5429, allocations: 74.16 kB / 0.7889 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 9.618e-05/0.543, allocations: 75.69 kB / 0.7889 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.368e-05/0.543, allocations: 7.875 kB / 0.7889 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003674/0.5434, allocations: 284.1 kB / 0.7892 GB, free: 46.51 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 8.064e-05/0.5435, allocations: 46.09 kB / 0.7892 GB, free: 46.51 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.143e-05/0.5435, allocations: 66.86 kB / 0.7893 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.000364/0.5439, allocations: 355.8 kB / 0.7896 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.5439, allocations: 0 / 0.7896 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.282e-06/0.5439, allocations: 0.5938 kB / 0.7896 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.5439, allocations: 0.8438 kB / 0.7897 GB, free: 46.45 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006598/0.5446, allocations: 0.5145 MB / 0.7902 GB, free: 46.02 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.5446, allocations: 12.97 kB / 0.7902 GB, free: 46.02 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.109e-05/0.5447, allocations: 20.3 kB / 0.7902 GB, free: 46.01 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001608/0.5449, allocations: 213.9 kB / 0.7904 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.5449, allocations: 8.219 kB / 0.7904 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.671e-05/0.5449, allocations: 19.16 kB / 0.7904 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000251/0.5452, allocations: 149.4 kB / 0.7906 GB, free: 45.75 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.5452, allocations: 0 / 0.7906 GB, free: 45.75 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/0.5452, allocations: 0 / 0.7906 GB, free: 45.75 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.5452, allocations: 2.625 kB / 0.7906 GB, free: 45.75 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.5454, allocations: 73.08 kB / 0.7906 GB, free: 45.75 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006311/0.546, allocations: 409.5 kB / 0.791 GB, free: 45.48 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002513/0.5463, allocations: 152.8 kB / 0.7912 GB, free: 45.45 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.5464, allocations: 64.89 kB / 0.7912 GB, free: 45.45 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.5465, allocations: 2.625 kB / 0.7912 GB, free: 45.45 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000223/0.5467, allocations: 154.8 kB / 0.7914 GB, free: 45.38 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=18): time 1.443e-06/0.5467, allocations: 2.062 kB / 0.7914 GB, free: 45.38 MB / 0.6544 GB Notification: Performance of matching and sorting (n=18): time 0.0005315/0.5472, allocations: 286 kB / 0.7917 GB, free: 45.34 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.5473, allocations: 85.02 kB / 0.7917 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.863e-05/0.5474, allocations: 164.3 kB / 0.7919 GB, free: 45.15 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.5474, allocations: 38.56 kB / 0.7919 GB, free: 45.12 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.599e-05/0.5475, allocations: 108.6 kB / 0.792 GB, free: 45.03 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.989e-05/0.5475, allocations: 52 kB / 0.7921 GB, free: 45 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.707e-05/0.5476, allocations: 54.36 kB / 0.7921 GB, free: 44.99 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.84e-05/0.5476, allocations: 332.2 kB / 0.7924 GB, free: 44.67 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.5478, allocations: 70.25 kB / 0.7925 GB, free: 44.67 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001479/0.5479, allocations: 165.6 kB / 0.7927 GB, free: 44.55 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002704/0.5482, allocations: 248.7 kB / 0.7929 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.5482, allocations: 3.938 kB / 0.7929 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003652/0.5486, allocations: 263 kB / 0.7932 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.5486, allocations: 6.781 kB / 0.7932 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.5486, allocations: 6.703 kB / 0.7932 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.5486, allocations: 3.344 kB / 0.7932 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.5488, allocations: 39.14 kB / 0.7932 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.5488, allocations: 6.906 kB / 0.7932 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.5489, allocations: 18.36 kB / 0.7932 GB, free: 44.39 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/0.5489, allocations: 11.5 kB / 0.7933 GB, free: 44.39 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition3,kalFil.firstTrigger,$PRE.kalFil.firstTrigger,kalFil.yR[1],$PRE.kalFil.yR[1],kalFil.uRIntPre[1],$PRE.kalFil.uRIntPre[1],ran.firstTrigger,$PRE.ran.firstTrigger,ran.uRIntPre[1],$PRE.ran.uRIntPre[1],ran.sampleTrigger,$whenCondition1,ran.uRWri[1],$PRE.ran.uRWri[1],kalFil.sampleTrigger,$whenCondition2,kalFil.uRWri[1],$PRE.kalFil.uRWri[1],ran.yR[1],$PRE.ran.yR[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * 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.0001085/0.549, allocations: 161.1 kB / 0.7934 GB, free: 44.27 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.068e-05/0.5491, allocations: 19.94 kB / 0.7934 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.503e-05/0.5491, allocations: 19.11 kB / 0.7934 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.5491, allocations: 5.859 kB / 0.7934 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.5491, allocations: 0 / 0.7934 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.5491, allocations: 0 / 0.7934 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006627/0.5498, allocations: 0.5556 MB / 0.794 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.5498, allocations: 0 / 0.794 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.399e-05/0.5499, allocations: 16.48 kB / 0.794 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.5499, allocations: 7.406 kB / 0.794 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.55, allocations: 8.25 kB / 0.794 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.55, allocations: 0.5625 kB / 0.794 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.55, allocations: 0 / 0.794 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005141/0.5505, allocations: 411.6 kB / 0.7944 GB, free: 43.8 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.706e-05/0.5505, allocations: 92.36 kB / 0.7945 GB, free: 43.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.268e-05/0.5506, allocations: 13.53 kB / 0.7945 GB, free: 43.69 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.5507, allocations: 16.77 kB / 0.7945 GB, free: 43.69 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.368e-05/0.5508, allocations: 9.656 kB / 0.7945 GB, free: 43.69 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.5508, allocations: 15.66 kB / 0.7946 GB, free: 43.69 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.828e-05/0.5508, allocations: 116.6 kB / 0.7947 GB, free: 43.62 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5509, allocations: 3.5 kB / 0.7947 GB, free: 43.62 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000413/0.5513, allocations: 103.8 kB / 0.7948 GB, free: 43.6 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (ran.uRInt[1],kalFil.uRInt[1]) * Number of discrete variables: 13 (kalFil.sampleTrigger,ran.sampleTrigger,$whenCondition2,$whenCondition1,ran.firstTrigger,ran.yR[1],ran.uRIntPre[1],ran.uRWri[1],kalFil.firstTrigger,kalFil.yR[1],kalFil.uRIntPre[1],kalFil.uRWri[1],$whenCondition3) * Number of discrete states: 2 (kalFil.uR[1],ran.uR[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0007489/0.552, allocations: 429.6 kB / 0.7952 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003434/0.5524, allocations: 182.8 kB / 0.7954 GB, free: 43.47 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.5524, allocations: 3.5 kB / 0.7954 GB, free: 43.47 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.5525, allocations: 78.02 kB / 0.7954 GB, free: 43.47 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.5528, allocations: 29.81 kB / 0.7955 GB, free: 43.47 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005321/0.5534, allocations: 346.5 kB / 0.7958 GB, free: 43.29 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000127/0.5535, allocations: 0.7264 MB / 0.7965 GB, free: 42.59 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 9.511e-05/0.5536, allocations: 55.16 kB / 0.7966 GB, free: 42.59 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.183e-05/0.5537, allocations: 17.59 kB / 0.7966 GB, free: 42.58 MB / 0.6544 GB Notification: Performance of SimCode: time 3.31e-07/0.5537, allocations: 0 / 0.7966 GB, free: 42.58 MB / 0.6544 GB Notification: Performance of Templates: time 0.006511/0.5602, allocations: 3.327 MB / 0.7998 GB, free: 42.34 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.makefile (rm -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe >> ../files/Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.sim & ./Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1)