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.001812/0.001812, allocations: 108 kB / 15.6 MB, free: 132 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.002393/0.002393, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.677/1.677, allocations: 205.1 MB / 222.4 MB, free: 4.566 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.5989/0.5989, allocations: 95.47 MB / 365.2 MB, free: 9.879 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.001677/0.001677, allocations: 67.89 kB / 445.3 MB, free: 9.609 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4555/0.4572, allocations: 69.08 MB / 0.5024 GB, free: 17.36 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Examples.KalmanFilter): time 0.003237/0.4605, allocations: 1.666 MB / 0.504 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001596/0.4621, allocations: 0.9588 MB / 0.5049 GB, free: 14.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.364e-05/0.4622, allocations: 3.938 kB / 0.5049 GB, free: 14.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.4623, allocations: 19.78 kB / 0.505 GB, free: 14.69 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.4625, allocations: 27.8 kB / 0.505 GB, free: 14.66 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.0005746/0.4631, allocations: 199.4 kB / 0.5052 GB, free: 14.47 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002928/0.4634, allocations: 203.6 kB / 0.5054 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.4636, allocations: 41.05 kB / 0.5054 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.4637, allocations: 87.75 kB / 0.5055 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000157/0.4639, allocations: 83.66 kB / 0.5056 GB, free: 14.06 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.838e-05/0.4639, allocations: 12 kB / 0.5056 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000187/0.4641, allocations: 119.8 kB / 0.5057 GB, free: 13.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.286e-05/0.4642, allocations: 31.91 kB / 0.5057 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.785e-05/0.4643, allocations: 83.59 kB / 0.5058 GB, free: 13.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003037/0.4646, allocations: 257.4 kB / 0.506 GB, free: 13.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.4646, allocations: 0 / 0.506 GB, free: 13.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4646, allocations: 0 / 0.506 GB, free: 13.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.4646, allocations: 4 kB / 0.5061 GB, free: 13.57 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.0009165/0.4656, allocations: 0.607 MB / 0.5066 GB, free: 12.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.4656, allocations: 15.98 kB / 0.5067 GB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.761e-05/0.4657, allocations: 16.75 kB / 0.5067 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001948/0.4659, allocations: 220 kB / 0.5069 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.4659, allocations: 8.375 kB / 0.5069 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.099e-05/0.466, allocations: 16.36 kB / 0.5069 GB, free: 12.58 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003192/0.4663, allocations: 187.6 kB / 0.5071 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.4663, allocations: 0 / 0.5071 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/0.4663, allocations: 8 kB / 0.5071 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.477e-06/0.4664, allocations: 0 / 0.5071 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002328/0.4666, allocations: 111.9 kB / 0.5072 GB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005436/0.4671, allocations: 408.5 kB / 0.5076 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002677/0.4674, allocations: 162.5 kB / 0.5077 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001831/0.4676, allocations: 112.8 kB / 0.5079 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.4677, allocations: 0 / 0.5079 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004369/0.4681, allocations: 280.3 kB / 0.5081 GB, free: 11.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.203e-06/0.4681, allocations: 0 / 0.5081 GB, free: 11.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0008931/0.469, allocations: 0.5391 MB / 0.5086 GB, free: 10.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.056e-05/0.4691, allocations: 211.8 kB / 0.5089 GB, free: 10.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.955e-05/0.4692, allocations: 156.2 kB / 0.509 GB, free: 10.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.4692, allocations: 33.7 kB / 0.509 GB, free: 10.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.407e-05/0.4693, allocations: 100.6 kB / 0.5091 GB, free: 10.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.319e-05/0.4693, allocations: 55.5 kB / 0.5092 GB, free: 10.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.763e-05/0.4694, allocations: 57.62 kB / 0.5092 GB, free: 10 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.047e-05/0.4695, allocations: 334.8 kB / 0.5096 GB, free: 9.668 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/0.4697, allocations: 67.95 kB / 0.5096 GB, free: 9.602 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/0.4698, allocations: 167.8 kB / 0.5098 GB, free: 9.398 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005831/0.4704, allocations: 460.2 kB / 0.5102 GB, free: 8.875 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.4705, allocations: 7.938 kB / 0.5102 GB, free: 8.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005023/0.471, allocations: 419.8 kB / 0.5106 GB, free: 8.426 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.095e-05/0.471, allocations: 114.8 kB / 0.5107 GB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.4711, allocations: 4 kB / 0.5107 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.215e-05/0.4711, allocations: 4.281 kB / 0.5107 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.4712, allocations: 35.97 kB / 0.5108 GB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.4713, allocations: 7.938 kB / 0.5108 GB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.4714, allocations: 8 kB / 0.5108 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.438e-05/0.4714, allocations: 19.98 kB / 0.5108 GB, free: 8.211 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.0002551/0.4717, allocations: 239.8 kB / 0.511 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.478e-05/0.4717, allocations: 15.91 kB / 0.5111 GB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.878e-05/0.4718, allocations: 21.17 kB / 0.5111 GB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.4718, allocations: 0 / 0.5111 GB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.4718, allocations: 4 kB / 0.5111 GB, free: 7.914 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.4718, allocations: 0 / 0.5111 GB, free: 7.914 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009041/0.4727, allocations: 0.8177 MB / 0.5119 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.4727, allocations: 0 / 0.5119 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.4728, allocations: 15.98 kB / 0.5119 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.4729, allocations: 0 / 0.5119 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.719e-05/0.4729, allocations: 19.92 kB / 0.5119 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.4729, allocations: 3.938 kB / 0.5119 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4729, allocations: 0 / 0.5119 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000879/0.4738, allocations: 0.7142 MB / 0.5126 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.929e-05/0.4738, allocations: 96.88 kB / 0.5127 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.248e-05/0.4739, allocations: 23.92 kB / 0.5127 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.474, allocations: 11.98 kB / 0.5127 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.526e-05/0.4741, allocations: 15.98 kB / 0.5128 GB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.4741, allocations: 15.97 kB / 0.5128 GB, free: 6.062 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.642e-05/0.4742, allocations: 121.5 kB / 0.5129 GB, free: 5.945 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4742, allocations: 0 / 0.5129 GB, free: 5.945 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003707/0.4746, allocations: 72 kB / 0.513 GB, free: 5.875 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.000544/0.4751, allocations: 271.4 kB / 0.5132 GB, free: 5.656 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005726/0.4757, allocations: 0.4895 MB / 0.5137 GB, free: 5.117 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4757, allocations: 0 / 0.5137 GB, free: 5.117 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002864/0.476, allocations: 306.6 kB / 0.514 GB, free: 4.793 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003354/0.4764, allocations: 34.47 kB / 0.514 GB, free: 4.762 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007549/0.4771, allocations: 450 kB / 0.5144 GB, free: 4.293 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000193/0.4773, allocations: 0.728 MB / 0.5152 GB, free: 3.539 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.127e-05/0.4774, allocations: 29.53 kB / 0.5152 GB, free: 3.512 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.327e-05/0.4775, allocations: 27.42 kB / 0.5152 GB, free: 3.484 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4775, allocations: 0 / 0.5152 GB, free: 3.484 MB / 382.1 MB Notification: Performance of Templates: time 0.006418/0.4839, allocations: 3.163 MB / 0.5183 GB, free: 356 kB / 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)