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.00119/0.00119, allocations: 108 kB / 15.61 MB, free: 152 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.001199/0.001199, allocations: 194.2 kB / 16.53 MB, free: 6.664 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.219/1.219, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.539/1.539, 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.001305/0.001305, allocations: 69.16 kB / 0.6716 GB, free: 26.34 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1673, allocations: 114.6 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002762/0.1701, allocations: 1.716 MB / 0.7852 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002232/0.1724, allocations: 1.816 MB / 0.7869 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.153e-05/0.1725, allocations: 0 / 0.7869 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.1726, allocations: 23.8 kB / 0.787 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.1727, allocations: 35.66 kB / 0.787 GB, free: 9.773 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.0009994/0.1737, allocations: 309.4 kB / 0.7873 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002053/0.174, allocations: 183.6 kB / 0.7875 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.274e-05/0.1741, allocations: 37.48 kB / 0.7875 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/0.1742, allocations: 75.69 kB / 0.7876 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001/0.1743, allocations: 71.67 kB / 0.7876 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.46e-05/0.1743, allocations: 12 kB / 0.7876 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003677/0.1747, allocations: 267.5 kB / 0.7879 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.513e-05/0.1748, allocations: 47.89 kB / 0.7879 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.802e-05/0.1749, allocations: 59.66 kB / 0.788 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000379/0.1753, allocations: 355.2 kB / 0.7883 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.1753, allocations: 0 / 0.7883 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.302e-06/0.1753, allocations: 7.938 kB / 0.7884 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.345e-06/0.1753, allocations: 0 / 0.7884 GB, free: 8.383 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.0006861/0.176, allocations: 0.5066 MB / 0.7888 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.176, allocations: 12.03 kB / 0.7889 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.766e-05/0.1761, allocations: 38.73 kB / 0.7889 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.181e-05/0.1761, allocations: 24.75 kB / 0.7889 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001818/0.1763, allocations: 222.8 kB / 0.7891 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.414e-05/0.1763, allocations: 12.38 kB / 0.7891 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.193e-05/0.1764, allocations: 15.84 kB / 0.7892 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002495/0.1766, allocations: 139.3 kB / 0.7893 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.1766, allocations: 0 / 0.7893 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.1767, allocations: 7.984 kB / 0.7893 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.1767, allocations: 4 kB / 0.7893 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000183/0.1769, allocations: 71.95 kB / 0.7894 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006579/0.1775, allocations: 412.5 kB / 0.7898 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002704/0.1778, allocations: 150.6 kB / 0.7899 GB, free: 6.625 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.1779, allocations: 64.83 kB / 0.79 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.178, allocations: 7.969 kB / 0.79 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002413/0.1782, allocations: 151.6 kB / 0.7901 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.263e-06/0.1782, allocations: 4 kB / 0.7901 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18): time 0.0005574/0.1788, allocations: 285.2 kB / 0.7904 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.252e-05/0.1788, allocations: 81.11 kB / 0.7905 GB, free: 6 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.179, allocations: 173.3 kB / 0.7906 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.179, allocations: 33.7 kB / 0.7907 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.205e-05/0.1791, allocations: 112.5 kB / 0.7908 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.668e-05/0.1791, allocations: 55.56 kB / 0.7908 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.125e-05/0.1792, allocations: 49.7 kB / 0.7909 GB, free: 5.555 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.832e-05/0.1793, allocations: 330.8 kB / 0.7912 GB, free: 5.223 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.1794, allocations: 63.95 kB / 0.7913 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.1796, allocations: 180.8 kB / 0.7914 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003036/0.1799, allocations: 243.8 kB / 0.7917 GB, free: 4.656 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1799, allocations: 4 kB / 0.7917 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003952/0.1803, allocations: 257.4 kB / 0.7919 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.1803, allocations: 8 kB / 0.7919 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.1804, allocations: 4 kB / 0.7919 GB, free: 4.383 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.1804, allocations: 4 kB / 0.7919 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.1805, allocations: 43.91 kB / 0.792 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.1805, allocations: 11.88 kB / 0.792 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.62e-05/0.1806, allocations: 19.84 kB / 0.792 GB, free: 4.305 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.1806, allocations: 8 kB / 0.792 GB, free: 4.297 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.0001225/0.1808, allocations: 159.4 kB / 0.7922 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.077e-05/0.1808, allocations: 15.81 kB / 0.7922 GB, free: 4.117 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.039e-05/0.1809, allocations: 17.88 kB / 0.7922 GB, free: 4.098 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.1809, allocations: 4 kB / 0.7922 GB, free: 4.094 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1809, allocations: 7.875 kB / 0.7922 GB, free: 4.086 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1809, allocations: 3.984 kB / 0.7922 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007038/0.1816, allocations: 0.5519 MB / 0.7927 GB, free: 3.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.1816, allocations: 0 / 0.7927 GB, free: 3.477 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.408e-05/0.1817, allocations: 19.98 kB / 0.7928 GB, free: 3.457 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.1817, allocations: 7.875 kB / 0.7928 GB, free: 3.449 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.675e-05/0.1817, allocations: 4 kB / 0.7928 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1817, allocations: 0 / 0.7928 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1817, allocations: 0 / 0.7928 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005479/0.1823, allocations: 415.9 kB / 0.7932 GB, free: 3.02 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.078e-05/0.1823, allocations: 96.83 kB / 0.7933 GB, free: 2.906 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.16e-05/0.1824, allocations: 7.984 kB / 0.7933 GB, free: 2.898 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.1825, allocations: 15.98 kB / 0.7933 GB, free: 2.883 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.051e-05/0.1826, allocations: 7.984 kB / 0.7933 GB, free: 2.875 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.1826, allocations: 12 kB / 0.7933 GB, free: 2.863 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.294e-05/0.1827, allocations: 122.1 kB / 0.7934 GB, free: 2.746 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1827, allocations: 0 / 0.7934 GB, free: 2.746 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003866/0.1831, allocations: 104 kB / 0.7935 GB, free: 2.645 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.001363/0.1844, allocations: 1.264 MB / 0.7948 GB, free: 1.461 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003617/0.1848, allocations: 192.2 kB / 0.7949 GB, free: 1.273 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1848, allocations: 0 / 0.7949 GB, free: 1.273 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001463/0.185, allocations: 79.89 kB / 0.795 GB, free: 1.195 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/0.1853, allocations: 27.97 kB / 0.795 GB, free: 1.168 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.002152/0.1874, allocations: 2.27 MB / 0.7973 GB, free: 14.73 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002122/0.1877, allocations: 0.7318 MB / 0.798 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 9.643e-05/0.1878, allocations: 53.53 kB / 0.798 GB, free: 13.93 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.109e-05/0.1878, allocations: 51.3 kB / 0.7981 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of SimCode: time 2.31e-07/0.1878, allocations: 4 kB / 0.7981 GB, free: 13.87 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.43/0.6178, allocations: 5.3 MB / 0.8033 GB, free: 8.652 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.634/7.252, allocations: 7.734 kB / 0.8033 GB, free: 8.645 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)