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.000965/0.000965, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.0009863/0.0009864, allocations: 190.5 kB / 16.14 MB, free: 6.703 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.141/1.141, allocations: 205.1 MB / 222 MB, free: 4.754 MB / 174.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.316/1.316, allocations: 251.6 MB / 0.5088 GB, free: 3.34 MB / 414.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.001245/0.001246, allocations: 67.91 kB / 0.6216 GB, free: 1.961 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.356/0.3572, allocations: 104.7 MB / 0.7238 GB, free: 13.13 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002722/0.36, allocations: 1.785 MB / 0.7256 GB, free: 11.33 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002154/0.3622, allocations: 1.818 MB / 0.7273 GB, free: 9.496 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.007e-05/0.3622, allocations: 4 kB / 0.7273 GB, free: 9.492 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.3624, allocations: 15.86 kB / 0.7273 GB, free: 9.477 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 9.437e-05/0.3625, allocations: 23.78 kB / 0.7274 GB, free: 9.453 MB / 0.545 GB [/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.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0008603/0.3634, allocations: 259.5 kB / 0.7276 GB, free: 9.199 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001936/0.3636, allocations: 183.4 kB / 0.7278 GB, free: 9.02 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 8.195e-05/0.3637, allocations: 27.53 kB / 0.7278 GB, free: 8.992 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001003/0.3638, allocations: 67.75 kB / 0.7279 GB, free: 8.926 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 9.866e-05/0.3639, allocations: 75.61 kB / 0.728 GB, free: 8.852 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.264e-05/0.3639, allocations: 8 kB / 0.728 GB, free: 8.844 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003372/0.3642, allocations: 255.6 kB / 0.7282 GB, free: 8.594 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.687e-05/0.3643, allocations: 43.89 kB / 0.7282 GB, free: 8.551 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 6.503e-05/0.3644, allocations: 63.64 kB / 0.7283 GB, free: 8.488 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003619/0.3648, allocations: 347.2 kB / 0.7286 GB, free: 8.148 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.3648, allocations: 0 / 0.7286 GB, free: 8.148 MB / 0.545 GB Notification: Performance of FrontEnd: time 6.61e-07/0.3648, allocations: 0 / 0.7286 GB, free: 8.148 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.467e-06/0.3648, allocations: 0 / 0.7286 GB, free: 8.148 MB / 0.545 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.0006944/0.3655, allocations: 0.5182 MB / 0.7291 GB, free: 7.582 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.613e-05/0.3655, allocations: 8.031 kB / 0.7292 GB, free: 7.574 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.982e-05/0.3656, allocations: 16.75 kB / 0.7292 GB, free: 7.559 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001854/0.3658, allocations: 224.1 kB / 0.7294 GB, free: 7.301 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/0.3658, allocations: 8.312 kB / 0.7294 GB, free: 7.293 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.14e-05/0.3658, allocations: 16.12 kB / 0.7294 GB, free: 7.277 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002494/0.3661, allocations: 139.3 kB / 0.7295 GB, free: 7.129 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.3661, allocations: 4 kB / 0.7295 GB, free: 7.125 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.592e-05/0.3661, allocations: 4 kB / 0.7295 GB, free: 7.121 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.3661, allocations: 4 kB / 0.7296 GB, free: 7.117 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001903/0.3663, allocations: 71.94 kB / 0.7296 GB, free: 7.047 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006662/0.367, allocations: 412.5 kB / 0.73 GB, free: 6.594 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002541/0.3673, allocations: 146.6 kB / 0.7302 GB, free: 6.441 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001296/0.3674, allocations: 64.77 kB / 0.7302 GB, free: 6.375 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.3674, allocations: 4 kB / 0.7302 GB, free: 6.371 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002403/0.3677, allocations: 162.7 kB / 0.7304 GB, free: 6.195 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.252e-06/0.3677, allocations: 0 / 0.7304 GB, free: 6.195 MB / 0.545 GB Notification: Performance of matching and sorting (n=18): time 0.0005572/0.3683, allocations: 283.4 kB / 0.7306 GB, free: 5.914 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/0.3683, allocations: 89.09 kB / 0.7307 GB, free: 5.809 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/0.3684, allocations: 176.7 kB / 0.7309 GB, free: 5.629 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.434e-05/0.3685, allocations: 41.62 kB / 0.7309 GB, free: 5.582 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.074e-05/0.3685, allocations: 104.6 kB / 0.731 GB, free: 5.473 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.12e-05/0.3686, allocations: 51.3 kB / 0.7311 GB, free: 5.422 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.04e-05/0.3686, allocations: 49.7 kB / 0.7311 GB, free: 5.367 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.812e-05/0.3687, allocations: 330.8 kB / 0.7314 GB, free: 5.035 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.3689, allocations: 63.95 kB / 0.7315 GB, free: 4.973 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.3691, allocations: 173.4 kB / 0.7317 GB, free: 4.762 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003152/0.3694, allocations: 247.8 kB / 0.7319 GB, free: 4.477 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3694, allocations: 0 / 0.7319 GB, free: 4.477 MB / 0.545 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003996/0.3698, allocations: 273.1 kB / 0.7322 GB, free: 4.203 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.3698, allocations: 8 kB / 0.7322 GB, free: 4.195 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.3698, allocations: 4 kB / 0.7322 GB, free: 4.191 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.3699, allocations: 4 kB / 0.7322 GB, free: 4.188 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.37, allocations: 35.92 kB / 0.7322 GB, free: 4.152 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.37, allocations: 11.92 kB / 0.7322 GB, free: 4.141 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.65e-05/0.3701, allocations: 28.16 kB / 0.7323 GB, free: 4.113 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.3701, allocations: 12 kB / 0.7323 GB, free: 4.102 MB / 0.545 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.0001177/0.3702, allocations: 143.5 kB / 0.7324 GB, free: 3.953 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.957e-05/0.3703, allocations: 15.81 kB / 0.7324 GB, free: 3.938 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.933e-05/0.3703, allocations: 21.86 kB / 0.7324 GB, free: 3.918 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.3703, allocations: 8 kB / 0.7325 GB, free: 3.91 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3703, allocations: 0 / 0.7325 GB, free: 3.91 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.3704, allocations: 7.938 kB / 0.7325 GB, free: 3.902 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007126/0.3711, allocations: 0.5528 MB / 0.733 GB, free: 3.293 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3711, allocations: 0 / 0.733 GB, free: 3.293 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.133e-05/0.3712, allocations: 15.98 kB / 0.733 GB, free: 3.277 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.3712, allocations: 3.938 kB / 0.733 GB, free: 3.273 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.167e-05/0.3712, allocations: 11.98 kB / 0.733 GB, free: 3.262 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.3712, allocations: 4 kB / 0.733 GB, free: 3.258 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3712, allocations: 0 / 0.733 GB, free: 3.258 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005521/0.3718, allocations: 406.1 kB / 0.7334 GB, free: 2.844 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.943e-05/0.3718, allocations: 96.94 kB / 0.7335 GB, free: 2.73 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.311e-05/0.3719, allocations: 7.938 kB / 0.7335 GB, free: 2.723 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.372, allocations: 20.05 kB / 0.7335 GB, free: 2.703 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.245e-05/0.3721, allocations: 11.98 kB / 0.7336 GB, free: 2.691 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.951e-05/0.3721, allocations: 11.92 kB / 0.7336 GB, free: 2.68 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.265e-05/0.3722, allocations: 123.9 kB / 0.7337 GB, free: 2.559 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3722, allocations: 0 / 0.7337 GB, free: 2.559 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003649/0.3725, allocations: 104 kB / 0.7338 GB, free: 2.457 MB / 0.545 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.0006685/0.3732, allocations: 429.3 kB / 0.7342 GB, free: 2.133 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003302/0.3736, allocations: 171.8 kB / 0.7344 GB, free: 1.965 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.3736, allocations: 0.75 kB / 0.7344 GB, free: 1.965 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001485/0.3737, allocations: 87.08 kB / 0.7344 GB, free: 1.883 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.374, allocations: 22.39 kB / 0.7345 GB, free: 1.863 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006245/0.3746, allocations: 404.2 kB / 0.7348 GB, free: 1.441 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.3749, allocations: 0.7283 MB / 0.7356 GB, free: 0.6875 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 9.313e-05/0.375, allocations: 49.44 kB / 0.7356 GB, free: 0.6367 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.175e-05/0.375, allocations: 19.44 kB / 0.7356 GB, free: 0.6211 MB / 0.545 GB Notification: Performance of SimCode: time 2.5e-07/0.375, allocations: 0 / 0.7356 GB, free: 0.6211 MB / 0.545 GB Notification: Performance of Templates: time 0.005378/0.3804, allocations: 3.215 MB / 0.7388 GB, free: 13.41 MB / 0.5606 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)