Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.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.8.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.61/1.61, allocations: 288.4 MB / 303.6 MB, free: 7.977 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.001135/0.001135, allocations: 177.3 kB / 372.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.792/1.792, allocations: 205.4 MB / 0.631 GB, free: 9.809 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.0008134/0.0008132, allocations: 98.22 kB / 0.7444 GB, free: 5.715 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004232/0.0004234, allocations: 19.67 kB / 0.8675 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2534, allocations: 115.3 MB / 0.9801 GB, free: 27.32 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.001715/0.2551, allocations: 1.396 MB / 0.9815 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001982/0.2571, allocations: 1.718 MB / 0.9832 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.568e-05/0.2572, allocations: 7.938 kB / 0.9832 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.2574, allocations: 11.92 kB / 0.9832 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000115/0.2575, allocations: 27.78 kB / 0.9832 GB, free: 24.13 MB / 0.6198 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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.0008772/0.2584, allocations: 253.7 kB / 0.9835 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001779/0.2586, allocations: 171.5 kB / 0.9836 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.881e-05/0.2587, allocations: 29.78 kB / 0.9837 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.2588, allocations: 63.77 kB / 0.9837 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.763e-05/0.2589, allocations: 67.67 kB / 0.9838 GB, free: 23.56 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/0.2589, allocations: 4 kB / 0.9838 GB, free: 23.56 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003012/0.2592, allocations: 231.6 kB / 0.984 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.251e-05/0.2593, allocations: 39.89 kB / 0.9841 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.755e-05/0.2594, allocations: 85.34 kB / 0.9841 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002449/0.2596, allocations: 251.5 kB / 0.9844 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.2596, allocations: 0 / 0.9844 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2597, allocations: 4 kB / 0.9844 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.2597, allocations: 0 / 0.9844 GB, free: 22.95 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.0006606/0.2603, allocations: 494.9 kB / 0.9848 GB, free: 22.42 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.2604, allocations: 12.03 kB / 0.9849 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.509e-05/0.2604, allocations: 16.75 kB / 0.9849 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001758/0.2606, allocations: 220 kB / 0.9851 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.2606, allocations: 8.359 kB / 0.9851 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.383e-05/0.2607, allocations: 20.12 kB / 0.9851 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002562/0.2609, allocations: 144.2 kB / 0.9852 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.261, allocations: 4 kB / 0.9853 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.261, allocations: 8 kB / 0.9853 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.261, allocations: 0 / 0.9853 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.2612, allocations: 82.17 kB / 0.9853 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006868/0.2619, allocations: 416.5 kB / 0.9857 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002508/0.2621, allocations: 146.6 kB / 0.9859 GB, free: 21.26 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.2623, allocations: 72.83 kB / 0.9859 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.2623, allocations: 0 / 0.9859 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002384/0.2625, allocations: 162.3 kB / 0.9861 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=18): time 1.563e-06/0.2626, allocations: 7.938 kB / 0.9861 GB, free: 21 MB / 0.6198 GB Notification: Performance of matching and sorting (n=18): time 0.0005269/0.2631, allocations: 290.7 kB / 0.9864 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.2631, allocations: 89.03 kB / 0.9865 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.2633, allocations: 173.2 kB / 0.9866 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.2633, allocations: 37.69 kB / 0.9867 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.919e-05/0.2633, allocations: 108.5 kB / 0.9868 GB, free: 20.28 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.911e-05/0.2634, allocations: 47.44 kB / 0.9868 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.485e-06/0.2634, allocations: 4 kB / 0.9868 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.571e-05/0.2635, allocations: 330.8 kB / 0.9871 GB, free: 19.9 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.2636, allocations: 67.95 kB / 0.9872 GB, free: 19.83 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/0.2637, allocations: 165.3 kB / 0.9874 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002733/0.264, allocations: 255.8 kB / 0.9876 GB, free: 19.33 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.264, allocations: 0 / 0.9876 GB, free: 19.33 MB / 0.6198 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003603/0.2644, allocations: 277.3 kB / 0.9879 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.2644, allocations: 11.98 kB / 0.9879 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.2644, allocations: 4 kB / 0.9879 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.2645, allocations: 4 kB / 0.9879 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.2646, allocations: 35.92 kB / 0.9879 GB, free: 19 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.2646, allocations: 7.938 kB / 0.9879 GB, free: 18.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.2647, allocations: 31.81 kB / 0.988 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.2648, allocations: 19.98 kB / 0.988 GB, free: 18.94 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.0001745/0.2649, allocations: 147.5 kB / 0.9881 GB, free: 18.79 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.428e-05/0.265, allocations: 15.81 kB / 0.9881 GB, free: 18.77 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.427e-05/0.265, allocations: 21.86 kB / 0.9882 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.265, allocations: 4 kB / 0.9882 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.265, allocations: 0 / 0.9882 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.265, allocations: 3.938 kB / 0.9882 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006737/0.2657, allocations: 0.5663 MB / 0.9887 GB, free: 18.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2657, allocations: 0 / 0.9887 GB, free: 18.12 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.441e-05/0.2658, allocations: 15.98 kB / 0.9887 GB, free: 18.11 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.2658, allocations: 3.938 kB / 0.9887 GB, free: 18.11 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/0.2659, allocations: 4 kB / 0.9887 GB, free: 18.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.2659, allocations: 11.98 kB / 0.9888 GB, free: 18.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2659, allocations: 0 / 0.9888 GB, free: 18.09 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005122/0.2664, allocations: 419.9 kB / 0.9892 GB, free: 17.66 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.7e-05/0.2665, allocations: 96.88 kB / 0.9892 GB, free: 17.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.389e-05/0.2665, allocations: 11.94 kB / 0.9893 GB, free: 17.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.2666, allocations: 11.98 kB / 0.9893 GB, free: 17.52 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.072e-05/0.2667, allocations: 15.98 kB / 0.9893 GB, free: 17.51 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.057e-05/0.2667, allocations: 11.98 kB / 0.9893 GB, free: 17.5 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.305e-05/0.2668, allocations: 125.6 kB / 0.9894 GB, free: 17.38 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.11e-07/0.2668, allocations: 0 / 0.9894 GB, free: 17.38 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004133/0.2672, allocations: 111.8 kB / 0.9895 GB, free: 17.27 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.0007622/0.268, allocations: 417.7 kB / 0.9899 GB, free: 16.96 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003402/0.2683, allocations: 194.9 kB / 0.9901 GB, free: 16.77 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2683, allocations: 0 / 0.9901 GB, free: 16.77 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001422/0.2685, allocations: 84.69 kB / 0.9902 GB, free: 16.69 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000344/0.2688, allocations: 23.98 kB / 0.9902 GB, free: 16.66 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006697/0.2695, allocations: 408.8 kB / 0.9906 GB, free: 16.24 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001365/0.2697, allocations: 0.7204 MB / 0.9913 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001005/0.2698, allocations: 49.5 kB / 0.9913 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.179e-05/0.2698, allocations: 23.42 kB / 0.9914 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of SimCode: time 2.5e-07/0.2698, allocations: 0 / 0.9914 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of Templates: time 0.005725/0.2755, allocations: 3.152 MB / 0.9944 GB, free: 12.27 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.makefile (rm -f Buildings_maint.8.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.sim & ./Buildings_maint.8.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1)