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.001269/0.001269, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001498/0.001498, allocations: 192.7 kB / 16.13 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.684/1.684, allocations: 205.1 MB / 222 MB, free: 4.781 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.6549/0.6549, allocations: 95.48 MB / 364.8 MB, free: 10.07 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.002298/0.002298, allocations: 63.92 kB / 444.7 MB, free: 10.05 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4307/0.433, allocations: 69.07 MB / 0.5017 GB, free: 17.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002864/0.4359, allocations: 1.727 MB / 0.5034 GB, free: 15.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001598/0.4375, allocations: 0.9707 MB / 0.5043 GB, free: 14.88 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.866e-05/0.4376, allocations: 3.938 kB / 0.5043 GB, free: 14.88 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.4377, allocations: 19.86 kB / 0.5044 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000102/0.4378, allocations: 11.86 kB / 0.5044 GB, free: 14.84 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.0004579/0.4383, allocations: 171.7 kB / 0.5045 GB, free: 14.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001669/0.4385, allocations: 183.5 kB / 0.5047 GB, free: 14.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.4386, allocations: 37.05 kB / 0.5047 GB, free: 14.46 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.4387, allocations: 79.81 kB / 0.5048 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.4388, allocations: 83.59 kB / 0.5049 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.838e-05/0.4389, allocations: 4 kB / 0.5049 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001459/0.439, allocations: 107.8 kB / 0.505 GB, free: 14.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.804e-05/0.4391, allocations: 27.91 kB / 0.505 GB, free: 14.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.744e-05/0.4392, allocations: 75.64 kB / 0.5051 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002858/0.4395, allocations: 253.4 kB / 0.5054 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.4395, allocations: 0 / 0.5054 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.4395, allocations: 0 / 0.5054 GB, free: 13.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.4395, allocations: 0 / 0.5054 GB, free: 13.84 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.0008255/0.4403, allocations: 0.6109 MB / 0.5059 GB, free: 13.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.4404, allocations: 19.92 kB / 0.506 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.97e-05/0.4405, allocations: 20.75 kB / 0.506 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002084/0.4407, allocations: 212 kB / 0.5062 GB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.4407, allocations: 8.375 kB / 0.5062 GB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.655e-05/0.4407, allocations: 12.38 kB / 0.5062 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003231/0.4411, allocations: 187.5 kB / 0.5064 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.4411, allocations: 0 / 0.5064 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.057e-05/0.4411, allocations: 15.92 kB / 0.5064 GB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.4411, allocations: 8 kB / 0.5064 GB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002361/0.4414, allocations: 107.9 kB / 0.5065 GB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005097/0.4419, allocations: 404.5 kB / 0.5069 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002575/0.4422, allocations: 154.4 kB / 0.507 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.4423, allocations: 116.8 kB / 0.5072 GB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.646e-05/0.4424, allocations: 4 kB / 0.5072 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004079/0.4428, allocations: 271.6 kB / 0.5074 GB, free: 11.51 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.222e-06/0.4428, allocations: 4 kB / 0.5074 GB, free: 11.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0008647/0.4437, allocations: 0.5398 MB / 0.508 GB, free: 10.95 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.4438, allocations: 207.8 kB / 0.5081 GB, free: 10.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.4439, allocations: 156.4 kB / 0.5083 GB, free: 10.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.783e-05/0.4439, allocations: 37.7 kB / 0.5083 GB, free: 10.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.239e-05/0.444, allocations: 104.5 kB / 0.5084 GB, free: 10.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.384e-05/0.4441, allocations: 51.62 kB / 0.5085 GB, free: 10.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.276e-05/0.4442, allocations: 49.7 kB / 0.5085 GB, free: 10.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002106/0.4444, allocations: 334.8 kB / 0.5088 GB, free: 9.949 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/0.4446, allocations: 75.88 kB / 0.5089 GB, free: 9.875 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/0.4448, allocations: 155.1 kB / 0.5091 GB, free: 9.684 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006345/0.4454, allocations: 480.1 kB / 0.5095 GB, free: 9.141 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4455, allocations: 0 / 0.5095 GB, free: 9.141 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004783/0.4459, allocations: 411.8 kB / 0.5099 GB, free: 8.707 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.892e-05/0.446, allocations: 122.8 kB / 0.51 GB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.446, allocations: 8.062 kB / 0.51 GB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.446, allocations: 4 kB / 0.51 GB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.4462, allocations: 32.19 kB / 0.5101 GB, free: 8.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.4462, allocations: 4 kB / 0.5101 GB, free: 8.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.4463, allocations: 16 kB / 0.5101 GB, free: 8.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.066e-05/0.4464, allocations: 11.98 kB / 0.5101 GB, free: 8.488 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.0002307/0.4466, allocations: 243.8 kB / 0.5103 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.679e-05/0.4467, allocations: 19.89 kB / 0.5104 GB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.491e-05/0.4467, allocations: 17.19 kB / 0.5104 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.4467, allocations: 0 / 0.5104 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.4468, allocations: 0 / 0.5104 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.4468, allocations: 0 / 0.5104 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009675/0.4477, allocations: 0.8216 MB / 0.5112 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.4477, allocations: 4 kB / 0.5112 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.4479, allocations: 23.86 kB / 0.5112 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.4479, allocations: 4 kB / 0.5112 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-05/0.4479, allocations: 7.938 kB / 0.5112 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.4479, allocations: 7.938 kB / 0.5112 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4479, allocations: 0 / 0.5112 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009514/0.4489, allocations: 0.7092 MB / 0.5119 GB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.457e-05/0.4489, allocations: 96.84 kB / 0.512 GB, free: 6.402 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.628e-05/0.449, allocations: 23.92 kB / 0.512 GB, free: 6.379 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000146/0.4492, allocations: 12 kB / 0.512 GB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.969e-05/0.4492, allocations: 11.97 kB / 0.5121 GB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.436e-05/0.4493, allocations: 12 kB / 0.5121 GB, free: 6.344 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.926e-05/0.4493, allocations: 112.3 kB / 0.5122 GB, free: 6.234 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4493, allocations: 7.938 kB / 0.5122 GB, free: 6.227 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000407/0.4498, allocations: 76 kB / 0.5123 GB, free: 6.152 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.0005643/0.4503, allocations: 288.2 kB / 0.5125 GB, free: 5.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005424/0.4509, allocations: 477.3 kB / 0.513 GB, free: 5.402 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4509, allocations: 0 / 0.513 GB, free: 5.402 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000281/0.4512, allocations: 306.6 kB / 0.5133 GB, free: 5.078 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003306/0.4515, allocations: 27.98 kB / 0.5133 GB, free: 5.051 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007372/0.4523, allocations: 479.7 kB / 0.5138 GB, free: 4.559 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001644/0.4524, allocations: 0.7285 MB / 0.5145 GB, free: 3.805 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.709e-05/0.4525, allocations: 25.41 kB / 0.5145 GB, free: 3.781 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.641e-05/0.4526, allocations: 19.42 kB / 0.5145 GB, free: 3.762 MB / 382.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4526, allocations: 4 kB / 0.5145 GB, free: 3.758 MB / 382.1 MB Notification: Performance of Templates: time 0.005762/0.4584, allocations: 3.043 MB / 0.5175 GB, free: 0.7344 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)