Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-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.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Python36.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Python36.Examples.KalmanFilter") translateModel(Buildings.Utilities.IO.Python36.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Python36.Examples.KalmanFilter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.549/1.549, allocations: 292.3 MB / 308.1 MB, free: 4.277 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.001491/0.001491, allocations: 175.9 kB / 376.9 MB, free: 1.816 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.267/1.267, allocations: 205.1 MB / 0.6354 GB, free: 9.809 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.0009274/0.0009275, allocations: 102.4 kB / 0.748 GB, free: 61.09 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0009411/0.0009411, allocations: 52.06 kB / 0.8704 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2088/0.2097, allocations: 114.6 MB / 0.9822 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Examples.KalmanFilter): time 0.003234/0.213, allocations: 1.781 MB / 0.984 GB, free: 8.574 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002612/0.2157, allocations: 1.838 MB / 0.9858 GB, free: 6.723 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.856e-05/0.2158, allocations: 7.938 kB / 0.9858 GB, free: 6.715 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.216, allocations: 19.86 kB / 0.9858 GB, free: 6.695 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001402/0.2161, allocations: 23.84 kB / 0.9858 GB, free: 6.672 MB / 0.7136 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Utilities/IO/Python36/Functions/exchange.mo:2:1-113:13:writable] Warning: Pure function ‘Buildings.Utilities.IO.Python36.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.001246/0.2174, allocations: 285.2 kB / 0.9861 GB, free: 6.395 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0002947/0.2177, allocations: 207.4 kB / 0.9863 GB, free: 6.191 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.2178, allocations: 33.47 kB / 0.9863 GB, free: 6.16 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.218, allocations: 75.7 kB / 0.9864 GB, free: 6.086 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001182/0.2181, allocations: 71.66 kB / 0.9864 GB, free: 6.016 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.629e-05/0.2181, allocations: 8 kB / 0.9865 GB, free: 6.008 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004329/0.2186, allocations: 251.6 kB / 0.9867 GB, free: 5.762 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.2187, allocations: 55.86 kB / 0.9867 GB, free: 5.707 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 7.591e-05/0.2188, allocations: 67.59 kB / 0.9868 GB, free: 5.641 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0004735/0.2192, allocations: 363.4 kB / 0.9872 GB, free: 5.285 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2192, allocations: 7.938 kB / 0.9872 GB, free: 5.277 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2193, allocations: 0 / 0.9872 GB, free: 5.277 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 8.065e-06/0.2193, allocations: 0 / 0.9872 GB, free: 5.277 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.000857/0.2201, allocations: 0.5146 MB / 0.9877 GB, free: 4.715 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.2202, allocations: 8.031 kB / 0.9877 GB, free: 4.707 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.796e-05/0.2202, allocations: 24.75 kB / 0.9877 GB, free: 4.684 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.2205, allocations: 232.6 kB / 0.9879 GB, free: 4.418 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.2205, allocations: 16.3 kB / 0.9879 GB, free: 4.402 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.85e-05/0.2205, allocations: 12 kB / 0.9879 GB, free: 4.391 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.2208, allocations: 147.3 kB / 0.9881 GB, free: 4.234 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.2209, allocations: 0 / 0.9881 GB, free: 4.234 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.765e-05/0.2209, allocations: 8 kB / 0.9881 GB, free: 4.227 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.2209, allocations: 0 / 0.9881 GB, free: 4.227 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002083/0.2211, allocations: 87.81 kB / 0.9882 GB, free: 4.141 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008201/0.2219, allocations: 424.7 kB / 0.9886 GB, free: 3.676 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002729/0.2222, allocations: 154.4 kB / 0.9887 GB, free: 3.516 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001389/0.2224, allocations: 72.81 kB / 0.9888 GB, free: 3.441 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.2224, allocations: 4 kB / 0.9888 GB, free: 3.438 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00027/0.2227, allocations: 163.2 kB / 0.989 GB, free: 3.262 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=20): time 1.553e-06/0.2227, allocations: 0 / 0.989 GB, free: 3.262 MB / 0.7136 GB Notification: Performance of matching and sorting (n=20): time 0.0006385/0.2233, allocations: 309.5 kB / 0.9893 GB, free: 2.953 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.42e-05/0.2234, allocations: 93.09 kB / 0.9893 GB, free: 2.844 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.2236, allocations: 178.2 kB / 0.9895 GB, free: 2.66 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.2236, allocations: 37.69 kB / 0.9895 GB, free: 2.617 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.307e-05/0.2237, allocations: 112.6 kB / 0.9897 GB, free: 2.504 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 5.371e-05/0.2237, allocations: 51.34 kB / 0.9897 GB, free: 2.453 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.742e-05/0.2238, allocations: 62.11 kB / 0.9898 GB, free: 2.387 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.2239, allocations: 334.8 kB / 0.9901 GB, free: 2.051 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.2241, allocations: 80.5 kB / 0.9902 GB, free: 1.973 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002056/0.2243, allocations: 181.8 kB / 0.9903 GB, free: 1.75 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003512/0.2246, allocations: 267.7 kB / 0.9906 GB, free: 1.445 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.2247, allocations: 4 kB / 0.9906 GB, free: 1.441 MB / 0.7136 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004704/0.2251, allocations: 293 kB / 0.9909 GB, free: 1.148 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.2252, allocations: 4.375 kB / 0.9909 GB, free: 1.145 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.2252, allocations: 8 kB / 0.9909 GB, free: 1.137 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.2252, allocations: 4 kB / 0.9909 GB, free: 1.133 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.2253, allocations: 39.92 kB / 0.9909 GB, free: 1.094 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.2254, allocations: 15.92 kB / 0.9909 GB, free: 1.078 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.2255, allocations: 19.84 kB / 0.991 GB, free: 1.059 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.873e-05/0.2255, allocations: 12.06 kB / 0.991 GB, free: 1.047 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 25 ($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_temp[1],$PRE.ran.uRWri_temp[1],ran.uRWri[1],$PRE.ran.uRWri[1],kalFil.sampleTrigger,$whenCondition2,kalFil.uRWri_temp[1],$PRE.kalFil.uRWri_temp[1],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 (34): * Single equations (assignments): 34 * 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.0001494/0.2257, allocations: 167.9 kB / 0.9911 GB, free: 0.875 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.751e-05/0.2257, allocations: 27.78 kB / 0.9912 GB, free: 0.8477 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.236e-05/0.2257, allocations: 17.88 kB / 0.9912 GB, free: 0.832 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2258, allocations: 0 / 0.9912 GB, free: 0.832 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.2258, allocations: 4 kB / 0.9912 GB, free: 0.8281 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.2258, allocations: 3.984 kB / 0.9912 GB, free: 0.8242 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007742/0.2266, allocations: 0.5744 MB / 0.9917 GB, free: 200 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2266, allocations: 8 kB / 0.9918 GB, free: 192 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.356e-05/0.2267, allocations: 11.98 kB / 0.9918 GB, free: 180 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.2267, allocations: 7.938 kB / 0.9918 GB, free: 172 kB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.219e-05/0.2267, allocations: 11.98 kB / 0.9918 GB, free: 160 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.2267, allocations: 3.938 kB / 0.9918 GB, free: 156 kB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2267, allocations: 0 / 0.9918 GB, free: 156 kB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/0.2281, allocations: 1.389 MB / 0.9931 GB, free: 14.62 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.747e-05/0.2282, allocations: 92.89 kB / 0.9932 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.2282, allocations: 15.98 kB / 0.9932 GB, free: 14.5 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.2283, allocations: 12.11 kB / 0.9933 GB, free: 14.48 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.637e-05/0.2284, allocations: 11.98 kB / 0.9933 GB, free: 14.47 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.58e-05/0.2284, allocations: 15.98 kB / 0.9933 GB, free: 14.46 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 8.23e-05/0.2285, allocations: 119.2 kB / 0.9934 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1e-07/0.2285, allocations: 96 / 0.9934 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004924/0.229, allocations: 119.9 kB / 0.9935 GB, free: 14.22 MB / 0.7292 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: 15 (kalFil.sampleTrigger,ran.sampleTrigger,$whenCondition2,$whenCondition1,ran.firstTrigger,ran.yR[1],ran.uRIntPre[1],ran.uRWri[1],ran.uRWri_temp[1],kalFil.firstTrigger,kalFil.yR[1],kalFil.uRIntPre[1],kalFil.uRWri[1],kalFil.uRWri_temp[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 (20): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.0007692/0.2298, allocations: 430.9 kB / 0.9939 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003838/0.2302, allocations: 204.3 kB / 0.9941 GB, free: 13.66 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2302, allocations: 0 / 0.9941 GB, free: 13.66 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001686/0.2304, allocations: 87.95 kB / 0.9942 GB, free: 13.57 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003024/0.2307, allocations: 27.92 kB / 0.9942 GB, free: 13.55 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008383/0.2315, allocations: 0.5924 MB / 0.9948 GB, free: 12.91 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.2318, allocations: 0.7398 MB / 0.9955 GB, free: 12.14 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001078/0.2319, allocations: 49.44 kB / 0.9956 GB, free: 12.1 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.439e-05/0.2319, allocations: 15.44 kB / 0.9956 GB, free: 12.08 MB / 0.7292 GB Notification: Performance of SimCode: time 2.1e-07/0.2319, allocations: 4 kB / 0.9956 GB, free: 12.08 MB / 0.7292 GB Notification: Performance of Templates: time 0.006338/0.2383, allocations: 3.426 MB / 0.9989 GB, free: 8.664 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.makefile (rm -f Buildings_8_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.sim & ./Buildings_8_Buildings.Utilities.IO.Python36.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe 2>&1)