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.001064/0.001064, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008712/0.008712, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.735/1.735, allocations: 205.4 MB / 222.5 MB, free: 5.562 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.881/1.881, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.0005144/0.0005144, allocations: 13.34 kB / 0.6743 GB, free: 25.77 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2682, allocations: 116.3 MB / 0.7879 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002454/0.2707, allocations: 1.431 MB / 0.7893 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00307/0.2738, allocations: 1.78 MB / 0.791 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.2739, allocations: 4 kB / 0.791 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000184/0.2741, allocations: 19.86 kB / 0.791 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001652/0.2743, allocations: 19.78 kB / 0.7911 GB, free: 8.289 MB / 0.6075 GB [/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.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.001482/0.2758, allocations: 277.6 kB / 0.7913 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003269/0.2761, allocations: 175.5 kB / 0.7915 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.2762, allocations: 29.77 kB / 0.7915 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001717/0.2764, allocations: 67.7 kB / 0.7916 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.2765, allocations: 71.67 kB / 0.7916 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.537e-05/0.2766, allocations: 4 kB / 0.7917 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005031/0.2771, allocations: 251.6 kB / 0.7919 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.2772, allocations: 43.89 kB / 0.7919 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.2773, allocations: 85.36 kB / 0.792 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005485/0.2779, allocations: 351.1 kB / 0.7923 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2779, allocations: 0 / 0.7923 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2779, allocations: 0 / 0.7923 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.423e-06/0.2779, allocations: 0 / 0.7923 GB, free: 6.961 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.0009335/0.2789, allocations: 498.9 kB / 0.7928 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.2789, allocations: 12.03 kB / 0.7928 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.266e-05/0.279, allocations: 20.73 kB / 0.7929 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002821/0.2793, allocations: 230.8 kB / 0.7931 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.253e-05/0.2793, allocations: 8.375 kB / 0.7931 GB, free: 6.125 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.266e-05/0.2794, allocations: 19.88 kB / 0.7931 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003276/0.2797, allocations: 146.2 kB / 0.7932 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.2797, allocations: 0 / 0.7932 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.028e-05/0.2798, allocations: 4 kB / 0.7932 GB, free: 5.949 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.2798, allocations: 4 kB / 0.7932 GB, free: 5.945 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002298/0.28, allocations: 83.94 kB / 0.7933 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008815/0.2809, allocations: 412.5 kB / 0.7937 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003225/0.2812, allocations: 150.6 kB / 0.7939 GB, free: 5.254 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.2814, allocations: 64.83 kB / 0.7939 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.657e-05/0.2815, allocations: 11.94 kB / 0.7939 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002968/0.2818, allocations: 160.9 kB / 0.7941 GB, free: 5 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.333e-06/0.2818, allocations: 0 / 0.7941 GB, free: 5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18): time 0.0006821/0.2825, allocations: 300.4 kB / 0.7944 GB, free: 4.703 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.779e-05/0.2825, allocations: 93.09 kB / 0.7945 GB, free: 4.594 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001675/0.2827, allocations: 167.2 kB / 0.7946 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.493e-05/0.2828, allocations: 41.69 kB / 0.7947 GB, free: 4.371 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.515e-05/0.2828, allocations: 112.5 kB / 0.7948 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.636e-05/0.2829, allocations: 43.45 kB / 0.7948 GB, free: 4.211 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.185e-05/0.283, allocations: 33.7 kB / 0.7948 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.2831, allocations: 326.8 kB / 0.7952 GB, free: 3.844 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.2833, allocations: 67.95 kB / 0.7952 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000226/0.2835, allocations: 172.8 kB / 0.7954 GB, free: 3.562 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003872/0.2839, allocations: 247.8 kB / 0.7956 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.2839, allocations: 0 / 0.7956 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004967/0.2844, allocations: 285 kB / 0.7959 GB, free: 2.992 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.2845, allocations: 8 kB / 0.7959 GB, free: 2.984 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.2845, allocations: 4.375 kB / 0.7959 GB, free: 2.98 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.2845, allocations: 8 kB / 0.7959 GB, free: 2.973 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/0.2846, allocations: 39.91 kB / 0.796 GB, free: 2.934 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.2847, allocations: 11.92 kB / 0.796 GB, free: 2.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001173/0.2848, allocations: 23.83 kB / 0.796 GB, free: 2.898 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.2848, allocations: 16 kB / 0.796 GB, free: 2.883 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.0001611/0.285, allocations: 147.5 kB / 0.7961 GB, free: 2.73 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.083e-05/0.285, allocations: 15.81 kB / 0.7962 GB, free: 2.715 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.301e-05/0.2851, allocations: 21.86 kB / 0.7962 GB, free: 2.691 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.2851, allocations: 4 kB / 0.7962 GB, free: 2.688 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.2851, allocations: 3.938 kB / 0.7962 GB, free: 2.684 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2851, allocations: 0 / 0.7962 GB, free: 2.684 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008877/0.286, allocations: 0.5607 MB / 0.7967 GB, free: 2.066 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.286, allocations: 0 / 0.7967 GB, free: 2.066 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.974e-05/0.2861, allocations: 15.98 kB / 0.7968 GB, free: 2.051 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.2861, allocations: 7.938 kB / 0.7968 GB, free: 2.043 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/0.2862, allocations: 15.92 kB / 0.7968 GB, free: 2.027 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.2862, allocations: 0 / 0.7968 GB, free: 2.027 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.2862, allocations: 0 / 0.7968 GB, free: 2.027 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006637/0.2869, allocations: 423.9 kB / 0.7972 GB, free: 1.594 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.475e-05/0.2869, allocations: 100.8 kB / 0.7973 GB, free: 1.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.01e-05/0.287, allocations: 12 kB / 0.7973 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.2871, allocations: 15.98 kB / 0.7973 GB, free: 1.449 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.849e-05/0.2872, allocations: 11.97 kB / 0.7973 GB, free: 1.438 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-05/0.2872, allocations: 8 kB / 0.7973 GB, free: 1.43 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.619e-05/0.2873, allocations: 120 kB / 0.7974 GB, free: 1.312 MB / 0.6075 GB Notification: Performance of sort global known variables: time 4.31e-07/0.2873, allocations: 0 / 0.7974 GB, free: 1.312 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0004862/0.2878, allocations: 99.97 kB / 0.7975 GB, free: 1.215 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.001093/0.2889, allocations: 425.7 kB / 0.7979 GB, free: 0.8984 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004634/0.2894, allocations: 187.7 kB / 0.7981 GB, free: 0.7148 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.2894, allocations: 0 / 0.7981 GB, free: 0.7148 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001721/0.2896, allocations: 83.89 kB / 0.7982 GB, free: 0.6328 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003521/0.29, allocations: 32.72 kB / 0.7982 GB, free: 0.6016 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009103/0.2909, allocations: 418.2 kB / 0.7986 GB, free: 172 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004557/0.2913, allocations: 0.7243 MB / 0.7993 GB, free: 15.42 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001224/0.2915, allocations: 49.5 kB / 0.7994 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.063e-05/0.2915, allocations: 19.44 kB / 0.7994 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of SimCode: time 3.21e-07/0.2915, allocations: 0 / 0.7994 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of Templates: time 0.007531/0.2991, allocations: 3.181 MB / 0.8025 GB, free: 12.18 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: