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.525/1.525, allocations: 252 MB / 267.6 MB, free: 10.92 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.00132/0.00132, allocations: 182.6 kB / 327.3 MB, free: 2.195 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.033/2.033, allocations: 205.4 MB / 0.5783 GB, free: 20.21 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.0008709/0.0008711, allocations: 91.95 kB / 0.6829 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003915/0.0003916, allocations: 14.59 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2487, allocations: 106.3 MB / 0.9008 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.00217/0.2509, allocations: 1.404 MB / 0.9022 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002397/0.2533, allocations: 1.714 MB / 0.9039 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.854e-05/0.2534, allocations: 3.938 kB / 0.9039 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001777/0.2536, allocations: 23.86 kB / 0.9039 GB, free: 60.72 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001346/0.2537, allocations: 19.84 kB / 0.9039 GB, free: 60.7 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.0009064/0.2547, allocations: 243.5 kB / 0.9042 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002036/0.2549, allocations: 167.5 kB / 0.9043 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.521e-05/0.255, allocations: 25.53 kB / 0.9043 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.2551, allocations: 71.69 kB / 0.9044 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 9.709e-05/0.2552, allocations: 63.69 kB / 0.9045 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.975e-05/0.2552, allocations: 4 kB / 0.9045 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003565/0.2556, allocations: 231.6 kB / 0.9047 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.634e-05/0.2557, allocations: 43.88 kB / 0.9047 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.221e-05/0.2557, allocations: 53.58 kB / 0.9048 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002648/0.256, allocations: 251.5 kB / 0.905 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.256, allocations: 0 / 0.905 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.964e-06/0.256, allocations: 0 / 0.905 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.256, allocations: 0 / 0.905 GB, free: 59.56 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.0006879/0.2567, allocations: 0.4911 MB / 0.9055 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.2568, allocations: 12.02 kB / 0.9055 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.521e-05/0.2568, allocations: 19.77 kB / 0.9055 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.257, allocations: 212.8 kB / 0.9057 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.257, allocations: 12 kB / 0.9057 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.491e-05/0.2571, allocations: 12 kB / 0.9058 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002625/0.2573, allocations: 153.8 kB / 0.9059 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.2574, allocations: 3.938 kB / 0.9059 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.834e-05/0.2574, allocations: 3.984 kB / 0.9059 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.2574, allocations: 4 kB / 0.9059 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001875/0.2576, allocations: 75.95 kB / 0.906 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007464/0.2583, allocations: 412.5 kB / 0.9064 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002661/0.2586, allocations: 162.6 kB / 0.9065 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.2588, allocations: 64.83 kB / 0.9066 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.2588, allocations: 7.984 kB / 0.9066 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002708/0.2591, allocations: 157 kB / 0.9068 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=18): time 1.312e-06/0.2591, allocations: 0 / 0.9068 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of matching and sorting (n=18): time 0.0005598/0.2596, allocations: 295.5 kB / 0.907 GB, free: 57.32 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.2597, allocations: 93.23 kB / 0.9071 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.2598, allocations: 162.1 kB / 0.9073 GB, free: 57.04 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.2599, allocations: 41.7 kB / 0.9073 GB, free: 57 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.306e-05/0.2599, allocations: 104.6 kB / 0.9074 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.271e-05/0.26, allocations: 51.34 kB / 0.9075 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.027e-06/0.26, allocations: 7.938 kB / 0.9075 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.482e-05/0.26, allocations: 330.8 kB / 0.9078 GB, free: 56.5 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.2602, allocations: 71.94 kB / 0.9079 GB, free: 56.43 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.2603, allocations: 176.8 kB / 0.908 GB, free: 56.21 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001594/0.2605, allocations: 91.94 kB / 0.9081 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2605, allocations: 0 / 0.9081 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003763/0.2609, allocations: 277.2 kB / 0.9084 GB, free: 55.84 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.2609, allocations: 8 kB / 0.9084 GB, free: 55.83 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.2609, allocations: 4 kB / 0.9084 GB, free: 55.83 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.261, allocations: 7.938 kB / 0.9084 GB, free: 55.82 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.2611, allocations: 35.92 kB / 0.9084 GB, free: 55.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.2611, allocations: 11.94 kB / 0.9084 GB, free: 55.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.2612, allocations: 24.12 kB / 0.9085 GB, free: 55.75 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.705e-05/0.2613, allocations: 12 kB / 0.9085 GB, free: 55.74 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,$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.000131/0.2614, allocations: 151.5 kB / 0.9086 GB, free: 55.58 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.411e-05/0.2614, allocations: 15.81 kB / 0.9086 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.469e-05/0.2615, allocations: 21.86 kB / 0.9087 GB, free: 55.55 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.2615, allocations: 4 kB / 0.9087 GB, free: 55.54 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.2615, allocations: 7.938 kB / 0.9087 GB, free: 55.54 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.78e-06/0.2615, allocations: 3.953 kB / 0.9087 GB, free: 55.53 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006716/0.2622, allocations: 0.5606 MB / 0.9092 GB, free: 54.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2622, allocations: 0 / 0.9092 GB, free: 54.91 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.46e-05/0.2623, allocations: 19.98 kB / 0.9092 GB, free: 54.89 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.2623, allocations: 4 kB / 0.9092 GB, free: 54.89 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.2623, allocations: 11.94 kB / 0.9093 GB, free: 54.88 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.2623, allocations: 7.938 kB / 0.9093 GB, free: 54.87 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2623, allocations: 80 / 0.9093 GB, free: 54.87 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005209/0.2629, allocations: 414.6 kB / 0.9097 GB, free: 54.45 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.243e-05/0.2629, allocations: 96.94 kB / 0.9098 GB, free: 54.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.202e-05/0.263, allocations: 7.953 kB / 0.9098 GB, free: 54.33 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.2631, allocations: 15.98 kB / 0.9098 GB, free: 54.31 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.12e-05/0.2631, allocations: 24.03 kB / 0.9098 GB, free: 54.29 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/0.2632, allocations: 8 kB / 0.9098 GB, free: 54.28 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.083e-05/0.2632, allocations: 116.9 kB / 0.9099 GB, free: 54.17 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2632, allocations: 0 / 0.9099 GB, free: 54.17 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000401/0.2637, allocations: 104 kB / 0.91 GB, free: 54.07 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 (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.0007953/0.2645, allocations: 426 kB / 0.9104 GB, free: 53.75 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003627/0.2648, allocations: 180.3 kB / 0.9106 GB, free: 53.57 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.2648, allocations: 8.125 kB / 0.9106 GB, free: 53.57 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001487/0.265, allocations: 83.94 kB / 0.9107 GB, free: 53.48 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000318/0.2653, allocations: 25.09 kB / 0.9107 GB, free: 53.46 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007085/0.266, allocations: 439.6 kB / 0.9111 GB, free: 53 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000196/0.2663, allocations: 0.7243 MB / 0.9118 GB, free: 52.25 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.921e-05/0.2663, allocations: 19.44 kB / 0.9119 GB, free: 52.23 MB / 0.6042 GB Notification: Performance of SimCode: time 2.1e-07/0.2663, allocations: 0 / 0.9119 GB, free: 52.23 MB / 0.6042 GB Notification: Performance of Templates: time 0.005299/0.2716, allocations: 3.743 MB / 0.9155 GB, free: 48.49 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++ -Winvalid-pch -O0 -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/c/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