Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.563/1.563, allocations: 292.3 MB / 308.1 MB, free: 4.324 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.001247/0.001247, allocations: 180.5 kB / 376.9 MB, free: 1.809 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.438/1.438, allocations: 205 MB / 0.6354 GB, free: 9.789 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009411/0.0009413, allocations: 95.45 kB / 0.748 GB, free: 61.34 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 55.91 kB / 0.8704 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2406, allocations: 114.6 MB / 0.9822 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.003457/0.2441, allocations: 1.773 MB / 0.984 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002718/0.2469, allocations: 1.811 MB / 0.9857 GB, free: 6.766 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.176e-05/0.247, allocations: 0 / 0.9857 GB, free: 6.766 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.2472, allocations: 27.84 kB / 0.9858 GB, free: 6.738 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001351/0.2473, allocations: 19.86 kB / 0.9858 GB, free: 6.719 MB / 0.7136 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.001225/0.2486, allocations: 263.5 kB / 0.986 GB, free: 6.465 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0002973/0.2489, allocations: 183.5 kB / 0.9862 GB, free: 6.285 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.249, allocations: 25.78 kB / 0.9862 GB, free: 6.262 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.2492, allocations: 71.69 kB / 0.9863 GB, free: 6.191 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.2493, allocations: 71.67 kB / 0.9864 GB, free: 6.121 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.338e-05/0.2493, allocations: 7.938 kB / 0.9864 GB, free: 6.113 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004647/0.2498, allocations: 251.6 kB / 0.9866 GB, free: 5.867 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.2499, allocations: 47.77 kB / 0.9867 GB, free: 5.82 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 8.649e-05/0.25, allocations: 67.64 kB / 0.9867 GB, free: 5.754 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0005273/0.2505, allocations: 347.2 kB / 0.9871 GB, free: 5.414 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2505, allocations: 0 / 0.9871 GB, free: 5.414 MB / 0.7136 GB Notification: Performance of FrontEnd: time 6.21e-07/0.2505, allocations: 4 kB / 0.9871 GB, free: 5.41 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.271e-06/0.2505, allocations: 0 / 0.9871 GB, free: 5.41 MB / 0.7136 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.000885/0.2514, allocations: 0.5027 MB / 0.9876 GB, free: 4.859 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.2515, allocations: 8.031 kB / 0.9876 GB, free: 4.852 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.384e-05/0.2516, allocations: 20.77 kB / 0.9876 GB, free: 4.832 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002287/0.2518, allocations: 231.9 kB / 0.9878 GB, free: 4.566 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.2518, allocations: 8.375 kB / 0.9878 GB, free: 4.559 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.491e-05/0.2519, allocations: 16.12 kB / 0.9878 GB, free: 4.543 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002737/0.2521, allocations: 141.5 kB / 0.988 GB, free: 4.395 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.2522, allocations: 0 / 0.988 GB, free: 4.395 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.2522, allocations: 8 kB / 0.988 GB, free: 4.387 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.2522, allocations: 0 / 0.988 GB, free: 4.387 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000191/0.2524, allocations: 79.94 kB / 0.988 GB, free: 4.309 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008033/0.2532, allocations: 404.5 kB / 0.9884 GB, free: 3.863 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002745/0.2535, allocations: 146.6 kB / 0.9886 GB, free: 3.711 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001338/0.2536, allocations: 68.83 kB / 0.9886 GB, free: 3.641 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.2537, allocations: 7.969 kB / 0.9886 GB, free: 3.633 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000265/0.2539, allocations: 149 kB / 0.9888 GB, free: 3.469 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=18): time 1.633e-06/0.254, allocations: 0 / 0.9888 GB, free: 3.469 MB / 0.7136 GB Notification: Performance of matching and sorting (n=18): time 0.0006062/0.2546, allocations: 287.9 kB / 0.9891 GB, free: 3.184 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.2546, allocations: 89.05 kB / 0.9891 GB, free: 3.078 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.2548, allocations: 175.2 kB / 0.9893 GB, free: 2.898 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.2548, allocations: 37.64 kB / 0.9893 GB, free: 2.855 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.734e-05/0.2549, allocations: 112.5 kB / 0.9895 GB, free: 2.742 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 5.128e-05/0.2549, allocations: 51.34 kB / 0.9895 GB, free: 2.691 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.716e-05/0.255, allocations: 53.83 kB / 0.9896 GB, free: 2.633 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001065/0.2551, allocations: 330.8 kB / 0.9899 GB, free: 2.301 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/0.2553, allocations: 71.95 kB / 0.9899 GB, free: 2.23 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.2555, allocations: 160.8 kB / 0.9901 GB, free: 2.027 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003282/0.2558, allocations: 243.8 kB / 0.9903 GB, free: 1.746 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.2558, allocations: 4 kB / 0.9903 GB, free: 1.742 MB / 0.7136 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004331/0.2563, allocations: 261.1 kB / 0.9906 GB, free: 1.48 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.2563, allocations: 4.375 kB / 0.9906 GB, free: 1.477 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.2563, allocations: 11.94 kB / 0.9906 GB, free: 1.465 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.2563, allocations: 8 kB / 0.9906 GB, free: 1.457 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/0.2565, allocations: 43.91 kB / 0.9906 GB, free: 1.414 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.2565, allocations: 7.938 kB / 0.9906 GB, free: 1.406 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.2566, allocations: 23.78 kB / 0.9907 GB, free: 1.383 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.2566, allocations: 8 kB / 0.9907 GB, free: 1.375 MB / 0.7136 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.0001584/0.2568, allocations: 151.5 kB / 0.9908 GB, free: 1.219 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.234e-05/0.2568, allocations: 19.8 kB / 0.9908 GB, free: 1.199 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.475e-05/0.2569, allocations: 17.88 kB / 0.9909 GB, free: 1.184 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.2569, allocations: 0 / 0.9909 GB, free: 1.184 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.2569, allocations: 4 kB / 0.9909 GB, free: 1.18 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.2569, allocations: 7.922 kB / 0.9909 GB, free: 1.172 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007882/0.2577, allocations: 0.549 MB / 0.9914 GB, free: 0.5664 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.2577, allocations: 4 kB / 0.9914 GB, free: 0.5625 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.047e-05/0.2578, allocations: 8 kB / 0.9914 GB, free: 0.5547 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.271e-06/0.2578, allocations: 7.938 kB / 0.9914 GB, free: 0.5469 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.2579, allocations: 11.98 kB / 0.9914 GB, free: 0.5352 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2579, allocations: 0 / 0.9914 GB, free: 0.5352 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2579, allocations: 0 / 0.9914 GB, free: 0.5352 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001438/0.2593, allocations: 1.362 MB / 0.9928 GB, free: 15.03 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.986e-05/0.2594, allocations: 92.89 kB / 0.9929 GB, free: 14.92 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.076e-05/0.2594, allocations: 7.984 kB / 0.9929 GB, free: 14.91 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001292/0.2595, allocations: 20.11 kB / 0.9929 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.261e-05/0.2596, allocations: 7.984 kB / 0.9929 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.2596, allocations: 15.98 kB / 0.9929 GB, free: 14.87 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 8.824e-05/0.2597, allocations: 112 kB / 0.993 GB, free: 14.76 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2597, allocations: 0 / 0.993 GB, free: 14.76 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0005074/0.2603, allocations: 111.9 kB / 0.9931 GB, free: 14.65 MB / 0.7292 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.0008514/0.2611, allocations: 442.8 kB / 0.9935 GB, free: 14.28 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003873/0.2615, allocations: 175.6 kB / 0.9937 GB, free: 14.11 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2615, allocations: 4.688 kB / 0.9937 GB, free: 14.1 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001606/0.2617, allocations: 79.95 kB / 0.9938 GB, free: 14.02 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.262, allocations: 27.92 kB / 0.9938 GB, free: 14 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008145/0.2628, allocations: 0.5537 MB / 0.9944 GB, free: 13.4 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.2631, allocations: 0.7285 MB / 0.9951 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001138/0.2632, allocations: 49.44 kB / 0.9951 GB, free: 12.6 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.758e-05/0.2633, allocations: 19.44 kB / 0.9951 GB, free: 12.58 MB / 0.7292 GB Notification: Performance of SimCode: time 2.11e-07/0.2633, allocations: 0 / 0.9951 GB, free: 12.58 MB / 0.7292 GB Notification: Performance of Templates: time 0.006643/0.2699, allocations: 3.301 MB / 0.9984 GB, free: 9.285 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.makefile (rm -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe >> ../files/Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.sim & ./Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1)