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.00176/0.00176, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002369/0.002369, allocations: 192.4 kB / 16.53 MB, free: 6.391 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.545/1.545, allocations: 205.1 MB / 222.4 MB, free: 4.434 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.735/1.735, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.002791/0.002791, allocations: 69.06 kB / 0.6715 GB, free: 26.17 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2935, allocations: 114.5 MB / 0.7834 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.004944/0.2985, allocations: 1.708 MB / 0.785 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00356/0.3022, allocations: 1.816 MB / 0.7868 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001915/0.3024, allocations: 4 kB / 0.7868 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002184/0.3027, allocations: 23.8 kB / 0.7868 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.00019/0.3029, allocations: 31.72 kB / 0.7869 GB, free: 9.867 MB / 0.6075 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.001787/0.3047, allocations: 324.8 kB / 0.7872 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003468/0.305, allocations: 187.5 kB / 0.7874 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.3052, allocations: 21.78 kB / 0.7874 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00018/0.3054, allocations: 79.69 kB / 0.7875 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001387/0.3055, allocations: 75.67 kB / 0.7875 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.021e-05/0.3055, allocations: 8 kB / 0.7875 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005501/0.3061, allocations: 263.6 kB / 0.7878 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001211/0.3062, allocations: 47.83 kB / 0.7878 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.616e-05/0.3063, allocations: 63.66 kB / 0.7879 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000597/0.3069, allocations: 355.2 kB / 0.7882 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3069, allocations: 0 / 0.7882 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.674e-06/0.307, allocations: 0 / 0.7882 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.247e-06/0.307, allocations: 0 / 0.7882 GB, free: 8.477 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.000941/0.3079, allocations: 0.5089 MB / 0.7887 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.308, allocations: 12.03 kB / 0.7887 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.937e-05/0.308, allocations: 16.75 kB / 0.7888 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002445/0.3083, allocations: 222.9 kB / 0.789 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.602e-05/0.3083, allocations: 8.375 kB / 0.789 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.414e-05/0.3084, allocations: 20.11 kB / 0.789 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003079/0.3087, allocations: 147.2 kB / 0.7891 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.3087, allocations: 3.984 kB / 0.7891 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.3087, allocations: 0 / 0.7891 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.3087, allocations: 4 kB / 0.7891 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000204/0.3089, allocations: 67.95 kB / 0.7892 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008532/0.3098, allocations: 412.5 kB / 0.7896 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003073/0.3101, allocations: 150.6 kB / 0.7897 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001417/0.3103, allocations: 68.75 kB / 0.7898 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.3103, allocations: 4 kB / 0.7898 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002895/0.3106, allocations: 156.9 kB / 0.79 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.814e-06/0.3106, allocations: 0 / 0.79 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18): time 0.0006705/0.3113, allocations: 280.4 kB / 0.7902 GB, free: 6.25 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.267e-05/0.3114, allocations: 93.17 kB / 0.7903 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.3115, allocations: 168.4 kB / 0.7905 GB, free: 5.965 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.411e-05/0.3116, allocations: 41.7 kB / 0.7905 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.756e-05/0.3116, allocations: 108.5 kB / 0.7906 GB, free: 5.805 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.923e-05/0.3117, allocations: 47.44 kB / 0.7907 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.52e-05/0.3118, allocations: 49.7 kB / 0.7907 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.3119, allocations: 330.8 kB / 0.791 GB, free: 5.371 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.3121, allocations: 67.95 kB / 0.7911 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.3123, allocations: 168.8 kB / 0.7913 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000356/0.3127, allocations: 251.8 kB / 0.7915 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3127, allocations: 0 / 0.7915 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000457/0.3131, allocations: 272.9 kB / 0.7918 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.3132, allocations: 11.98 kB / 0.7918 GB, free: 4.52 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.3132, allocations: 0 / 0.7918 GB, free: 4.52 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.3132, allocations: 8 kB / 0.7918 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.3133, allocations: 31.92 kB / 0.7918 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.3134, allocations: 8.312 kB / 0.7918 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.3135, allocations: 31.77 kB / 0.7918 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.3135, allocations: 16 kB / 0.7919 GB, free: 4.426 MB / 0.6075 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.000159/0.3137, allocations: 143.5 kB / 0.792 GB, free: 4.277 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.567e-05/0.3137, allocations: 15.81 kB / 0.792 GB, free: 4.262 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.222e-05/0.3138, allocations: 21.86 kB / 0.792 GB, free: 4.238 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.3138, allocations: 4 kB / 0.792 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.3138, allocations: 4 kB / 0.792 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.3138, allocations: 3.938 kB / 0.792 GB, free: 4.227 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008424/0.3147, allocations: 0.5568 MB / 0.7926 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.3147, allocations: 0 / 0.7926 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.3148, allocations: 15.98 kB / 0.7926 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.3148, allocations: 3.938 kB / 0.7926 GB, free: 3.594 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/0.3148, allocations: 4 kB / 0.7926 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.3148, allocations: 7.984 kB / 0.7926 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3149, allocations: 7.938 kB / 0.7926 GB, free: 3.574 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006425/0.3155, allocations: 403.9 kB / 0.793 GB, free: 3.16 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.631e-05/0.3156, allocations: 92.89 kB / 0.7931 GB, free: 3.051 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.053e-05/0.3156, allocations: 15.92 kB / 0.7931 GB, free: 3.035 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.3158, allocations: 16.05 kB / 0.7931 GB, free: 3.02 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.599e-05/0.3158, allocations: 11.98 kB / 0.7931 GB, free: 3.008 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.29e-05/0.3158, allocations: 8 kB / 0.7932 GB, free: 3 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001002/0.316, allocations: 126 kB / 0.7933 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.316, allocations: 0 / 0.7933 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0004954/0.3165, allocations: 99.98 kB / 0.7934 GB, free: 2.781 MB / 0.6075 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.0009323/0.3174, allocations: 431.1 kB / 0.7938 GB, free: 2.465 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004585/0.3179, allocations: 200.2 kB / 0.794 GB, free: 2.27 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.802e-06/0.3179, allocations: 4.188 kB / 0.794 GB, free: 2.266 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001743/0.3181, allocations: 79.89 kB / 0.7941 GB, free: 2.188 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003372/0.3184, allocations: 30.73 kB / 0.7941 GB, free: 2.16 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007609/0.3192, allocations: 350.5 kB / 0.7944 GB, free: 1.793 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002854/0.3195, allocations: 0.7241 MB / 0.7951 GB, free: 1.043 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001164/0.3196, allocations: 45.5 kB / 0.7952 GB, free: 0.9961 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.672e-05/0.3197, allocations: 19.44 kB / 0.7952 GB, free: 0.9805 MB / 0.6075 GB Notification: Performance of SimCode: time 3.51e-07/0.3197, allocations: 4 kB / 0.7952 GB, free: 0.9766 MB / 0.6075 GB Notification: Performance of Templates: time 0.007805/0.3275, allocations: 3.319 MB / 0.7984 GB, free: 13.67 MB / 0.6231 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 -lv LOG_STATS > Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1)