Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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_8.0.0_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.628/2.628, allocations: 287.5 MB / 302.4 MB, free: 8.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001349/0.001349, allocations: 187.9 kB / 371 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.095/2.095, allocations: 205.4 MB / 0.6297 GB, free: 10.58 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009126/0.0009124, allocations: 79.25 kB / 0.743 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007171/0.0007172, allocations: 11.42 kB / 0.8658 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2432, allocations: 115.3 MB / 0.9784 GB, free: 28.35 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002203/0.2455, allocations: 1.408 MB / 0.9797 GB, free: 26.92 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.003101/0.2486, allocations: 1.702 MB / 0.9814 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.2488, allocations: 3.938 kB / 0.9814 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001778/0.249, allocations: 19.86 kB / 0.9814 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001424/0.2491, allocations: 19.84 kB / 0.9814 GB, free: 25.16 MB / 0.6198 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.001069/0.2502, allocations: 247.5 kB / 0.9817 GB, free: 24.92 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002738/0.2505, allocations: 175.4 kB / 0.9818 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.2506, allocations: 21.84 kB / 0.9819 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001447/0.2508, allocations: 67.75 kB / 0.9819 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001188/0.2509, allocations: 59.69 kB / 0.982 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.942e-05/0.251, allocations: 4 kB / 0.982 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006116/0.2516, allocations: 231.6 kB / 0.9822 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.2517, allocations: 43.88 kB / 0.9822 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.51e-05/0.2518, allocations: 49.64 kB / 0.9823 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004146/0.2522, allocations: 255.5 kB / 0.9825 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.2522, allocations: 0 / 0.9825 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.264e-06/0.2523, allocations: 0 / 0.9825 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.88e-06/0.2523, allocations: 0 / 0.9825 GB, free: 24.03 MB / 0.6198 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.0009336/0.2532, allocations: 498.8 kB / 0.983 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.2533, allocations: 8.031 kB / 0.983 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.36e-05/0.2533, allocations: 23.77 kB / 0.983 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002336/0.2536, allocations: 220 kB / 0.9833 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.344e-05/0.2536, allocations: 11.98 kB / 0.9833 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.901e-05/0.2537, allocations: 15.94 kB / 0.9833 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003949/0.2541, allocations: 149.8 kB / 0.9834 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.2541, allocations: 3.938 kB / 0.9834 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.146e-05/0.2541, allocations: 0 / 0.9834 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.2542, allocations: 4 kB / 0.9834 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003185/0.2545, allocations: 79.94 kB / 0.9835 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.2556, allocations: 420.5 kB / 0.9839 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004186/0.2561, allocations: 150.6 kB / 0.9841 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002159/0.2563, allocations: 68.81 kB / 0.9841 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.426e-05/0.2564, allocations: 4 kB / 0.9841 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004042/0.2568, allocations: 159.6 kB / 0.9843 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=18): time 4.539e-06/0.2568, allocations: 3.984 kB / 0.9843 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of matching and sorting (n=18): time 0.0009363/0.2578, allocations: 293.3 kB / 0.9846 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.428e-05/0.2578, allocations: 97.22 kB / 0.9847 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.258, allocations: 164.2 kB / 0.9848 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.382e-05/0.2581, allocations: 33.7 kB / 0.9848 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.121e-05/0.2581, allocations: 108.5 kB / 0.9849 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 6.443e-05/0.2582, allocations: 47.44 kB / 0.985 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.559e-05/0.2582, allocations: 11.94 kB / 0.985 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.573e-05/0.2583, allocations: 330.8 kB / 0.9853 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002255/0.2585, allocations: 71.95 kB / 0.9854 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002787/0.2588, allocations: 169.3 kB / 0.9855 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002772/0.2591, allocations: 95.92 kB / 0.9856 GB, free: 20.58 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.2592, allocations: 0 / 0.9856 GB, free: 20.58 MB / 0.6198 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007004/0.2599, allocations: 273.1 kB / 0.9859 GB, free: 20.31 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.2599, allocations: 8 kB / 0.9859 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.2599, allocations: 4 kB / 0.9859 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.467e-05/0.26, allocations: 7.938 kB / 0.9859 GB, free: 20.29 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002571/0.2602, allocations: 43.91 kB / 0.986 GB, free: 20.25 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.2602, allocations: 8.203 kB / 0.986 GB, free: 20.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/0.2604, allocations: 27.84 kB / 0.986 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.2605, allocations: 11.98 kB / 0.986 GB, free: 20.2 MB / 0.6198 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,$PRE.kalFil.firstTrigger,kalFil.firstTrigger,$PRE.kalFil.yR[1],kalFil.yR[1],$PRE.kalFil.uRIntPre[1],kalFil.uRIntPre[1],$PRE.ran.firstTrigger,ran.firstTrigger,$PRE.ran.uRIntPre[1],ran.uRIntPre[1],$whenCondition1,ran.sampleTrigger,$PRE.ran.uRWri[1],ran.uRWri[1],$whenCondition2,kalFil.sampleTrigger,$PRE.ran.yR[1],ran.yR[1],$PRE.kalFil.uRWri[1],kalFil.uRWri[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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001977/0.2607, allocations: 147.5 kB / 0.9861 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.1e-05/0.2607, allocations: 15.81 kB / 0.9862 GB, free: 20.03 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.075e-05/0.2608, allocations: 17.88 kB / 0.9862 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.2608, allocations: 0 / 0.9862 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.2608, allocations: 7.984 kB / 0.9862 GB, free: 20.01 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.2608, allocations: 7.953 kB / 0.9862 GB, free: 20 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.262, allocations: 0.5547 MB / 0.9867 GB, free: 19.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.2621, allocations: 0 / 0.9867 GB, free: 19.39 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000175/0.2622, allocations: 19.98 kB / 0.9868 GB, free: 19.37 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.116e-06/0.2623, allocations: 4 kB / 0.9868 GB, free: 19.37 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.028e-05/0.2623, allocations: 15.89 kB / 0.9868 GB, free: 19.35 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.441e-06/0.2623, allocations: 3.938 kB / 0.9868 GB, free: 19.35 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.2623, allocations: 0 / 0.9868 GB, free: 19.35 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000919/0.2633, allocations: 416 kB / 0.9872 GB, free: 18.92 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.32e-05/0.2633, allocations: 96.89 kB / 0.9873 GB, free: 18.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.079e-05/0.2634, allocations: 11.94 kB / 0.9873 GB, free: 18.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.2636, allocations: 23.98 kB / 0.9873 GB, free: 18.77 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.591e-05/0.2637, allocations: 12.05 kB / 0.9873 GB, free: 18.76 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.669e-05/0.2638, allocations: 15.98 kB / 0.9873 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.772e-05/0.2639, allocations: 116.9 kB / 0.9874 GB, free: 18.63 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.6e-07/0.2639, allocations: 0 / 0.9874 GB, free: 18.63 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006086/0.2645, allocations: 107.9 kB / 0.9875 GB, free: 18.53 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001089/0.2656, allocations: 421 kB / 0.9879 GB, free: 18.21 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.00065/0.2663, allocations: 182.4 kB / 0.9881 GB, free: 18.03 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.2663, allocations: 8.188 kB / 0.9881 GB, free: 18.02 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002537/0.2666, allocations: 75.95 kB / 0.9882 GB, free: 17.95 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004658/0.267, allocations: 32.89 kB / 0.9882 GB, free: 17.92 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.2681, allocations: 403.4 kB / 0.9886 GB, free: 17.5 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001896/0.2683, allocations: 0.7244 MB / 0.9893 GB, free: 16.75 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001872/0.2685, allocations: 45.5 kB / 0.9894 GB, free: 16.7 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.024e-05/0.2686, allocations: 15.44 kB / 0.9894 GB, free: 16.68 MB / 0.6198 GB Notification: Performance of SimCode: time 1.203e-06/0.2686, allocations: 0 / 0.9894 GB, free: 16.68 MB / 0.6198 GB Notification: Performance of Templates: time 0.009384/0.278, allocations: 3.128 MB / 0.9924 GB, free: 13.56 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.makefile (rm -f Buildings_8.0.0_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; mkfifo Buildings_8.0.0_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe >> ../files/Buildings_8.0.0_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.sim & ./Buildings_8.0.0_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1)