Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter") translateModel(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.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.004755/0.004755, allocations: 102.5 kB / 15.73 MB, free: 6.004 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.001161/0.001161, allocations: 195.1 kB / 16.67 MB, free: 5.93 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.134/1.134, allocations: 205.1 MB / 222.5 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.211/1.211, allocations: 251.7 MB / 0.5094 GB, free: 396 kB / 430.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: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 71.91 kB / 0.7258 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4272/0.4285, allocations: 104.7 MB / 0.828 GB, free: 2.613 MB / 0.6231 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002542/0.4311, allocations: 1.722 MB / 0.8297 GB, free: 0.875 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.002185/0.4333, allocations: 1.83 MB / 0.8315 GB, free: 15.04 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.59e-05/0.4333, allocations: 3.938 kB / 0.8315 GB, free: 15.03 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.4335, allocations: 27.8 kB / 0.8315 GB, free: 15 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.4336, allocations: 15.8 kB / 0.8315 GB, free: 14.99 MB / 0.6387 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:310:3-383:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.replace' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Obsolete/Utilities/IO/Python27/Functions/exchange.mo:2:1-109:13:writable] Warning: Pure function 'Buildings.Obsolete.Utilities.IO.Python27.Functions.exchange' contains a call to impure function 'Modelica.Utilities.Strings.replace'. Notification: Performance of NFTyping.typeClassSections: time 0.0009473/0.4345, allocations: 309.7 kB / 0.8318 GB, free: 14.69 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0002153/0.4348, allocations: 203.4 kB / 0.832 GB, free: 14.49 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 8.084e-05/0.4349, allocations: 21.56 kB / 0.832 GB, free: 14.46 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.435, allocations: 75.69 kB / 0.8321 GB, free: 14.39 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 9.932e-05/0.4351, allocations: 71.67 kB / 0.8322 GB, free: 14.32 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 2.001e-05/0.4351, allocations: 12 kB / 0.8322 GB, free: 14.31 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003499/0.4355, allocations: 283.5 kB / 0.8325 GB, free: 14.03 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 7.866e-05/0.4356, allocations: 47.88 kB / 0.8325 GB, free: 13.98 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 6.69e-05/0.4356, allocations: 55.67 kB / 0.8326 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.0003629/0.436, allocations: 367.1 kB / 0.8329 GB, free: 13.57 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.436, allocations: 7.938 kB / 0.8329 GB, free: 13.56 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.192e-06/0.436, allocations: 3.938 kB / 0.8329 GB, free: 13.56 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.436, allocations: 0 / 0.8329 GB, free: 13.56 MB / 0.6387 GB 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.000693/0.4367, allocations: 0.5049 MB / 0.8334 GB, free: 13.01 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 2.863e-05/0.4368, allocations: 12.03 kB / 0.8334 GB, free: 13 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.826e-05/0.4368, allocations: 16.75 kB / 0.8334 GB, free: 12.98 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001859/0.437, allocations: 212.1 kB / 0.8336 GB, free: 12.73 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.437, allocations: 12.36 kB / 0.8337 GB, free: 12.72 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.16e-05/0.4371, allocations: 16.12 kB / 0.8337 GB, free: 12.71 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002554/0.4373, allocations: 147.2 kB / 0.8338 GB, free: 12.55 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.4373, allocations: 0 / 0.8338 GB, free: 12.55 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.4374, allocations: 0 / 0.8338 GB, free: 12.55 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.4374, allocations: 4 kB / 0.8338 GB, free: 12.55 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001821/0.4375, allocations: 75.03 kB / 0.8339 GB, free: 12.48 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006795/0.4382, allocations: 412.5 kB / 0.8343 GB, free: 12.02 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002608/0.4385, allocations: 150.6 kB / 0.8344 GB, free: 11.87 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.4386, allocations: 64.83 kB / 0.8345 GB, free: 11.8 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.4387, allocations: 0 / 0.8345 GB, free: 11.8 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002343/0.4389, allocations: 160.9 kB / 0.8346 GB, free: 11.62 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=18): time 3.427e-06/0.4389, allocations: 0 / 0.8346 GB, free: 11.62 MB / 0.6387 GB Notification: Performance of matching and sorting (n=18): time 0.000553/0.4395, allocations: 280.4 kB / 0.8349 GB, free: 11.35 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.4395, allocations: 93.03 kB / 0.835 GB, free: 11.24 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.4396, allocations: 169.7 kB / 0.8352 GB, free: 11.07 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.4397, allocations: 41.69 kB / 0.8352 GB, free: 11.02 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 5.172e-05/0.4397, allocations: 104.6 kB / 0.8353 GB, free: 10.91 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 4.423e-05/0.4398, allocations: 55.28 kB / 0.8354 GB, free: 10.86 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.212e-05/0.4399, allocations: 53.69 kB / 0.8354 GB, free: 10.8 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 9.307e-05/0.44, allocations: 326.8 kB / 0.8357 GB, free: 10.47 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.4401, allocations: 63.95 kB / 0.8358 GB, free: 10.41 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.4403, allocations: 170.6 kB / 0.8359 GB, free: 10.2 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002997/0.4406, allocations: 243.8 kB / 0.8362 GB, free: 9.918 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4406, allocations: 0 / 0.8362 GB, free: 9.918 MB / 0.6387 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003958/0.441, allocations: 269.1 kB / 0.8364 GB, free: 9.648 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.441, allocations: 8 kB / 0.8364 GB, free: 9.641 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.441, allocations: 0 / 0.8364 GB, free: 9.641 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.441, allocations: 8 kB / 0.8364 GB, free: 9.633 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.4412, allocations: 31.92 kB / 0.8365 GB, free: 9.602 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.4412, allocations: 7.984 kB / 0.8365 GB, free: 9.594 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.4413, allocations: 28.09 kB / 0.8365 GB, free: 9.566 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.4413, allocations: 23.94 kB / 0.8365 GB, free: 9.543 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition3,kalFil.firstTrigger,$PRE.kalFil.firstTrigger,kalFil.yR[1],$PRE.kalFil.yR[1],kalFil.uRIntPre[1],$PRE.kalFil.uRIntPre[1],ran.firstTrigger,$PRE.ran.firstTrigger,ran.uRIntPre[1],$PRE.ran.uRIntPre[1],ran.sampleTrigger,$whenCondition1,ran.uRWri[1],$PRE.ran.uRWri[1],kalFil.sampleTrigger,$whenCondition2,kalFil.uRWri[1],$PRE.kalFil.uRWri[1],ran.yR[1],$PRE.ran.yR[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * 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.0001112/0.4414, allocations: 144.6 kB / 0.8367 GB, free: 9.395 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.916e-05/0.4415, allocations: 15.81 kB / 0.8367 GB, free: 9.379 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.033e-05/0.4415, allocations: 21.86 kB / 0.8367 GB, free: 9.359 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.4415, allocations: 7.938 kB / 0.8367 GB, free: 9.352 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.4415, allocations: 3.938 kB / 0.8367 GB, free: 9.348 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.4415, allocations: 3.938 kB / 0.8367 GB, free: 9.344 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007077/0.4423, allocations: 0.5606 MB / 0.8373 GB, free: 8.727 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.4423, allocations: 0 / 0.8373 GB, free: 8.727 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.141e-05/0.4424, allocations: 15.98 kB / 0.8373 GB, free: 8.711 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.4424, allocations: 3.938 kB / 0.8373 GB, free: 8.707 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.4424, allocations: 7.984 kB / 0.8373 GB, free: 8.699 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.4424, allocations: 0 / 0.8373 GB, free: 8.699 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.4424, allocations: 0 / 0.8373 GB, free: 8.699 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005534/0.443, allocations: 419.2 kB / 0.8377 GB, free: 8.273 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 4.438e-05/0.443, allocations: 92.94 kB / 0.8378 GB, free: 8.164 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.94e-05/0.4431, allocations: 11.94 kB / 0.8378 GB, free: 8.152 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.4432, allocations: 11.98 kB / 0.8378 GB, free: 8.141 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.103e-05/0.4432, allocations: 16.05 kB / 0.8378 GB, free: 8.125 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.119e-05/0.4433, allocations: 11.98 kB / 0.8378 GB, free: 8.113 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 7.033e-05/0.4433, allocations: 121.8 kB / 0.838 GB, free: 7.996 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4433, allocations: 0 / 0.838 GB, free: 7.996 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0003651/0.4437, allocations: 104 kB / 0.838 GB, free: 7.895 MB / 0.6387 GB 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: 13 (kalFil.sampleTrigger,ran.sampleTrigger,$whenCondition2,$whenCondition1,ran.firstTrigger,ran.yR[1],ran.uRIntPre[1],ran.uRWri[1],kalFil.firstTrigger,kalFil.yR[1],kalFil.uRIntPre[1],kalFil.uRWri[1],$whenCondition3) * Number of discrete states: 2 (kalFil.uR[1],ran.uR[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0006809/0.4444, allocations: 420 kB / 0.8385 GB, free: 7.582 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0003483/0.4447, allocations: 171.7 kB / 0.8386 GB, free: 7.414 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4448, allocations: 0 / 0.8386 GB, free: 7.414 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0001506/0.4449, allocations: 84.62 kB / 0.8387 GB, free: 7.332 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.4452, allocations: 28.05 kB / 0.8387 GB, free: 7.305 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005627/0.4458, allocations: 346.7 kB / 0.8391 GB, free: 6.938 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.446, allocations: 0.7279 MB / 0.8398 GB, free: 6.184 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 9.136e-05/0.4461, allocations: 53.47 kB / 0.8398 GB, free: 6.133 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.363e-05/0.4462, allocations: 23.38 kB / 0.8398 GB, free: 6.109 MB / 0.6387 GB Notification: Performance of SimCode: time 2.01e-07/0.4462, allocations: 0 / 0.8398 GB, free: 6.109 MB / 0.6387 GB Notification: Performance of Templates: time 0.005718/0.4519, allocations: 3.405 MB / 0.8432 GB, free: 2.723 MB / 0.6387 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.makefile (rm -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.sim & ./Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1)