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.0009263/0.0009262, allocations: 86.88 kB / 15.06 MB, free: 1.09 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.001111/0.001111, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.934/1.934, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.6968/0.6968, allocations: 95.63 MB / 366 MB, free: 10.34 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.0006099/0.00061, allocations: 20.2 kB / 446.9 MB, free: 9.336 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4191/0.4197, allocations: 70.34 MB / 0.5051 GB, free: 16.49 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Examples.KalmanFilter): time 0.001837/0.4216, allocations: 1.357 MB / 0.5064 GB, free: 15.12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.423, allocations: 0.9049 MB / 0.5073 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.488e-05/0.4231, allocations: 0 / 0.5073 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001077/0.4232, allocations: 11.86 kB / 0.5073 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001177/0.4233, allocations: 19.86 kB / 0.5073 GB, free: 14.18 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.0005018/0.4238, allocations: 167.7 kB / 0.5075 GB, free: 14.01 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001773/0.424, allocations: 171.6 kB / 0.5076 GB, free: 13.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.4241, allocations: 36.98 kB / 0.5077 GB, free: 13.81 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.4243, allocations: 79.75 kB / 0.5077 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001174/0.4244, allocations: 63.73 kB / 0.5078 GB, free: 13.67 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.542e-05/0.4244, allocations: 8 kB / 0.5078 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.4246, allocations: 107.8 kB / 0.5079 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.496e-05/0.4246, allocations: 19.92 kB / 0.5079 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.373e-05/0.4247, allocations: 61.62 kB / 0.508 GB, free: 13.47 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002082/0.4249, allocations: 181.6 kB / 0.5082 GB, free: 13.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.351e-06/0.4249, allocations: 4 kB / 0.5082 GB, free: 13.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.4249, allocations: 0 / 0.5082 GB, free: 13.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.425, allocations: 4 kB / 0.5082 GB, free: 13.29 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.0007254/0.4257, allocations: 0.5796 MB / 0.5087 GB, free: 12.63 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.4257, allocations: 19.92 kB / 0.5088 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.274e-05/0.4258, allocations: 15.81 kB / 0.5088 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001873/0.426, allocations: 206.9 kB / 0.509 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.426, allocations: 11.95 kB / 0.509 GB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.232e-05/0.4261, allocations: 12 kB / 0.509 GB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003315/0.4264, allocations: 195.2 kB / 0.5092 GB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.4264, allocations: 0 / 0.5092 GB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.963e-05/0.4264, allocations: 4 kB / 0.5092 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.4265, allocations: 7.938 kB / 0.5092 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002274/0.4267, allocations: 123.9 kB / 0.5093 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006505/0.4273, allocations: 408.5 kB / 0.5097 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.4277, allocations: 166.4 kB / 0.5099 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002026/0.4279, allocations: 116.8 kB / 0.51 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.903e-05/0.4279, allocations: 4 kB / 0.51 GB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004871/0.4284, allocations: 280.3 kB / 0.5102 GB, free: 10.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.653e-06/0.4284, allocations: 4 kB / 0.5102 GB, free: 10.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.001068/0.4295, allocations: 0.5464 MB / 0.5108 GB, free: 10.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/0.4297, allocations: 208 kB / 0.511 GB, free: 10.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001563/0.4298, allocations: 161.2 kB / 0.5111 GB, free: 9.973 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.4299, allocations: 33.7 kB / 0.5112 GB, free: 9.934 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.191e-05/0.4299, allocations: 100.5 kB / 0.5113 GB, free: 9.828 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.74e-05/0.43, allocations: 59.48 kB / 0.5113 GB, free: 9.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.229e-05/0.43, allocations: 0 / 0.5113 GB, free: 9.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4301, allocations: 326.8 kB / 0.5116 GB, free: 9.441 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/0.4303, allocations: 83.88 kB / 0.5117 GB, free: 9.359 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002039/0.4305, allocations: 171.1 kB / 0.5119 GB, free: 9.152 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002701/0.4308, allocations: 218.5 kB / 0.5121 GB, free: 8.914 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.4308, allocations: 4.141 kB / 0.5121 GB, free: 8.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005904/0.4314, allocations: 419.8 kB / 0.5125 GB, free: 8.469 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001171/0.4315, allocations: 125 kB / 0.5126 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.4316, allocations: 288 / 0.5126 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.151e-05/0.4316, allocations: 8 kB / 0.5126 GB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001705/0.4318, allocations: 31.92 kB / 0.5126 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.4318, allocations: 4 kB / 0.5126 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/0.4319, allocations: 23.89 kB / 0.5127 GB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4e-05/0.432, allocations: 15.95 kB / 0.5127 GB, free: 8.242 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,$PRE.ran.uRIntPre[1],ran.uRIntPre[1],$PRE.ran.uRWri[1],ran.uRWri[1],$PRE.kalFil.uRIntPre[1],kalFil.uRIntPre[1],$PRE.kalFil.yR[1],kalFil.yR[1],$PRE.kalFil.uRWri[1],kalFil.uRWri[1],$PRE.kalFil.firstTrigger,kalFil.firstTrigger,$PRE.ran.firstTrigger,ran.firstTrigger,$whenCondition1,$whenCondition4,ran.sampleTrigger,$whenCondition2,$whenCondition3,kalFil.sampleTrigger,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003098/0.4323, allocations: 235.8 kB / 0.5129 GB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.149e-05/0.4323, allocations: 11.91 kB / 0.5129 GB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.034e-05/0.4324, allocations: 17.19 kB / 0.5129 GB, free: 7.961 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.4324, allocations: 4 kB / 0.5129 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.4324, allocations: 0 / 0.5129 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.605e-06/0.4325, allocations: 3.984 kB / 0.5129 GB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001038/0.4335, allocations: 0.8295 MB / 0.5138 GB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.4335, allocations: 0 / 0.5138 GB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.4336, allocations: 15.98 kB / 0.5138 GB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.4336, allocations: 8.031 kB / 0.5138 GB, free: 7.031 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.957e-05/0.4337, allocations: 11.98 kB / 0.5138 GB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.4337, allocations: 4 kB / 0.5138 GB, free: 7.016 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.4337, allocations: 4 kB / 0.5138 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009157/0.4346, allocations: 0.7288 MB / 0.5145 GB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.861e-05/0.4347, allocations: 96.88 kB / 0.5146 GB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.331e-05/0.4347, allocations: 16 kB / 0.5146 GB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.4349, allocations: 28 kB / 0.5146 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.054e-05/0.4349, allocations: 23.89 kB / 0.5147 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.398e-05/0.435, allocations: 12 kB / 0.5147 GB, free: 6.062 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.688e-05/0.435, allocations: 116.2 kB / 0.5148 GB, free: 5.949 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.435, allocations: 0 / 0.5148 GB, free: 5.949 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003843/0.4354, allocations: 76 kB / 0.5149 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006061/0.436, allocations: 272.9 kB / 0.5151 GB, free: 5.652 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005671/0.4366, allocations: 489.3 kB / 0.5156 GB, free: 5.125 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4366, allocations: 3.938 kB / 0.5156 GB, free: 5.121 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003161/0.437, allocations: 323.2 kB / 0.5159 GB, free: 4.781 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003607/0.4373, allocations: 23.98 kB / 0.5159 GB, free: 4.758 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008347/0.4382, allocations: 478.9 kB / 0.5164 GB, free: 4.262 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.4384, allocations: 0.7205 MB / 0.5171 GB, free: 3.516 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.48e-05/0.4385, allocations: 41.56 kB / 0.5171 GB, free: 3.477 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.903e-05/0.4385, allocations: 15.44 kB / 0.5171 GB, free: 3.461 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4385, allocations: 3.938 kB / 0.5171 GB, free: 3.457 MB / 382.1 MB Notification: Performance of Templates: time 0.00674/0.4453, allocations: 2.955 MB / 0.52 GB, free: 0.5234 MB / 382.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: