Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Python36.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter") translateModel(Buildings.Utilities.IO.Python36.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.536/1.536, allocations: 288.4 MB / 303.7 MB, free: 8.129 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.0008823/0.0008825, allocations: 193.6 kB / 372.3 MB, free: 10.08 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.332/1.332, allocations: 205.4 MB / 0.631 GB, free: 9.746 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008702/0.0008699, allocations: 98.33 kB / 0.7444 GB, free: 5.66 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003302/0.0003302, allocations: 11.94 kB / 0.8675 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.177/0.1773, allocations: 115.3 MB / 0.9801 GB, free: 27.29 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Examples.KalmanFilter): time 0.00185/0.1792, allocations: 1.416 MB / 0.9815 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001846/0.1811, allocations: 1.737 MB / 0.9832 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.728e-05/0.1811, allocations: 3.938 kB / 0.9832 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001297/0.1813, allocations: 19.86 kB / 0.9832 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001/0.1814, allocations: 27.72 kB / 0.9833 GB, free: 24.05 MB / 0.6198 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0007557/0.1822, allocations: 269.1 kB / 0.9835 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001658/0.1823, allocations: 187.5 kB / 0.9837 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.025e-05/0.1824, allocations: 25.55 kB / 0.9837 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.696e-05/0.1825, allocations: 71.7 kB / 0.9838 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.204e-05/0.1826, allocations: 63.73 kB / 0.9838 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.83e-05/0.1826, allocations: 4 kB / 0.9839 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002891/0.1829, allocations: 235.6 kB / 0.9841 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.73e-05/0.183, allocations: 59.8 kB / 0.9841 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.711e-05/0.1831, allocations: 85.36 kB / 0.9842 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002294/0.1833, allocations: 263.8 kB / 0.9845 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.1833, allocations: 0 / 0.9845 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.182e-06/0.1833, allocations: 0 / 0.9845 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.1833, allocations: 0 / 0.9845 GB, free: 22.81 MB / 0.6198 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.0005855/0.1839, allocations: 0.4951 MB / 0.9849 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 2.842e-05/0.184, allocations: 8.031 kB / 0.985 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.966e-05/0.184, allocations: 20.75 kB / 0.985 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/0.1842, allocations: 226.5 kB / 0.9852 GB, free: 21.98 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.1842, allocations: 12.31 kB / 0.9852 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.29e-05/0.1842, allocations: 19.98 kB / 0.9852 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002431/0.1845, allocations: 160.9 kB / 0.9854 GB, free: 21.79 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.1845, allocations: 0 / 0.9854 GB, free: 21.79 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.1845, allocations: 0 / 0.9854 GB, free: 21.79 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1845, allocations: 4 kB / 0.9854 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.1847, allocations: 91.88 kB / 0.9855 GB, free: 21.69 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006504/0.1854, allocations: 428.7 kB / 0.9859 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002343/0.1856, allocations: 162.3 kB / 0.986 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.1858, allocations: 72.81 kB / 0.9861 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.989e-05/0.1858, allocations: 8 kB / 0.9861 GB, free: 20.97 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002271/0.186, allocations: 171.1 kB / 0.9863 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=20): time 1.393e-06/0.186, allocations: 0 / 0.9863 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of matching and sorting (n=20): time 0.0005281/0.1866, allocations: 321.7 kB / 0.9866 GB, free: 20.47 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/0.1866, allocations: 89.09 kB / 0.9867 GB, free: 20.36 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.1867, allocations: 170.8 kB / 0.9868 GB, free: 20.19 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.358e-05/0.1868, allocations: 41.69 kB / 0.9869 GB, free: 20.14 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.836e-05/0.1868, allocations: 112.5 kB / 0.987 GB, free: 20.03 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.748e-05/0.1869, allocations: 55.34 kB / 0.987 GB, free: 19.97 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.975e-06/0.1869, allocations: 4 kB / 0.987 GB, free: 19.97 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.756e-05/0.1869, allocations: 342.8 kB / 0.9874 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.1871, allocations: 76.52 kB / 0.9874 GB, free: 19.55 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001629/0.1873, allocations: 185.9 kB / 0.9876 GB, free: 19.32 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002925/0.1876, allocations: 275.7 kB / 0.9879 GB, free: 19.01 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1876, allocations: 0 / 0.9879 GB, free: 19.01 MB / 0.6198 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003925/0.188, allocations: 301 kB / 0.9882 GB, free: 18.71 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.188, allocations: 8 kB / 0.9882 GB, free: 18.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.188, allocations: 4 kB / 0.9882 GB, free: 18.7 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.188, allocations: 4.094 kB / 0.9882 GB, free: 18.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.1882, allocations: 43.84 kB / 0.9882 GB, free: 18.65 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.1882, allocations: 8.312 kB / 0.9882 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.891e-05/0.1883, allocations: 31.83 kB / 0.9883 GB, free: 18.61 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.1883, allocations: 12 kB / 0.9883 GB, free: 18.6 MB / 0.6198 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,$PRE.kalFil.firstTrigger,kalFil.firstTrigger,$PRE.kalFil.yR[1],kalFil.yR[1],$PRE.kalFil.uRIntPre[1],kalFil.uRIntPre[1],$PRE.ran.firstTrigger,ran.firstTrigger,$PRE.ran.uRIntPre[1],ran.uRIntPre[1],$whenCondition1,ran.sampleTrigger,$PRE.ran.uRWri[1],ran.uRWri[1],$PRE.ran.uRWri_temp[1],ran.uRWri_temp[1],$whenCondition2,kalFil.sampleTrigger,$PRE.ran.yR[1],ran.yR[1],$PRE.kalFil.uRWri[1],kalFil.uRWri[1],$PRE.kalFil.uRWri_temp[1],kalFil.uRWri_temp[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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.1884, allocations: 164.7 kB / 0.9884 GB, free: 18.43 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.28e-05/0.1884, allocations: 15.81 kB / 0.9884 GB, free: 18.42 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.71e-05/0.1885, allocations: 21.86 kB / 0.9885 GB, free: 18.4 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.1885, allocations: 8 kB / 0.9885 GB, free: 18.39 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1885, allocations: 0 / 0.9885 GB, free: 18.39 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.1885, allocations: 0 / 0.9885 GB, free: 18.39 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006603/0.1892, allocations: 0.5894 MB / 0.989 GB, free: 17.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1892, allocations: 7.922 kB / 0.989 GB, free: 17.74 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.088e-05/0.1893, allocations: 16 kB / 0.9891 GB, free: 17.73 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1893, allocations: 0 / 0.9891 GB, free: 17.73 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.1893, allocations: 7.984 kB / 0.9891 GB, free: 17.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.1893, allocations: 7.938 kB / 0.9891 GB, free: 17.71 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1893, allocations: 0 / 0.9891 GB, free: 17.71 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000521/0.1899, allocations: 450.3 kB / 0.9895 GB, free: 17.25 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.91e-05/0.1899, allocations: 96.89 kB / 0.9896 GB, free: 17.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.1899, allocations: 11.92 kB / 0.9896 GB, free: 17.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.1901, allocations: 24.05 kB / 0.9896 GB, free: 17.11 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.369e-05/0.1901, allocations: 7.984 kB / 0.9896 GB, free: 17.1 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.208e-05/0.1902, allocations: 15.98 kB / 0.9897 GB, free: 17.08 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.924e-05/0.1902, allocations: 119.2 kB / 0.9898 GB, free: 16.96 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1902, allocations: 0 / 0.9898 GB, free: 16.96 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003903/0.1906, allocations: 111.9 kB / 0.9899 GB, free: 16.86 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007046/0.1913, allocations: 430.6 kB / 0.9903 GB, free: 16.54 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003562/0.1917, allocations: 204.3 kB / 0.9905 GB, free: 16.34 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1917, allocations: 4.125 kB / 0.9905 GB, free: 16.33 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001454/0.1919, allocations: 85.95 kB / 0.9906 GB, free: 16.25 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/0.1922, allocations: 28.16 kB / 0.9906 GB, free: 16.22 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006188/0.1928, allocations: 427 kB / 0.991 GB, free: 15.78 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001258/0.1929, allocations: 0.732 MB / 0.9917 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.842e-05/0.193, allocations: 45.5 kB / 0.9918 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.165e-05/0.1931, allocations: 23.44 kB / 0.9918 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of SimCode: time 2.3e-07/0.1931, allocations: 0 / 0.9918 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of Templates: time 0.005814/0.1989, allocations: 3.25 MB / 0.995 GB, free: 11.71 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe 2>&1)