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.001241/0.001242, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001066/0.001066, allocations: 196.6 kB / 16.25 MB, free: 6.625 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.192/1.192, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.501/1.501, allocations: 292.3 MB / 0.5486 GB, free: 13.62 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.001242/0.001242, allocations: 68.19 kB / 0.6711 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1723/0.1735, allocations: 114.6 MB / 0.783 GB, free: 13.79 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002895/0.1765, allocations: 1.782 MB / 0.7847 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002321/0.1788, allocations: 1.784 MB / 0.7865 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.971e-05/0.1789, allocations: 0 / 0.7865 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001496/0.1791, allocations: 31.78 kB / 0.7865 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001098/0.1792, allocations: 15.86 kB / 0.7865 GB, free: 10.14 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.001112/0.1803, allocations: 281.6 kB / 0.7868 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002359/0.1806, allocations: 183.6 kB / 0.7869 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.1807, allocations: 37.45 kB / 0.787 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.1808, allocations: 79.69 kB / 0.7871 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/0.1809, allocations: 75.67 kB / 0.7871 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.289e-05/0.181, allocations: 8 kB / 0.7871 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004211/0.1814, allocations: 263.6 kB / 0.7874 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.965e-05/0.1815, allocations: 43.89 kB / 0.7874 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.368e-05/0.1816, allocations: 71.59 kB / 0.7875 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004645/0.1821, allocations: 351.2 kB / 0.7878 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 1.412e-05/0.1821, allocations: 3.938 kB / 0.7878 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.212e-06/0.1821, allocations: 3.938 kB / 0.7878 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.1821, allocations: 0 / 0.7878 GB, free: 8.773 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.0008152/0.1829, allocations: 0.5106 MB / 0.7883 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.183, allocations: 12.03 kB / 0.7884 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.515e-05/0.183, allocations: 42.73 kB / 0.7884 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.71e-05/0.1831, allocations: 16.75 kB / 0.7884 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.1833, allocations: 224 kB / 0.7886 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.1833, allocations: 12.36 kB / 0.7886 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.298e-05/0.1834, allocations: 23.84 kB / 0.7887 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002793/0.1836, allocations: 143.2 kB / 0.7888 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1837, allocations: 3.938 kB / 0.7888 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.1837, allocations: 0 / 0.7888 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.1837, allocations: 4 kB / 0.7888 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001896/0.1839, allocations: 75.88 kB / 0.7889 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007776/0.1847, allocations: 408.6 kB / 0.7893 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003004/0.185, allocations: 146.6 kB / 0.7894 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001293/0.1851, allocations: 68.81 kB / 0.7895 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.1852, allocations: 0 / 0.7895 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002614/0.1854, allocations: 159.5 kB / 0.7896 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.653e-06/0.1854, allocations: 0 / 0.7896 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18): time 0.0005678/0.186, allocations: 281.4 kB / 0.7899 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.938e-05/0.1861, allocations: 93.03 kB / 0.79 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.1862, allocations: 171.2 kB / 0.7901 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.776e-05/0.1862, allocations: 37.7 kB / 0.7902 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.577e-05/0.1863, allocations: 108.5 kB / 0.7903 GB, free: 6.043 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.409e-05/0.1864, allocations: 43.45 kB / 0.7903 GB, free: 6 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.288e-05/0.1864, allocations: 53.69 kB / 0.7904 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.1865, allocations: 330.9 kB / 0.7907 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.1867, allocations: 63.95 kB / 0.7907 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.1869, allocations: 168.8 kB / 0.7909 GB, free: 5.336 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003106/0.1872, allocations: 239.8 kB / 0.7911 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1872, allocations: 0 / 0.7911 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000415/0.1876, allocations: 277 kB / 0.7914 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.1877, allocations: 8 kB / 0.7914 GB, free: 4.773 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1877, allocations: 0 / 0.7914 GB, free: 4.773 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.1877, allocations: 8.375 kB / 0.7914 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.1878, allocations: 39.92 kB / 0.7915 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.1878, allocations: 15.94 kB / 0.7915 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.188, allocations: 23.83 kB / 0.7915 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.877e-05/0.188, allocations: 16 kB / 0.7915 GB, free: 4.672 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.0001313/0.1881, allocations: 151.5 kB / 0.7917 GB, free: 4.516 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.29e-05/0.1882, allocations: 15.81 kB / 0.7917 GB, free: 4.5 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.385e-05/0.1882, allocations: 25.86 kB / 0.7917 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.1882, allocations: 4 kB / 0.7917 GB, free: 4.469 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.1882, allocations: 3.938 kB / 0.7917 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1882, allocations: 0 / 0.7917 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007552/0.189, allocations: 0.5479 MB / 0.7922 GB, free: 3.863 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.189, allocations: 0 / 0.7922 GB, free: 3.863 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.533e-05/0.1891, allocations: 19.92 kB / 0.7923 GB, free: 3.844 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.1891, allocations: 7.938 kB / 0.7923 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.136e-05/0.1891, allocations: 11.98 kB / 0.7923 GB, free: 3.824 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1891, allocations: 0 / 0.7923 GB, free: 3.824 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1892, allocations: 7.938 kB / 0.7923 GB, free: 3.816 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005722/0.1897, allocations: 399.9 kB / 0.7927 GB, free: 3.406 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.322e-05/0.1898, allocations: 100.9 kB / 0.7928 GB, free: 3.289 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.1898, allocations: 11.98 kB / 0.7928 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.19, allocations: 11.98 kB / 0.7928 GB, free: 3.266 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.886e-05/0.19, allocations: 11.98 kB / 0.7928 GB, free: 3.254 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.222e-05/0.19, allocations: 11.98 kB / 0.7928 GB, free: 3.242 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.509e-05/0.1901, allocations: 120 kB / 0.7929 GB, free: 3.125 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1901, allocations: 0 / 0.7929 GB, free: 3.125 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000412/0.1905, allocations: 95.98 kB / 0.793 GB, free: 3.031 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.001486/0.192, allocations: 1.264 MB / 0.7942 GB, free: 1.848 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003844/0.1924, allocations: 202.4 kB / 0.7944 GB, free: 1.652 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1924, allocations: 0 / 0.7944 GB, free: 1.652 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000151/0.1926, allocations: 80.64 kB / 0.7945 GB, free: 1.574 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.1929, allocations: 24.05 kB / 0.7945 GB, free: 1.551 MB / 0.6075 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/legal.html") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002479/0.1954, allocations: 2.32 MB / 0.7968 GB, free: 15.07 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002661/0.1957, allocations: 0.7281 MB / 0.7975 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001101/0.1958, allocations: 53.38 kB / 0.7976 GB, free: 14.27 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.54e-05/0.1959, allocations: 47.42 kB / 0.7976 GB, free: 14.22 MB / 0.6231 GB Notification: Performance of SimCode: time 2.8e-07/0.1959, allocations: 0 / 0.7976 GB, free: 14.22 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3992/0.5951, allocations: 5.186 MB / 0.8027 GB, free: 9.145 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002543/0.5954, allocations: 287.4 kB / 0.803 GB, free: 8.762 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.746/2.342, allocations: 7.156 kB / 0.803 GB, free: 8.758 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)