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: "" <> buildModelFMU(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,fileNamePrefix="Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Examples_KalmanFilter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,fileNamePrefix="Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Examples_KalmanFilter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 109.4 kB / 15.69 MB, free: 128 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.001303/0.001303, allocations: 188.4 kB / 16.62 MB, free: 6.582 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.34/1.34, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.622/1.622, allocations: 292.3 MB / 0.549 GB, free: 12.76 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.001377/0.001377, allocations: 65.05 kB / 0.6718 GB, free: 26.04 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.2072, allocations: 114.6 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002849/0.21, allocations: 1.718 MB / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002265/0.2123, allocations: 1.824 MB / 0.7871 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.374e-05/0.2124, allocations: 0 / 0.7871 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001415/0.2125, allocations: 27.78 kB / 0.7871 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001086/0.2127, allocations: 23.73 kB / 0.7871 GB, free: 9.656 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.001006/0.2137, allocations: 309.7 kB / 0.7874 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002113/0.2139, allocations: 191.5 kB / 0.7876 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.825e-05/0.214, allocations: 21.5 kB / 0.7876 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.2141, allocations: 87.67 kB / 0.7877 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000103/0.2142, allocations: 67.69 kB / 0.7878 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.109e-05/0.2143, allocations: 8 kB / 0.7878 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003714/0.2146, allocations: 291.4 kB / 0.7881 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.806e-05/0.2147, allocations: 51.88 kB / 0.7881 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.272e-05/0.2148, allocations: 59.66 kB / 0.7882 GB, free: 8.594 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003742/0.2152, allocations: 363.1 kB / 0.7885 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2152, allocations: 0 / 0.7885 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2152, allocations: 0 / 0.7885 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.897e-06/0.2152, allocations: 3.938 kB / 0.7885 GB, free: 8.234 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.0007197/0.2159, allocations: 0.5027 MB / 0.789 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.216, allocations: 8.031 kB / 0.789 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.978e-05/0.216, allocations: 46.73 kB / 0.7891 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.547e-05/0.2161, allocations: 16.75 kB / 0.7891 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001853/0.2163, allocations: 226.8 kB / 0.7893 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.2163, allocations: 8.359 kB / 0.7893 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.184e-05/0.2163, allocations: 23.84 kB / 0.7893 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002568/0.2166, allocations: 139.3 kB / 0.7895 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.2166, allocations: 0 / 0.7895 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.2166, allocations: 8 kB / 0.7895 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.2166, allocations: 0 / 0.7895 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001838/0.2168, allocations: 79.88 kB / 0.7896 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006966/0.2175, allocations: 404.6 kB / 0.7899 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002654/0.2178, allocations: 150.6 kB / 0.7901 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.2179, allocations: 60.83 kB / 0.7901 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.218, allocations: 4 kB / 0.7901 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.2182, allocations: 153 kB / 0.7903 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.373e-06/0.2182, allocations: 0 / 0.7903 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18): time 0.0005737/0.2188, allocations: 285.2 kB / 0.7906 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.2189, allocations: 93.22 kB / 0.7907 GB, free: 5.852 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.219, allocations: 169.3 kB / 0.7908 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.63e-05/0.219, allocations: 33.7 kB / 0.7908 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.511e-05/0.2191, allocations: 112.5 kB / 0.791 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.416e-05/0.2191, allocations: 47.45 kB / 0.791 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.899e-05/0.2192, allocations: 57.69 kB / 0.7911 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.6e-05/0.2193, allocations: 326.8 kB / 0.7914 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.2194, allocations: 67.95 kB / 0.7914 GB, free: 5.016 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001801/0.2196, allocations: 172.8 kB / 0.7916 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000306/0.2199, allocations: 247.8 kB / 0.7918 GB, free: 4.516 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.22, allocations: 4 kB / 0.7918 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004022/0.2204, allocations: 269 kB / 0.7921 GB, free: 4.242 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.2204, allocations: 10.97 kB / 0.7921 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.2204, allocations: 4 kB / 0.7921 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.2204, allocations: 4 kB / 0.7921 GB, free: 4.227 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.2205, allocations: 40.3 kB / 0.7922 GB, free: 4.188 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.2206, allocations: 15.88 kB / 0.7922 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.995e-05/0.2207, allocations: 23.83 kB / 0.7922 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/0.2207, allocations: 8 kB / 0.7922 GB, free: 4.141 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.0001251/0.2208, allocations: 151.5 kB / 0.7923 GB, free: 3.984 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.042e-05/0.2209, allocations: 15.81 kB / 0.7924 GB, free: 3.969 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.483e-05/0.2209, allocations: 21.86 kB / 0.7924 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.2209, allocations: 7.938 kB / 0.7924 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.2209, allocations: 3.938 kB / 0.7924 GB, free: 3.934 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.2209, allocations: 4 kB / 0.7924 GB, free: 3.93 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007386/0.2217, allocations: 0.5412 MB / 0.7929 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.207e-06/0.2217, allocations: 4 kB / 0.7929 GB, free: 3.328 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.123e-05/0.2218, allocations: 11.98 kB / 0.7929 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.2218, allocations: 11.88 kB / 0.7929 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.2218, allocations: 7.984 kB / 0.793 GB, free: 3.297 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.2218, allocations: 8 kB / 0.793 GB, free: 3.289 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2218, allocations: 0 / 0.793 GB, free: 3.289 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005687/0.2224, allocations: 404 kB / 0.7933 GB, free: 2.875 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.762e-05/0.2225, allocations: 100.8 kB / 0.7934 GB, free: 2.758 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.158e-05/0.2225, allocations: 4 kB / 0.7934 GB, free: 2.754 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.2226, allocations: 16.05 kB / 0.7935 GB, free: 2.738 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.644e-05/0.2227, allocations: 11.98 kB / 0.7935 GB, free: 2.727 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.218e-05/0.2227, allocations: 11.98 kB / 0.7935 GB, free: 2.715 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.807e-05/0.2228, allocations: 118.1 kB / 0.7936 GB, free: 2.602 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2228, allocations: 0 / 0.7936 GB, free: 2.602 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0004023/0.2232, allocations: 103.9 kB / 0.7937 GB, free: 2.5 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.001503/0.2247, allocations: 1.256 MB / 0.7949 GB, free: 1.328 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003676/0.2251, allocations: 191.5 kB / 0.7951 GB, free: 1.141 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2251, allocations: 0 / 0.7951 GB, free: 1.141 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001524/0.2253, allocations: 83.88 kB / 0.7952 GB, free: 1.059 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.2256, allocations: 16.8 kB / 0.7952 GB, free: 1.043 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.228, allocations: 2.283 MB / 0.7974 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002444/0.2282, allocations: 0.7202 MB / 0.7981 GB, free: 13.84 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001041/0.2283, allocations: 57.52 kB / 0.7982 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.388e-05/0.2284, allocations: 47.42 kB / 0.7982 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of SimCode: time 2.2e-07/0.2284, allocations: 0 / 0.7982 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02205/0.2505, allocations: 5.32 MB / 0.8034 GB, free: 8.523 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.099/7.349, allocations: 11.95 kB / 0.8034 GB, free: 8.512 MB / 0.6231 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Examples_KalmanFilter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Examples_KalmanFilter.fmu > Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1)