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.001769/0.001769, allocations: 105.4 kB / 15.7 MB, free: 24 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.001968/0.001968, allocations: 200.2 kB / 16.64 MB, free: 6.453 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.372/1.372, allocations: 205.1 MB / 222.5 MB, free: 4.566 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.619/1.619, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001646/0.001646, allocations: 66.12 kB / 0.6718 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.228, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.003437/0.2314, allocations: 1.726 MB / 0.7853 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002779/0.2343, allocations: 1.82 MB / 0.7871 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.2344, allocations: 3.938 kB / 0.7871 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001938/0.2347, allocations: 27.8 kB / 0.7871 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001646/0.2348, allocations: 27.78 kB / 0.7872 GB, free: 9.621 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.001332/0.2362, allocations: 300 kB / 0.7874 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003197/0.2365, allocations: 195.5 kB / 0.7876 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.2366, allocations: 25.5 kB / 0.7877 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001699/0.2368, allocations: 83.67 kB / 0.7877 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001406/0.237, allocations: 67.69 kB / 0.7878 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.66e-05/0.237, allocations: 8 kB / 0.7878 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004787/0.2375, allocations: 283.5 kB / 0.7881 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.883e-05/0.2376, allocations: 43.89 kB / 0.7881 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.008e-05/0.2377, allocations: 71.58 kB / 0.7882 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005363/0.2382, allocations: 363.1 kB / 0.7885 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2382, allocations: 0 / 0.7885 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2382, allocations: 3.938 kB / 0.7885 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.414e-06/0.2383, allocations: 0 / 0.7885 GB, free: 8.207 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.0008235/0.2391, allocations: 0.5027 MB / 0.789 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.2391, allocations: 12.03 kB / 0.789 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.524e-05/0.2392, allocations: 42.73 kB / 0.7891 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.119e-05/0.2393, allocations: 24.75 kB / 0.7891 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002361/0.2395, allocations: 219.5 kB / 0.7893 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.2395, allocations: 12.36 kB / 0.7893 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.069e-05/0.2396, allocations: 19.84 kB / 0.7893 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002927/0.2399, allocations: 143.2 kB / 0.7895 GB, free: 7.137 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.956e-06/0.2399, allocations: 0 / 0.7895 GB, free: 7.137 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/0.2399, allocations: 8 kB / 0.7895 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.2399, allocations: 4 kB / 0.7895 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002017/0.2401, allocations: 74.69 kB / 0.7896 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008371/0.241, allocations: 408.5 kB / 0.79 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.2413, allocations: 142.6 kB / 0.7901 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.2414, allocations: 68.81 kB / 0.7902 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.2415, allocations: 0 / 0.7902 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000285/0.2418, allocations: 155.5 kB / 0.7903 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.483e-06/0.2418, allocations: 4 kB / 0.7903 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18): time 0.0006377/0.2424, allocations: 285.2 kB / 0.7906 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/0.2425, allocations: 85.09 kB / 0.7907 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/0.2426, allocations: 169.3 kB / 0.7908 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.2427, allocations: 33.7 kB / 0.7909 GB, free: 5.613 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.821e-05/0.2427, allocations: 112.5 kB / 0.791 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.547e-05/0.2428, allocations: 51.56 kB / 0.791 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.346e-05/0.2429, allocations: 57.62 kB / 0.7911 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.243, allocations: 326.8 kB / 0.7914 GB, free: 5.055 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.2432, allocations: 67.95 kB / 0.7914 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001916/0.2434, allocations: 172.8 kB / 0.7916 GB, free: 4.773 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003332/0.2437, allocations: 247.8 kB / 0.7918 GB, free: 4.488 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.2437, allocations: 0 / 0.7918 GB, free: 4.488 MB / 0.6075 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000444/0.2442, allocations: 269.3 kB / 0.7921 GB, free: 4.219 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.2442, allocations: 8.031 kB / 0.7921 GB, free: 4.211 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.2442, allocations: 4 kB / 0.7921 GB, free: 4.207 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.2442, allocations: 4 kB / 0.7921 GB, free: 4.203 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.2444, allocations: 39.92 kB / 0.7922 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.2444, allocations: 11.88 kB / 0.7922 GB, free: 4.152 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.2445, allocations: 23.83 kB / 0.7922 GB, free: 4.129 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.863e-05/0.2445, allocations: 12 kB / 0.7922 GB, free: 4.117 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.0001392/0.2447, allocations: 155.5 kB / 0.7923 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.534e-05/0.2447, allocations: 15.81 kB / 0.7924 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.834e-05/0.2448, allocations: 25.8 kB / 0.7924 GB, free: 3.914 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-06/0.2448, allocations: 4 kB / 0.7924 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2448, allocations: 3.938 kB / 0.7924 GB, free: 3.906 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.2448, allocations: 0 / 0.7924 GB, free: 3.906 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007797/0.2456, allocations: 0.5479 MB / 0.7929 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.2456, allocations: 4 kB / 0.7929 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.741e-05/0.2457, allocations: 15.98 kB / 0.7929 GB, free: 3.285 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.2457, allocations: 3.938 kB / 0.793 GB, free: 3.281 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.2458, allocations: 11.98 kB / 0.793 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.2458, allocations: 0 / 0.793 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.2458, allocations: 0 / 0.793 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000619/0.2464, allocations: 407.9 kB / 0.7934 GB, free: 2.852 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.444e-05/0.2465, allocations: 100.8 kB / 0.7934 GB, free: 2.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.2465, allocations: 8 kB / 0.7935 GB, free: 2.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.2466, allocations: 15.98 kB / 0.7935 GB, free: 2.711 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.824e-05/0.2467, allocations: 7.984 kB / 0.7935 GB, free: 2.703 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.558e-05/0.2467, allocations: 11.98 kB / 0.7935 GB, free: 2.691 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.338e-05/0.2468, allocations: 118.1 kB / 0.7936 GB, free: 2.578 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2468, allocations: 4.062 kB / 0.7936 GB, free: 2.574 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0004492/0.2473, allocations: 103.9 kB / 0.7937 GB, free: 2.473 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.001604/0.2489, allocations: 1.262 MB / 0.7949 GB, free: 1.293 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000378/0.2493, allocations: 184.1 kB / 0.7951 GB, free: 1.113 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2493, allocations: 4.25 kB / 0.7951 GB, free: 1.109 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001606/0.2495, allocations: 75.89 kB / 0.7952 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003236/0.2498, allocations: 23.98 kB / 0.7952 GB, free: 1.012 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002518/0.2523, allocations: 2.279 MB / 0.7974 GB, free: 14.56 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.2526, allocations: 0.7241 MB / 0.7981 GB, free: 13.81 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001113/0.2527, allocations: 53.52 kB / 0.7982 GB, free: 13.76 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.062e-05/0.2528, allocations: 47.42 kB / 0.7982 GB, free: 13.72 MB / 0.6231 GB Notification: Performance of SimCode: time 4.81e-07/0.2528, allocations: 3.938 kB / 0.7982 GB, free: 13.71 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02512/0.2779, allocations: 5.315 MB / 0.8034 GB, free: 8.496 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.404/7.682, allocations: 13.75 kB / 0.8035 GB, free: 8.488 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-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)