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: translateModel(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter") translateModel(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001874/0.001874, allocations: 109.4 kB / 15.69 MB, free: 128 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.002321/0.002321, allocations: 189.5 kB / 16.62 MB, free: 6.582 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.599/1.599, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.779/1.779, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001388/0.001388, allocations: 72.75 kB / 0.6723 GB, free: 25.77 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.243, allocations: 114.5 MB / 0.7841 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.003388/0.2465, allocations: 1.723 MB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00254/0.249, allocations: 1.816 MB / 0.7876 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.384e-05/0.2491, allocations: 11.88 kB / 0.7876 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.2493, allocations: 19.8 kB / 0.7876 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001137/0.2494, allocations: 23.8 kB / 0.7876 GB, free: 9.141 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.001234/0.2506, allocations: 309.7 kB / 0.7879 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002511/0.2509, allocations: 191.5 kB / 0.7881 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001233/0.251, allocations: 37.47 kB / 0.7881 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.2512, allocations: 87.67 kB / 0.7882 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001187/0.2513, allocations: 63.69 kB / 0.7883 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.616e-05/0.2513, allocations: 12 kB / 0.7883 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004153/0.2518, allocations: 279.5 kB / 0.7886 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.2519, allocations: 47.89 kB / 0.7886 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.574e-05/0.252, allocations: 63.66 kB / 0.7887 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00043/0.2524, allocations: 359.1 kB / 0.789 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2524, allocations: 3.938 kB / 0.789 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2524, allocations: 0 / 0.789 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.2524, allocations: 0 / 0.789 GB, free: 7.723 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.0007948/0.2532, allocations: 0.5067 MB / 0.7895 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2533, allocations: 8.031 kB / 0.7895 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.709e-05/0.2533, allocations: 20.75 kB / 0.7895 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00023/0.2536, allocations: 235.9 kB / 0.7898 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.2536, allocations: 4.375 kB / 0.7898 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.743e-05/0.2536, allocations: 16.12 kB / 0.7898 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002942/0.2539, allocations: 146 kB / 0.7899 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.2539, allocations: 0 / 0.7899 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.944e-05/0.254, allocations: 12 kB / 0.7899 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.254, allocations: 0 / 0.7899 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001942/0.2542, allocations: 71.94 kB / 0.79 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007831/0.255, allocations: 400.6 kB / 0.7904 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.2553, allocations: 154.6 kB / 0.7905 GB, free: 6.02 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001293/0.2554, allocations: 60.83 kB / 0.7906 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.2555, allocations: 4 kB / 0.7906 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002655/0.2557, allocations: 156.9 kB / 0.7907 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 3.236e-06/0.2557, allocations: 0 / 0.7907 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18): time 0.0006122/0.2564, allocations: 281.2 kB / 0.791 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.933e-05/0.2564, allocations: 101 kB / 0.7911 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.2566, allocations: 168.4 kB / 0.7913 GB, free: 5.207 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.746e-05/0.2566, allocations: 37.69 kB / 0.7913 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.597e-05/0.2567, allocations: 112.6 kB / 0.7914 GB, free: 5.047 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.767e-05/0.2568, allocations: 43.45 kB / 0.7915 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.001e-05/0.2568, allocations: 49.7 kB / 0.7915 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.257, allocations: 330.8 kB / 0.7918 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.2571, allocations: 67.94 kB / 0.7919 GB, free: 4.551 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/0.2573, allocations: 172.8 kB / 0.792 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003279/0.2577, allocations: 239.8 kB / 0.7923 GB, free: 4.059 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.2577, allocations: 0 / 0.7923 GB, free: 4.059 MB / 0.6075 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004342/0.2581, allocations: 277.3 kB / 0.7925 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.2581, allocations: 10.81 kB / 0.7925 GB, free: 3.773 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.2582, allocations: 4 kB / 0.7926 GB, free: 3.77 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.2582, allocations: 4 kB / 0.7926 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.2583, allocations: 39.91 kB / 0.7926 GB, free: 3.727 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.2583, allocations: 8 kB / 0.7926 GB, free: 3.719 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.2584, allocations: 23.78 kB / 0.7926 GB, free: 3.695 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.2585, allocations: 11.94 kB / 0.7926 GB, free: 3.684 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.0001388/0.2586, allocations: 151.5 kB / 0.7928 GB, free: 3.527 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.514e-05/0.2587, allocations: 23.83 kB / 0.7928 GB, free: 3.504 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.575e-05/0.2587, allocations: 17.88 kB / 0.7928 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.2587, allocations: 4 kB / 0.7928 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.2587, allocations: 0 / 0.7928 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.2587, allocations: 7.922 kB / 0.7928 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007818/0.2595, allocations: 0.549 MB / 0.7934 GB, free: 2.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.2595, allocations: 0 / 0.7934 GB, free: 2.867 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.647e-05/0.2596, allocations: 15.98 kB / 0.7934 GB, free: 2.852 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-05/0.2597, allocations: 3.938 kB / 0.7934 GB, free: 2.848 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.343e-05/0.2597, allocations: 15.98 kB / 0.7934 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.2597, allocations: 4 kB / 0.7934 GB, free: 2.828 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2597, allocations: 0 / 0.7934 GB, free: 2.828 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006133/0.2603, allocations: 407.9 kB / 0.7938 GB, free: 2.41 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.979e-05/0.2604, allocations: 96.89 kB / 0.7939 GB, free: 2.297 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.532e-05/0.2604, allocations: 7.938 kB / 0.7939 GB, free: 2.289 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.2606, allocations: 11.98 kB / 0.7939 GB, free: 2.277 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.233e-05/0.2606, allocations: 15.98 kB / 0.7939 GB, free: 2.262 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.182e-05/0.2607, allocations: 7.984 kB / 0.7939 GB, free: 2.254 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.873e-05/0.2608, allocations: 126.1 kB / 0.794 GB, free: 2.133 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2608, allocations: 0 / 0.794 GB, free: 2.133 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000429/0.2612, allocations: 104 kB / 0.7941 GB, free: 2.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.0008325/0.262, allocations: 424.2 kB / 0.7946 GB, free: 1.719 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004015/0.2624, allocations: 183.6 kB / 0.7947 GB, free: 1.539 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2625, allocations: 0 / 0.7947 GB, free: 1.539 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000171/0.2626, allocations: 79.89 kB / 0.7948 GB, free: 1.461 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.263, allocations: 28.73 kB / 0.7948 GB, free: 1.434 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006406/0.2636, allocations: 356.4 kB / 0.7952 GB, free: 1.066 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002969/0.2639, allocations: 0.7241 MB / 0.7959 GB, free: 324 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001099/0.264, allocations: 49.44 kB / 0.7959 GB, free: 272 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.54e-05/0.2641, allocations: 23.44 kB / 0.7959 GB, free: 252 kB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.2641, allocations: 0 / 0.7959 GB, free: 252 kB / 0.6075 GB Notification: Performance of Templates: time 0.007041/0.2711, allocations: 3.316 MB / 0.7992 GB, free: 12.94 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.makefile (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 & ./Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1)