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.001114/0.001114, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001097/0.001097, allocations: 191.6 kB / 16.14 MB, free: 6.707 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.113/1.113, allocations: 205.1 MB / 222 MB, free: 4.746 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.479/1.479, allocations: 292.3 MB / 0.5484 GB, free: 13.68 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.001267/0.001267, allocations: 64.77 kB / 0.6709 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1582/0.1595, allocations: 114.6 MB / 0.7828 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002549/0.1621, allocations: 1.786 MB / 0.7845 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002086/0.1642, allocations: 1.803 MB / 0.7863 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.493e-05/0.1642, allocations: 4 kB / 0.7863 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.1644, allocations: 15.86 kB / 0.7863 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.67e-05/0.1645, allocations: 23.84 kB / 0.7863 GB, free: 10.26 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.0008384/0.1653, allocations: 273.1 kB / 0.7866 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001963/0.1655, allocations: 183.5 kB / 0.7868 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.261e-05/0.1656, allocations: 21.5 kB / 0.7868 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/0.1657, allocations: 71.69 kB / 0.7869 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.037e-05/0.1658, allocations: 79.61 kB / 0.7869 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.133e-05/0.1658, allocations: 8 kB / 0.787 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000347/0.1662, allocations: 255.6 kB / 0.7872 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.55e-05/0.1663, allocations: 39.89 kB / 0.7872 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.666e-05/0.1664, allocations: 67.58 kB / 0.7873 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003554/0.1667, allocations: 347.2 kB / 0.7876 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1667, allocations: 4 kB / 0.7876 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of FrontEnd: time 7.32e-07/0.1667, allocations: 0 / 0.7876 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.407e-06/0.1667, allocations: 0 / 0.7876 GB, free: 8.945 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.0006799/0.1674, allocations: 0.5067 MB / 0.7881 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.027e-05/0.1675, allocations: 8.031 kB / 0.7881 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.407e-05/0.1675, allocations: 42.73 kB / 0.7882 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.273e-05/0.1676, allocations: 16.75 kB / 0.7882 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001828/0.1677, allocations: 227.9 kB / 0.7884 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.1678, allocations: 16.3 kB / 0.7884 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.211e-05/0.1678, allocations: 15.84 kB / 0.7884 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002538/0.1681, allocations: 143.3 kB / 0.7886 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-06/0.1681, allocations: 3.938 kB / 0.7886 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.1681, allocations: 8 kB / 0.7886 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.1681, allocations: 0 / 0.7886 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001807/0.1683, allocations: 74.52 kB / 0.7887 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006751/0.169, allocations: 412.5 kB / 0.7891 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002637/0.1693, allocations: 146.6 kB / 0.7892 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.1694, allocations: 60.83 kB / 0.7893 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.1694, allocations: 8 kB / 0.7893 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002439/0.1697, allocations: 153 kB / 0.7894 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.332e-06/0.1697, allocations: 0 / 0.7894 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18): time 0.0005484/0.1702, allocations: 287.8 kB / 0.7897 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.1703, allocations: 89.09 kB / 0.7898 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.1704, allocations: 171.2 kB / 0.7899 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.776e-05/0.1704, allocations: 37.69 kB / 0.79 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.726e-05/0.1705, allocations: 104.5 kB / 0.7901 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.354e-05/0.1705, allocations: 51.42 kB / 0.7901 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.21e-05/0.1706, allocations: 53.7 kB / 0.7902 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001025/0.1707, allocations: 334.9 kB / 0.7905 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.1709, allocations: 63.95 kB / 0.7905 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001827/0.171, allocations: 168.8 kB / 0.7907 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.1714, allocations: 243.8 kB / 0.7909 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1714, allocations: 0 / 0.7909 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003984/0.1718, allocations: 269 kB / 0.7912 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.1718, allocations: 8 kB / 0.7912 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1718, allocations: 4 kB / 0.7912 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.1718, allocations: 4.375 kB / 0.7912 GB, free: 4.941 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.172, allocations: 39.92 kB / 0.7912 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.172, allocations: 19.86 kB / 0.7913 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.1721, allocations: 19.84 kB / 0.7913 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.1721, allocations: 15.94 kB / 0.7913 GB, free: 4.848 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.0001247/0.1722, allocations: 147.5 kB / 0.7914 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.093e-05/0.1723, allocations: 15.81 kB / 0.7915 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.111e-05/0.1723, allocations: 29.86 kB / 0.7915 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1723, allocations: 0 / 0.7915 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.1723, allocations: 3.938 kB / 0.7915 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.1723, allocations: 4 kB / 0.7915 GB, free: 4.641 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007124/0.1731, allocations: 0.5412 MB / 0.792 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1731, allocations: 0 / 0.792 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.206e-05/0.1732, allocations: 19.98 kB / 0.792 GB, free: 4.023 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.1732, allocations: 11.94 kB / 0.7921 GB, free: 4.012 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.802e-05/0.1732, allocations: 3.984 kB / 0.7921 GB, free: 4.008 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.1732, allocations: 4 kB / 0.7921 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1732, allocations: 3.938 kB / 0.7921 GB, free: 4 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005651/0.1738, allocations: 410.3 kB / 0.7925 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.234e-05/0.1739, allocations: 104.8 kB / 0.7926 GB, free: 3.461 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.098e-05/0.1739, allocations: 4 kB / 0.7926 GB, free: 3.457 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.174, allocations: 11.98 kB / 0.7926 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.184e-05/0.1741, allocations: 11.98 kB / 0.7926 GB, free: 3.434 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.168e-05/0.1741, allocations: 7.984 kB / 0.7926 GB, free: 3.426 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.411e-05/0.1742, allocations: 120 kB / 0.7927 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.61e-07/0.1742, allocations: 0 / 0.7927 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003832/0.1746, allocations: 104 kB / 0.7928 GB, free: 3.207 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.001398/0.176, allocations: 1.251 MB / 0.794 GB, free: 2.035 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003388/0.1763, allocations: 186.6 kB / 0.7942 GB, free: 1.855 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.1763, allocations: 0 / 0.7942 GB, free: 1.855 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.1765, allocations: 84.58 kB / 0.7943 GB, free: 1.773 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.1768, allocations: 24.05 kB / 0.7943 GB, free: 1.75 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.002317/0.1791, allocations: 2.315 MB / 0.7966 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002368/0.1794, allocations: 0.7166 MB / 0.7973 GB, free: 14.53 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 9.77e-05/0.1795, allocations: 53.44 kB / 0.7973 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.091e-05/0.1795, allocations: 43.42 kB / 0.7974 GB, free: 14.44 MB / 0.6231 GB Notification: Performance of SimCode: time 2.81e-07/0.1795, allocations: 0 / 0.7974 GB, free: 14.44 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3917/0.5712, allocations: 5.091 MB / 0.8023 GB, free: 9.477 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/0.5714, allocations: 287.3 kB / 0.8026 GB, free: 9.094 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.652/2.223, allocations: 4 kB / 0.8026 GB, free: 9.09 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)