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.0009159/0.0009159, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.0009552/0.0009553, allocations: 195.7 kB / 16.25 MB, free: 6.629 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.124/1.124, allocations: 205.1 MB / 222.1 MB, free: 4.719 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.353/1.353, allocations: 251.6 MB / 0.5089 GB, free: 3.309 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.001266/0.001266, allocations: 63.91 kB / 0.6217 GB, free: 1.867 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3602/0.3614, allocations: 104.7 MB / 0.724 GB, free: 13.11 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002605/0.3641, allocations: 1.781 MB / 0.7257 GB, free: 11.31 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002082/0.3662, allocations: 1.799 MB / 0.7275 GB, free: 9.5 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.8e-05/0.3662, allocations: 7.938 kB / 0.7275 GB, free: 9.492 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.3664, allocations: 15.86 kB / 0.7275 GB, free: 9.477 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 9.982e-05/0.3665, allocations: 15.88 kB / 0.7275 GB, free: 9.461 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.0008912/0.3674, allocations: 280.4 kB / 0.7278 GB, free: 9.191 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002458/0.3677, allocations: 195.5 kB / 0.728 GB, free: 9 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 8.801e-05/0.3678, allocations: 27.52 kB / 0.728 GB, free: 8.973 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.3679, allocations: 75.75 kB / 0.7281 GB, free: 8.898 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.368, allocations: 71.67 kB / 0.7281 GB, free: 8.828 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.09e-05/0.368, allocations: 12 kB / 0.7282 GB, free: 8.816 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003296/0.3683, allocations: 259.6 kB / 0.7284 GB, free: 8.562 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 8.316e-05/0.3684, allocations: 51.81 kB / 0.7285 GB, free: 8.512 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 6.801e-05/0.3685, allocations: 71.59 kB / 0.7285 GB, free: 8.441 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003823/0.3689, allocations: 351.2 kB / 0.7289 GB, free: 8.098 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3689, allocations: 3.938 kB / 0.7289 GB, free: 8.094 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.062e-06/0.3689, allocations: 0 / 0.7289 GB, free: 8.094 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.3689, allocations: 0 / 0.7289 GB, free: 8.094 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.00072/0.3697, allocations: 0.5143 MB / 0.7294 GB, free: 7.531 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.3697, allocations: 12.03 kB / 0.7294 GB, free: 7.52 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.092e-05/0.3697, allocations: 20.73 kB / 0.7294 GB, free: 7.5 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001789/0.3699, allocations: 212.1 kB / 0.7296 GB, free: 7.254 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.3699, allocations: 8.375 kB / 0.7296 GB, free: 7.246 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.988e-05/0.37, allocations: 16.12 kB / 0.7296 GB, free: 7.23 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002602/0.3703, allocations: 150.5 kB / 0.7298 GB, free: 7.074 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.3703, allocations: 0 / 0.7298 GB, free: 7.074 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.3703, allocations: 0 / 0.7298 GB, free: 7.074 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-06/0.3703, allocations: 4 kB / 0.7298 GB, free: 7.07 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001844/0.3705, allocations: 71.94 kB / 0.7298 GB, free: 7 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006981/0.3712, allocations: 412.5 kB / 0.7302 GB, free: 6.547 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002738/0.3715, allocations: 154.6 kB / 0.7304 GB, free: 6.387 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001296/0.3716, allocations: 60.83 kB / 0.7304 GB, free: 6.324 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.3717, allocations: 0 / 0.7304 GB, free: 6.324 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00025/0.3719, allocations: 157 kB / 0.7306 GB, free: 6.152 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 4.859e-06/0.3719, allocations: 3.984 kB / 0.7306 GB, free: 6.148 MB / 0.545 GB Notification: Performance of matching and sorting (n=18): time 0.0005458/0.3725, allocations: 283.2 kB / 0.7309 GB, free: 5.867 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.627e-05/0.3725, allocations: 93.17 kB / 0.731 GB, free: 5.758 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.3727, allocations: 168.6 kB / 0.7311 GB, free: 5.586 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.3727, allocations: 45.69 kB / 0.7312 GB, free: 5.535 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.471e-05/0.3728, allocations: 108.5 kB / 0.7313 GB, free: 5.422 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.193e-05/0.3728, allocations: 55.28 kB / 0.7313 GB, free: 5.367 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.183e-05/0.3729, allocations: 49.7 kB / 0.7314 GB, free: 5.312 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001009/0.373, allocations: 330.8 kB / 0.7317 GB, free: 4.98 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.3731, allocations: 67.95 kB / 0.7317 GB, free: 4.914 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.3733, allocations: 166.3 kB / 0.7319 GB, free: 4.707 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003028/0.3736, allocations: 247.7 kB / 0.7321 GB, free: 4.422 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.3736, allocations: 4 kB / 0.7321 GB, free: 4.418 MB / 0.545 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003913/0.374, allocations: 265.1 kB / 0.7324 GB, free: 4.152 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.3741, allocations: 8 kB / 0.7324 GB, free: 4.145 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.3741, allocations: 0 / 0.7324 GB, free: 4.145 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.3741, allocations: 8 kB / 0.7324 GB, free: 4.137 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.3742, allocations: 35.91 kB / 0.7324 GB, free: 4.102 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.3742, allocations: 4.375 kB / 0.7324 GB, free: 4.098 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.3743, allocations: 27.78 kB / 0.7325 GB, free: 4.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.3744, allocations: 19.94 kB / 0.7325 GB, free: 4.051 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.0001226/0.3745, allocations: 143.5 kB / 0.7326 GB, free: 3.902 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.17e-05/0.3745, allocations: 19.8 kB / 0.7326 GB, free: 3.883 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.988e-05/0.3746, allocations: 17.88 kB / 0.7327 GB, free: 3.867 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.3746, allocations: 4 kB / 0.7327 GB, free: 3.863 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3746, allocations: 4 kB / 0.7327 GB, free: 3.859 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.3746, allocations: 7.922 kB / 0.7327 GB, free: 3.852 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007033/0.3753, allocations: 0.5551 MB / 0.7332 GB, free: 3.242 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3753, allocations: 3.984 kB / 0.7332 GB, free: 3.238 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.253e-05/0.3754, allocations: 12 kB / 0.7332 GB, free: 3.227 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.3754, allocations: 3.938 kB / 0.7332 GB, free: 3.223 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/0.3755, allocations: 7.984 kB / 0.7332 GB, free: 3.215 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3755, allocations: 4 kB / 0.7332 GB, free: 3.211 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3755, allocations: 4 kB / 0.7333 GB, free: 3.207 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005522/0.376, allocations: 407.9 kB / 0.7336 GB, free: 2.789 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.847e-05/0.3761, allocations: 88.95 kB / 0.7337 GB, free: 2.684 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.324e-05/0.3761, allocations: 11.94 kB / 0.7337 GB, free: 2.672 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.3762, allocations: 16.05 kB / 0.7338 GB, free: 2.656 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.376e-05/0.3763, allocations: 15.97 kB / 0.7338 GB, free: 2.641 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.191e-05/0.3763, allocations: 8 kB / 0.7338 GB, free: 2.633 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.577e-05/0.3764, allocations: 120 kB / 0.7339 GB, free: 2.516 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.3764, allocations: 0 / 0.7339 GB, free: 2.516 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003881/0.3768, allocations: 107.9 kB / 0.734 GB, free: 2.41 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.0007266/0.3775, allocations: 421.2 kB / 0.7344 GB, free: 2.094 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003597/0.3779, allocations: 199.2 kB / 0.7346 GB, free: 1.902 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3779, allocations: 8.125 kB / 0.7346 GB, free: 1.895 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.3781, allocations: 83.88 kB / 0.7347 GB, free: 1.812 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.3784, allocations: 23.98 kB / 0.7347 GB, free: 1.789 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006293/0.379, allocations: 406.5 kB / 0.7351 GB, free: 1.363 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002156/0.3792, allocations: 0.7202 MB / 0.7358 GB, free: 0.6172 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 9.787e-05/0.3793, allocations: 53.52 kB / 0.7358 GB, free: 0.5625 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.185e-05/0.3794, allocations: 19.42 kB / 0.7359 GB, free: 0.5469 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.3794, allocations: 0 / 0.7359 GB, free: 0.5469 MB / 0.545 GB Notification: Performance of Templates: time 0.005605/0.385, allocations: 3.273 MB / 0.7391 GB, free: 13.29 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)