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.001155/0.001155, 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.001276/0.001276, allocations: 193.7 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.16/1.16, allocations: 205.1 MB / 222.4 MB, free: 4.57 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.327/1.327, allocations: 251.7 MB / 0.5092 GB, free: 3.082 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.001349/0.001349, allocations: 71.89 kB / 0.6223 GB, free: 1.461 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3502/0.3515, allocations: 104.7 MB / 0.7245 GB, free: 12.89 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002712/0.3543, allocations: 1.72 MB / 0.7262 GB, free: 11.16 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002067/0.3564, allocations: 1.83 MB / 0.728 GB, free: 9.32 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.801e-05/0.3564, allocations: 0 / 0.728 GB, free: 9.32 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.000126/0.3566, allocations: 27.8 kB / 0.728 GB, free: 9.293 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.3567, allocations: 27.72 kB / 0.728 GB, free: 9.266 MB / 0.545 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.0009425/0.3576, allocations: 295.1 kB / 0.7283 GB, free: 8.977 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002075/0.3578, allocations: 187.5 kB / 0.7285 GB, free: 8.793 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 9.111e-05/0.3579, allocations: 43.42 kB / 0.7285 GB, free: 8.75 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.358, allocations: 71.75 kB / 0.7286 GB, free: 8.68 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 9.403e-05/0.3581, allocations: 71.69 kB / 0.7287 GB, free: 8.609 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.656e-05/0.3582, allocations: 15.94 kB / 0.7287 GB, free: 8.594 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003404/0.3585, allocations: 251.6 kB / 0.7289 GB, free: 8.348 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 9.519e-05/0.3586, allocations: 59.8 kB / 0.729 GB, free: 8.289 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 6.465e-05/0.3587, allocations: 55.67 kB / 0.729 GB, free: 8.234 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003634/0.3591, allocations: 355.2 kB / 0.7294 GB, free: 7.887 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.3591, allocations: 4 kB / 0.7294 GB, free: 7.883 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.072e-06/0.3591, allocations: 0 / 0.7294 GB, free: 7.883 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.389e-06/0.3591, allocations: 0 / 0.7294 GB, free: 7.883 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.0007111/0.3598, allocations: 0.5143 MB / 0.7299 GB, free: 7.32 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.662e-05/0.3598, allocations: 11.97 kB / 0.7299 GB, free: 7.309 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.632e-05/0.3599, allocations: 20.73 kB / 0.7299 GB, free: 7.289 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001845/0.3601, allocations: 216 kB / 0.7301 GB, free: 7.039 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.3601, allocations: 8.375 kB / 0.7301 GB, free: 7.031 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.35e-05/0.3601, allocations: 12.12 kB / 0.7301 GB, free: 7.02 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002534/0.3604, allocations: 146.5 kB / 0.7303 GB, free: 6.867 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.3604, allocations: 0 / 0.7303 GB, free: 6.867 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.3604, allocations: 8 kB / 0.7303 GB, free: 6.859 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.3604, allocations: 0 / 0.7303 GB, free: 6.859 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001769/0.3606, allocations: 79.88 kB / 0.7304 GB, free: 6.781 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006838/0.3613, allocations: 412.5 kB / 0.7308 GB, free: 6.328 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002633/0.3616, allocations: 150.6 kB / 0.7309 GB, free: 6.172 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.3617, allocations: 60.83 kB / 0.731 GB, free: 6.109 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.3617, allocations: 11.98 kB / 0.731 GB, free: 6.098 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002307/0.362, allocations: 146.8 kB / 0.7311 GB, free: 5.938 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.313e-06/0.362, allocations: 0 / 0.7311 GB, free: 5.938 MB / 0.545 GB Notification: Performance of matching and sorting (n=18): time 0.0005353/0.3625, allocations: 287.8 kB / 0.7314 GB, free: 5.652 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.458e-05/0.3626, allocations: 93.09 kB / 0.7315 GB, free: 5.543 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.3627, allocations: 173.3 kB / 0.7316 GB, free: 5.367 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.3628, allocations: 33.7 kB / 0.7317 GB, free: 5.328 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.933e-05/0.3628, allocations: 108.6 kB / 0.7318 GB, free: 5.215 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.538e-05/0.3629, allocations: 55.3 kB / 0.7318 GB, free: 5.16 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.418e-05/0.3629, allocations: 49.7 kB / 0.7319 GB, free: 5.105 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.046e-05/0.363, allocations: 330.8 kB / 0.7322 GB, free: 4.773 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.3632, allocations: 71.95 kB / 0.7323 GB, free: 4.703 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.3633, allocations: 168.8 kB / 0.7324 GB, free: 4.492 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002992/0.3636, allocations: 239.8 kB / 0.7327 GB, free: 4.215 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.3637, allocations: 4 kB / 0.7327 GB, free: 4.211 MB / 0.545 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003983/0.3641, allocations: 265.1 kB / 0.7329 GB, free: 3.945 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.3641, allocations: 7.938 kB / 0.7329 GB, free: 3.938 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.3641, allocations: 4 kB / 0.7329 GB, free: 3.934 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.3641, allocations: 4 kB / 0.7329 GB, free: 3.93 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.3642, allocations: 44.28 kB / 0.733 GB, free: 3.887 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.3642, allocations: 11.94 kB / 0.733 GB, free: 3.875 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.588e-05/0.3643, allocations: 23.78 kB / 0.733 GB, free: 3.852 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.3644, allocations: 8 kB / 0.733 GB, free: 3.844 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.0001233/0.3645, allocations: 155.5 kB / 0.7332 GB, free: 3.684 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.877e-05/0.3645, allocations: 15.81 kB / 0.7332 GB, free: 3.668 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.751e-05/0.3646, allocations: 17.88 kB / 0.7332 GB, free: 3.652 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.3646, allocations: 4 kB / 0.7332 GB, free: 3.648 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.3646, allocations: 4 kB / 0.7332 GB, free: 3.645 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.3646, allocations: 7.922 kB / 0.7332 GB, free: 3.637 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006996/0.3653, allocations: 0.5528 MB / 0.7337 GB, free: 3.027 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3653, allocations: 0 / 0.7337 GB, free: 3.027 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.998e-05/0.3654, allocations: 12 kB / 0.7338 GB, free: 3.016 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.513e-06/0.3654, allocations: 11.92 kB / 0.7338 GB, free: 3.004 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.3654, allocations: 8 kB / 0.7338 GB, free: 2.996 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3655, allocations: 0 / 0.7338 GB, free: 2.996 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.3655, allocations: 0 / 0.7338 GB, free: 2.996 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005571/0.366, allocations: 413.8 kB / 0.7342 GB, free: 2.574 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.156e-05/0.3661, allocations: 88.95 kB / 0.7343 GB, free: 2.469 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.34e-05/0.3661, allocations: 19.92 kB / 0.7343 GB, free: 2.449 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.3662, allocations: 8 kB / 0.7343 GB, free: 2.441 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.661e-05/0.3663, allocations: 15.97 kB / 0.7343 GB, free: 2.426 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.058e-05/0.3663, allocations: 12 kB / 0.7343 GB, free: 2.414 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.823e-05/0.3664, allocations: 116.9 kB / 0.7344 GB, free: 2.301 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3664, allocations: 0 / 0.7344 GB, free: 2.301 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003663/0.3668, allocations: 111.9 kB / 0.7345 GB, free: 2.191 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.0007021/0.3675, allocations: 430.1 kB / 0.7349 GB, free: 1.867 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003691/0.3678, allocations: 196.3 kB / 0.7351 GB, free: 1.676 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3679, allocations: 8.125 kB / 0.7351 GB, free: 1.668 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001519/0.368, allocations: 75.17 kB / 0.7352 GB, free: 1.598 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.3683, allocations: 23.98 kB / 0.7352 GB, free: 1.574 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005944/0.3689, allocations: 354.6 kB / 0.7356 GB, free: 1.199 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.3692, allocations: 0.7202 MB / 0.7363 GB, free: 464 kB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001013/0.3693, allocations: 49.44 kB / 0.7363 GB, free: 412 kB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.093e-05/0.3693, allocations: 15.44 kB / 0.7363 GB, free: 400 kB / 0.545 GB Notification: Performance of SimCode: time 2.31e-07/0.3693, allocations: 3.938 kB / 0.7363 GB, free: 396 kB / 0.545 GB Notification: Performance of Templates: time 0.006005/0.3753, allocations: 3.33 MB / 0.7396 GB, free: 13.07 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)