Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.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 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter") translateModel(Buildings.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.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.001529/0.001529, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001826/0.001827, allocations: 195.6 kB / 16.25 MB, free: 6.621 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.653/1.653, allocations: 205.1 MB / 222.1 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6072/0.6072, allocations: 95.47 MB / 364.9 MB, free: 10.06 MB / 302.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: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002523/0.002523, allocations: 59.91 kB / 444.8 MB, free: 9.984 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4224/0.4249, allocations: 69.08 MB / 0.5019 GB, free: 17.55 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002879/0.4279, allocations: 1.723 MB / 0.5036 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.4293, allocations: 0.959 MB / 0.5045 GB, free: 14.85 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.901e-05/0.4293, allocations: 0 / 0.5045 GB, free: 14.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000126/0.4295, allocations: 15.86 kB / 0.5045 GB, free: 14.83 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001123/0.4296, allocations: 15.86 kB / 0.5045 GB, free: 14.82 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/Utilities/IO/Python27/Functions/exchange.mo:2:1-99:13:writable] Warning: Pure function ‘Buildings.Utilities.IO.Python27.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0005504/0.4302, allocations: 175.6 kB / 0.5047 GB, free: 14.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002257/0.4304, allocations: 211.5 kB / 0.5049 GB, free: 14.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.4305, allocations: 33.06 kB / 0.5049 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.4307, allocations: 99.67 kB / 0.505 GB, free: 14.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/0.4308, allocations: 83.66 kB / 0.5051 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.872e-05/0.4309, allocations: 12 kB / 0.5051 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001529/0.431, allocations: 123.8 kB / 0.5052 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.657e-05/0.4311, allocations: 23.92 kB / 0.5053 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.503e-05/0.4312, allocations: 79.66 kB / 0.5053 GB, free: 13.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002982/0.4315, allocations: 269.3 kB / 0.5056 GB, free: 13.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.4315, allocations: 0 / 0.5056 GB, free: 13.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4315, allocations: 0 / 0.5056 GB, free: 13.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.4315, allocations: 0 / 0.5056 GB, free: 13.73 MB / 382.1 MB 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.0008427/0.4324, allocations: 0.607 MB / 0.5062 GB, free: 13.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.4324, allocations: 15.98 kB / 0.5062 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.427e-05/0.4325, allocations: 24.73 kB / 0.5062 GB, free: 13.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001766/0.4327, allocations: 208 kB / 0.5064 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.4327, allocations: 12.38 kB / 0.5064 GB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.561e-05/0.4327, allocations: 12.38 kB / 0.5064 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000307/0.433, allocations: 191.5 kB / 0.5066 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.4331, allocations: 0 / 0.5066 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/0.4331, allocations: 4 kB / 0.5066 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.4331, allocations: 8 kB / 0.5066 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000217/0.4333, allocations: 111.9 kB / 0.5067 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004739/0.4338, allocations: 400.5 kB / 0.5071 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002509/0.4341, allocations: 158.4 kB / 0.5073 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.4342, allocations: 116.8 kB / 0.5074 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.4343, allocations: 4 kB / 0.5074 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003166/0.4346, allocations: 272.3 kB / 0.5076 GB, free: 11.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.363e-06/0.4346, allocations: 4 kB / 0.5077 GB, free: 11.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0008031/0.4354, allocations: 0.5469 MB / 0.5082 GB, free: 10.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.396e-05/0.4355, allocations: 199.9 kB / 0.5084 GB, free: 10.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.278e-05/0.4356, allocations: 160.1 kB / 0.5085 GB, free: 10.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/0.4356, allocations: 33.7 kB / 0.5086 GB, free: 10.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.727e-05/0.4357, allocations: 104.5 kB / 0.5087 GB, free: 10.29 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.909e-05/0.4357, allocations: 55.61 kB / 0.5087 GB, free: 10.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.369e-05/0.4358, allocations: 57.69 kB / 0.5088 GB, free: 10.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.963e-05/0.4358, allocations: 330.8 kB / 0.5091 GB, free: 9.836 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.436, allocations: 71.94 kB / 0.5092 GB, free: 9.766 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000162/0.4362, allocations: 163.1 kB / 0.5093 GB, free: 9.566 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005204/0.4367, allocations: 468.2 kB / 0.5098 GB, free: 9.035 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.4367, allocations: 0 / 0.5098 GB, free: 9.035 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005056/0.4372, allocations: 411.8 kB / 0.5101 GB, free: 8.602 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.477e-05/0.4373, allocations: 118.8 kB / 0.5103 GB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.4373, allocations: 4 kB / 0.5103 GB, free: 8.457 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.4373, allocations: 7.938 kB / 0.5103 GB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.4374, allocations: 32.2 kB / 0.5103 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.4375, allocations: 4 kB / 0.5103 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.4376, allocations: 19.98 kB / 0.5103 GB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.125e-05/0.4376, allocations: 8 kB / 0.5103 GB, free: 8.387 MB / 382.1 MB Warning: Assuming fixed start value for the following 4 variables: ran.uRWri[1]:DISCRETE(fixed = true ) "Value to be sent to Python" type: Real [1] kalFil.yR[1]:DISCRETE(flow=false fixed = true ) "Real outputs received from Python" type: Real [1] kalFil.uRWri[1]:DISCRETE(fixed = true ) "Value to be sent to Python" type: Real [1] ran.yR[1]:DISCRETE(flow=false fixed = true ) "Real outputs received from Python" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 23 ($whenCondition5,ran.uRIntPre[1],$PRE.ran.uRIntPre[1],$PRE.ran.uRWri[1],ran.uRWri[1],kalFil.uRIntPre[1],$PRE.kalFil.uRIntPre[1],$PRE.kalFil.yR[1],kalFil.yR[1],$PRE.kalFil.uRWri[1],kalFil.uRWri[1],kalFil.firstTrigger,$PRE.kalFil.firstTrigger,ran.firstTrigger,$PRE.ran.firstTrigger,ran.sampleTrigger,$whenCondition4,$whenCondition1,kalFil.sampleTrigger,$whenCondition3,$whenCondition2,$PRE.ran.yR[1],ran.yR[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 4 * 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.0001997/0.4378, allocations: 255.7 kB / 0.5106 GB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.391e-05/0.4379, allocations: 15.91 kB / 0.5106 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.305e-05/0.4379, allocations: 17.12 kB / 0.5106 GB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.4379, allocations: 7.984 kB / 0.5106 GB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.4379, allocations: 0 / 0.5106 GB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.4379, allocations: 0 / 0.5106 GB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008678/0.4388, allocations: 0.8139 MB / 0.5114 GB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.4388, allocations: 8.062 kB / 0.5114 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.4389, allocations: 15.92 kB / 0.5114 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.4389, allocations: 7.938 kB / 0.5114 GB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.663e-05/0.439, allocations: 8 kB / 0.5114 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.439, allocations: 7.938 kB / 0.5115 GB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.439, allocations: 0 / 0.5115 GB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008405/0.4398, allocations: 0.7149 MB / 0.5122 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.625e-05/0.4399, allocations: 92.86 kB / 0.5122 GB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.736e-05/0.4399, allocations: 19.92 kB / 0.5123 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.4401, allocations: 15.98 kB / 0.5123 GB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.22e-05/0.4402, allocations: 15.92 kB / 0.5123 GB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/0.4402, allocations: 12 kB / 0.5123 GB, free: 6.227 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.341e-05/0.4402, allocations: 113.5 kB / 0.5124 GB, free: 6.117 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4402, allocations: 4.062 kB / 0.5124 GB, free: 6.113 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003587/0.4406, allocations: 79.98 kB / 0.5125 GB, free: 6.035 MB / 382.1 MB 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,$whenCondition3,$whenCondition4,ran.firstTrigger,ran.yR[1],ran.uRIntPre[1],ran.uRWri[1],kalFil.firstTrigger,kalFil.yR[1],kalFil.uRIntPre[1],kalFil.uRWri[1],$whenCondition5) * Number of discrete states: 11 (ran.uRIntPre[1],ran.yR[1],ran.uRWri[1],$whenCondition4,i,ran.uR[i],kalFil.uRIntPre[1],kalFil.yR[1],kalFil.uRWri[1],$whenCondition3,kalFil.uR[i]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * 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.0004867/0.4411, allocations: 290.7 kB / 0.5128 GB, free: 5.801 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005268/0.4416, allocations: 493.2 kB / 0.5132 GB, free: 5.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.4417, allocations: 0 / 0.5132 GB, free: 5.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002661/0.4419, allocations: 310.6 kB / 0.5135 GB, free: 4.941 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.4423, allocations: 31.98 kB / 0.5136 GB, free: 4.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006742/0.4429, allocations: 477 kB / 0.514 GB, free: 4.418 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001318/0.4431, allocations: 0.7241 MB / 0.5147 GB, free: 3.668 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.049e-05/0.4432, allocations: 29.39 kB / 0.5148 GB, free: 3.641 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.334e-05/0.4432, allocations: 23.44 kB / 0.5148 GB, free: 3.617 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4432, allocations: 4 kB / 0.5148 GB, free: 3.613 MB / 382.1 MB Notification: Performance of Templates: time 0.005583/0.4488, allocations: 3.145 MB / 0.5179 GB, free: 0.4922 MB / 382.1 MB make -j1 -f Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.makefile (rm -f Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe >> ../files/Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.sim & ./Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1)