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/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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.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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.377/1.377, allocations: 251.5 MB / 267.4 MB, free: 11.08 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00102/0.00102, allocations: 171.7 kB / 326.5 MB, free: 2.719 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.803/1.803, allocations: 205 MB / 0.5766 GB, free: 21.07 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008877/0.0008878, allocations: 90.58 kB / 0.6803 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003283/0.0003283, allocations: 8.531 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2316, allocations: 105.4 MB / 0.8968 GB, free: 68.2 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002036/0.2336, allocations: 1.448 MB / 0.8982 GB, free: 66.73 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002401/0.2361, allocations: 1.814 MB / 0.8999 GB, free: 64.91 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.2362, allocations: 7.938 kB / 0.8999 GB, free: 64.9 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001833/0.2364, allocations: 19.86 kB / 0.9 GB, free: 64.88 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.2366, allocations: 19.84 kB / 0.9 GB, free: 64.86 MB / 0.6042 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.001327/0.2379, allocations: 258.3 kB / 0.9002 GB, free: 64.61 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002782/0.2382, allocations: 183.5 kB / 0.9004 GB, free: 64.43 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.2384, allocations: 21.56 kB / 0.9004 GB, free: 64.41 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.2385, allocations: 71.69 kB / 0.9005 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001166/0.2386, allocations: 67.67 kB / 0.9006 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.758e-05/0.2387, allocations: 4 kB / 0.9006 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004709/0.2392, allocations: 251.6 kB / 0.9008 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.2393, allocations: 47.83 kB / 0.9008 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.292e-05/0.2394, allocations: 59.66 kB / 0.9009 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0003677/0.2397, allocations: 251.5 kB / 0.9011 GB, free: 63.67 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2398, allocations: 0 / 0.9011 GB, free: 63.67 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.424e-06/0.2398, allocations: 4 kB / 0.9011 GB, free: 63.66 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.945e-06/0.2398, allocations: 0 / 0.9011 GB, free: 63.66 MB / 0.6042 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.0007486/0.2405, allocations: 0.491 MB / 0.9016 GB, free: 63.12 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.2406, allocations: 12.03 kB / 0.9016 GB, free: 63.11 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.081e-05/0.2407, allocations: 16.75 kB / 0.9017 GB, free: 63.1 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001902/0.2408, allocations: 220 kB / 0.9019 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.2409, allocations: 4.375 kB / 0.9019 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.506e-05/0.2409, allocations: 16.12 kB / 0.9019 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002671/0.2412, allocations: 147.3 kB / 0.902 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.2412, allocations: 3.938 kB / 0.902 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.2412, allocations: 7.984 kB / 0.902 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.2412, allocations: 4 kB / 0.902 GB, free: 62.65 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001938/0.2414, allocations: 77.67 kB / 0.9021 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007568/0.2422, allocations: 412.6 kB / 0.9025 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002711/0.2425, allocations: 166.4 kB / 0.9027 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.2426, allocations: 73.8 kB / 0.9027 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.2427, allocations: 0 / 0.9027 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002448/0.2429, allocations: 153 kB / 0.9029 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=18): time 1.402e-06/0.2429, allocations: 0 / 0.9029 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of matching and sorting (n=18): time 0.0005752/0.2435, allocations: 299.9 kB / 0.9032 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.2436, allocations: 89.23 kB / 0.9033 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.2437, allocations: 178 kB / 0.9034 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.382e-05/0.2437, allocations: 33.7 kB / 0.9035 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.814e-05/0.2438, allocations: 104.6 kB / 0.9036 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.858e-05/0.2438, allocations: 51.34 kB / 0.9036 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.379e-05/0.2439, allocations: 37.7 kB / 0.9036 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.65e-05/0.244, allocations: 330.8 kB / 0.904 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.2441, allocations: 75.94 kB / 0.904 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.2443, allocations: 168.8 kB / 0.9042 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002921/0.2446, allocations: 243.8 kB / 0.9044 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.2446, allocations: 4 kB / 0.9044 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000404/0.245, allocations: 277.3 kB / 0.9047 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.245, allocations: 8 kB / 0.9047 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.245, allocations: 4 kB / 0.9047 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.245, allocations: 4 kB / 0.9047 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.2452, allocations: 39.92 kB / 0.9047 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.2452, allocations: 7.984 kB / 0.9048 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.2453, allocations: 31.84 kB / 0.9048 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/0.2453, allocations: 8 kB / 0.9048 GB, free: 59.61 MB / 0.6042 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.0001145/0.2454, allocations: 148.1 kB / 0.9049 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.219e-05/0.2455, allocations: 19.8 kB / 0.9049 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.24e-05/0.2455, allocations: 21.88 kB / 0.905 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.2455, allocations: 4 kB / 0.905 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.2456, allocations: 3.938 kB / 0.905 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2456, allocations: 7.938 kB / 0.905 GB, free: 59.4 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006784/0.2463, allocations: 0.5568 MB / 0.9055 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.2463, allocations: 0 / 0.9055 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.359e-05/0.2464, allocations: 19.92 kB / 0.9055 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-06/0.2464, allocations: 11.94 kB / 0.9056 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.2464, allocations: 11.98 kB / 0.9056 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.2464, allocations: 0 / 0.9056 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2464, allocations: 0 / 0.9056 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000539/0.247, allocations: 422.2 kB / 0.906 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.209e-05/0.247, allocations: 92.95 kB / 0.9061 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.56e-05/0.247, allocations: 7.938 kB / 0.9061 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.2472, allocations: 15.98 kB / 0.9061 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.169e-05/0.2472, allocations: 23.81 kB / 0.9061 GB, free: 58.16 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.58e-05/0.2473, allocations: 16.03 kB / 0.9061 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.653e-05/0.2473, allocations: 120.9 kB / 0.9062 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of sort global known variables: time 9e-08/0.2473, allocations: 0 / 0.9062 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004301/0.2478, allocations: 107.9 kB / 0.9063 GB, free: 57.92 MB / 0.6042 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.0008179/0.2486, allocations: 421.3 kB / 0.9067 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003695/0.249, allocations: 183.7 kB / 0.9069 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.249, allocations: 0.75 kB / 0.9069 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001543/0.2492, allocations: 91.88 kB / 0.907 GB, free: 57.34 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.2495, allocations: 23.98 kB / 0.907 GB, free: 57.31 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007238/0.2502, allocations: 430.2 kB / 0.9074 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001538/0.2504, allocations: 0.7244 MB / 0.9081 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.09e-05/0.2504, allocations: 23.42 kB / 0.9082 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of SimCode: time 5.71e-07/0.2504, allocations: 0 / 0.9082 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of Templates: time 0.006031/0.2565, allocations: 3.734 MB / 0.9118 GB, free: 52.36 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.makefile make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.makefile clang++ -std=c++14 -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterCalcHelperMain.o OMCppBuildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterCalcHelperMain.cpp In file included from OMCppBuildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterFunctions.cpp:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources/pythonWrapper.c:35:3: error: use of undeclared identifier 'pythonExchangeValuesNoModelica' pythonExchangeValuesNoModelica( ^ 1 error generated. make: *** [: OMCppBuildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterCalcHelperMain.o] Error 1