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.001514/0.001514, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.01193/0.01193, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.86/1.86, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.6419/0.6419, allocations: 95.63 MB / 366.4 MB, free: 10.23 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.0006662/0.0006661, allocations: 16 kB / 447.5 MB, free: 8.969 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4332/0.4339, allocations: 70.34 MB / 0.5057 GB, free: 16.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Examples.KalmanFilter): time 0.001773/0.4357, allocations: 1.384 MB / 0.507 GB, free: 14.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.4374, allocations: 0.9552 MB / 0.508 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.4375, allocations: 0 / 0.508 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.4376, allocations: 19.8 kB / 0.508 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.4378, allocations: 19.84 kB / 0.508 GB, free: 13.93 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.000608/0.4384, allocations: 171.7 kB / 0.5082 GB, free: 13.76 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002132/0.4386, allocations: 183.5 kB / 0.5083 GB, free: 13.58 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.4387, allocations: 25.08 kB / 0.5084 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.4389, allocations: 87.73 kB / 0.5084 GB, free: 13.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.4391, allocations: 67.69 kB / 0.5085 GB, free: 13.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.121e-05/0.4391, allocations: 4 kB / 0.5085 GB, free: 13.4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001973/0.4393, allocations: 111.8 kB / 0.5086 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.055e-05/0.4394, allocations: 39.89 kB / 0.5087 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.975e-05/0.4395, allocations: 89.36 kB / 0.5087 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003275/0.4398, allocations: 253.3 kB / 0.509 GB, free: 12.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.4398, allocations: 0 / 0.509 GB, free: 12.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4398, allocations: 0 / 0.509 GB, free: 12.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.4399, allocations: 0 / 0.509 GB, free: 12.91 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.0007455/0.4406, allocations: 0.5837 MB / 0.5095 GB, free: 12.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.4407, allocations: 15.97 kB / 0.5096 GB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.323e-05/0.4407, allocations: 16.75 kB / 0.5096 GB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002028/0.4409, allocations: 220 kB / 0.5098 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.55e-05/0.441, allocations: 12.38 kB / 0.5098 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.674e-05/0.441, allocations: 8.375 kB / 0.5098 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003567/0.4414, allocations: 199.6 kB / 0.51 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.4414, allocations: 0 / 0.51 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.003e-05/0.4414, allocations: 4 kB / 0.51 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.4414, allocations: 0 / 0.51 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002408/0.4417, allocations: 127.8 kB / 0.5101 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005323/0.4422, allocations: 408.5 kB / 0.5105 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002571/0.4425, allocations: 158.5 kB / 0.5107 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000176/0.4427, allocations: 116.8 kB / 0.5108 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.397e-05/0.4427, allocations: 4 kB / 0.5108 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003735/0.4431, allocations: 280.3 kB / 0.511 GB, free: 10.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.452e-06/0.4431, allocations: 0 / 0.511 GB, free: 10.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.000852/0.444, allocations: 0.5502 MB / 0.5116 GB, free: 10.01 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.395e-05/0.4441, allocations: 212.1 kB / 0.5118 GB, free: 9.758 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.4442, allocations: 161.1 kB / 0.5119 GB, free: 9.594 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.315e-05/0.4442, allocations: 33.7 kB / 0.512 GB, free: 9.555 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.159e-05/0.4442, allocations: 108.4 kB / 0.5121 GB, free: 9.441 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.151e-05/0.4443, allocations: 47.5 kB / 0.5121 GB, free: 9.395 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.93e-05/0.4443, allocations: 29.7 kB / 0.5121 GB, free: 9.359 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.281e-05/0.4444, allocations: 338.8 kB / 0.5125 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001479/0.4445, allocations: 75.95 kB / 0.5125 GB, free: 8.945 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.4447, allocations: 167 kB / 0.5127 GB, free: 8.742 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005966/0.4453, allocations: 484.2 kB / 0.5132 GB, free: 8.195 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.625e-06/0.4454, allocations: 4 kB / 0.5132 GB, free: 8.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005205/0.4459, allocations: 424.1 kB / 0.5136 GB, free: 7.746 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.719e-05/0.446, allocations: 114.8 kB / 0.5137 GB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.446, allocations: 4 kB / 0.5137 GB, free: 7.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.446, allocations: 4 kB / 0.5137 GB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.4461, allocations: 35.91 kB / 0.5137 GB, free: 7.566 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.4461, allocations: 4 kB / 0.5137 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001259/0.4463, allocations: 12 kB / 0.5137 GB, free: 7.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.096e-05/0.4463, allocations: 19.98 kB / 0.5138 GB, free: 7.531 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.0002403/0.4466, allocations: 243.8 kB / 0.514 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.61e-05/0.4466, allocations: 19.89 kB / 0.514 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.201e-05/0.4466, allocations: 21.17 kB / 0.514 GB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.4467, allocations: 0 / 0.514 GB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.4467, allocations: 8 kB / 0.514 GB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.4467, allocations: 0 / 0.514 GB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008888/0.4476, allocations: 0.8216 MB / 0.5148 GB, free: 6.332 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.4476, allocations: 0 / 0.5148 GB, free: 6.332 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.4477, allocations: 19.98 kB / 0.5149 GB, free: 6.312 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.4477, allocations: 0 / 0.5149 GB, free: 6.312 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.738e-05/0.4477, allocations: 15.98 kB / 0.5149 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.4478, allocations: 7.875 kB / 0.5149 GB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4478, allocations: 0 / 0.5149 GB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008768/0.4486, allocations: 0.7246 MB / 0.5156 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.11e-05/0.4487, allocations: 92.89 kB / 0.5157 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.181e-05/0.4487, allocations: 23.92 kB / 0.5157 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.4489, allocations: 15.98 kB / 0.5157 GB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.875e-05/0.449, allocations: 20.05 kB / 0.5157 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.36e-05/0.449, allocations: 11.98 kB / 0.5157 GB, free: 5.355 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.792e-05/0.4491, allocations: 120.1 kB / 0.5159 GB, free: 5.238 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4491, allocations: 0 / 0.5159 GB, free: 5.238 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003818/0.4495, allocations: 75.94 kB / 0.5159 GB, free: 5.164 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.0004887/0.4499, allocations: 293.7 kB / 0.5162 GB, free: 4.926 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005327/0.4505, allocations: 481.3 kB / 0.5167 GB, free: 4.406 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.4505, allocations: 0.5625 kB / 0.5167 GB, free: 4.406 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002868/0.4508, allocations: 314.6 kB / 0.517 GB, free: 4.074 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.4511, allocations: 27.92 kB / 0.517 GB, free: 4.047 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006945/0.4518, allocations: 490.7 kB / 0.5175 GB, free: 3.539 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001381/0.452, allocations: 0.7247 MB / 0.5182 GB, free: 2.789 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.202e-05/0.4521, allocations: 29.39 kB / 0.5182 GB, free: 2.762 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.65e-05/0.4521, allocations: 19.38 kB / 0.5182 GB, free: 2.742 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4521, allocations: 0 / 0.5182 GB, free: 2.742 MB / 382.1 MB Notification: Performance of Templates: time 0.006086/0.4582, allocations: 3.006 MB / 0.5212 GB, free: 15.76 MB / 398.1 MB make -j1 -f Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: