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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 101.3 kB / 15.98 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00168/0.001681, allocations: 194.8 kB / 16.91 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.561/1.561, allocations: 205.1 MB / 222.8 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.757/1.757, allocations: 292.3 MB / 0.5492 GB, free: 13.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 73.72 kB / 0.6717 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2911, allocations: 114.6 MB / 0.7835 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.003757/0.2949, allocations: 1.778 MB / 0.7853 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002867/0.2978, allocations: 1.791 MB / 0.787 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.115e-05/0.2979, allocations: 0 / 0.787 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002026/0.2982, allocations: 19.86 kB / 0.787 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001294/0.2983, allocations: 23.84 kB / 0.787 GB, free: 10.23 MB / 0.6075 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.001269/0.2996, allocations: 284.9 kB / 0.7873 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002775/0.2999, allocations: 187.5 kB / 0.7875 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.3, allocations: 25.77 kB / 0.7875 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.3002, allocations: 83.69 kB / 0.7876 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.3003, allocations: 67.69 kB / 0.7877 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.458e-05/0.3003, allocations: 12 kB / 0.7877 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004193/0.3007, allocations: 259.6 kB / 0.7879 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.3009, allocations: 59.81 kB / 0.788 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.098e-05/0.301, allocations: 63.66 kB / 0.788 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003257/0.3013, allocations: 251.6 kB / 0.7883 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3013, allocations: 3.938 kB / 0.7883 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3013, allocations: 0 / 0.7883 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.081e-06/0.3013, allocations: 0 / 0.7883 GB, free: 8.969 MB / 0.6075 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.000855/0.3022, allocations: 0.5027 MB / 0.7888 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.3022, allocations: 12.03 kB / 0.7888 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.776e-05/0.3023, allocations: 16.75 kB / 0.7888 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002393/0.3025, allocations: 220 kB / 0.789 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.3026, allocations: 12.38 kB / 0.789 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.215e-05/0.3026, allocations: 16.12 kB / 0.789 GB, free: 8.113 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000307/0.3029, allocations: 147.2 kB / 0.7892 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.3029, allocations: 0 / 0.7892 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/0.303, allocations: 0 / 0.7892 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.303, allocations: 7.984 kB / 0.7892 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000198/0.3032, allocations: 71.94 kB / 0.7893 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008952/0.3041, allocations: 416.5 kB / 0.7897 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003128/0.3044, allocations: 150.6 kB / 0.7898 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.3046, allocations: 64.83 kB / 0.7899 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.3046, allocations: 4 kB / 0.7899 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002952/0.3049, allocations: 163.2 kB / 0.79 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.613e-06/0.3049, allocations: 0 / 0.79 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18): time 0.0006341/0.3056, allocations: 281.3 kB / 0.7903 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.769e-05/0.3057, allocations: 89.09 kB / 0.7904 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.3058, allocations: 167.2 kB / 0.7905 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.278e-05/0.3058, allocations: 41.69 kB / 0.7906 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.609e-05/0.3059, allocations: 112.5 kB / 0.7907 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.304e-05/0.306, allocations: 47.44 kB / 0.7907 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.257e-05/0.3061, allocations: 49.7 kB / 0.7908 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.3062, allocations: 326.8 kB / 0.7911 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.3064, allocations: 67.95 kB / 0.7912 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002424/0.3066, allocations: 172.8 kB / 0.7913 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003874/0.307, allocations: 235.8 kB / 0.7915 GB, free: 5.309 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.307, allocations: 0 / 0.7915 GB, free: 5.309 MB / 0.6075 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004892/0.3075, allocations: 273 kB / 0.7918 GB, free: 5.035 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.3076, allocations: 4 kB / 0.7918 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.3076, allocations: 4 kB / 0.7918 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.475e-05/0.3076, allocations: 8.375 kB / 0.7918 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.3078, allocations: 39.92 kB / 0.7919 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.556e-05/0.3078, allocations: 11.92 kB / 0.7919 GB, free: 4.969 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.3079, allocations: 23.78 kB / 0.7919 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.152e-05/0.3079, allocations: 16 kB / 0.7919 GB, free: 4.93 MB / 0.6075 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.0001619/0.3081, allocations: 143.5 kB / 0.792 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.289e-05/0.3081, allocations: 15.81 kB / 0.7921 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.384e-05/0.3082, allocations: 25.86 kB / 0.7921 GB, free: 4.738 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3082, allocations: 4 kB / 0.7921 GB, free: 4.734 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.3082, allocations: 0 / 0.7921 GB, free: 4.734 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3082, allocations: 3.938 kB / 0.7921 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008554/0.3091, allocations: 0.5553 MB / 0.7926 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3091, allocations: 0 / 0.7926 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.899e-05/0.3092, allocations: 15.98 kB / 0.7926 GB, free: 4.105 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.3092, allocations: 11.92 kB / 0.7927 GB, free: 4.094 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.3092, allocations: 11.97 kB / 0.7927 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.3092, allocations: 0 / 0.7927 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3092, allocations: 0 / 0.7927 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006258/0.3099, allocations: 407.9 kB / 0.7931 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.484e-05/0.3099, allocations: 96.94 kB / 0.7932 GB, free: 3.551 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.818e-05/0.31, allocations: 15.94 kB / 0.7932 GB, free: 3.535 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001284/0.3101, allocations: 11.98 kB / 0.7932 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.166e-05/0.3102, allocations: 15.92 kB / 0.7932 GB, free: 3.508 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.577e-05/0.3102, allocations: 11.98 kB / 0.7932 GB, free: 3.496 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.367e-05/0.3103, allocations: 120 kB / 0.7933 GB, free: 3.379 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3103, allocations: 0 / 0.7933 GB, free: 3.379 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0004491/0.3108, allocations: 104 kB / 0.7934 GB, free: 3.277 MB / 0.6075 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.0008503/0.3116, allocations: 428.3 kB / 0.7938 GB, free: 2.957 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004055/0.312, allocations: 200.2 kB / 0.794 GB, free: 2.762 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3121, allocations: 0 / 0.794 GB, free: 2.762 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001694/0.3122, allocations: 82.86 kB / 0.7941 GB, free: 2.684 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.3126, allocations: 30.55 kB / 0.7941 GB, free: 2.656 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008048/0.3134, allocations: 436.4 kB / 0.7945 GB, free: 2.199 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003287/0.3137, allocations: 0.728 MB / 0.7953 GB, free: 1.445 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.387e-05/0.3138, allocations: 19.44 kB / 0.7953 GB, free: 1.43 MB / 0.6075 GB Notification: Performance of SimCode: time 3.61e-07/0.3138, allocations: 0 / 0.7953 GB, free: 1.43 MB / 0.6075 GB Notification: Performance of Templates: time 0.006161/0.32, allocations: 3.771 MB / 0.799 GB, free: 13.66 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.makefile make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.makefile clang++ -std=c++14 -fopenmp=libomp -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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterCalcHelperMain.o OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterCalcHelperMain.cpp In file included from OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterFunctions.cpp:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/pythonWrapper.c:35:3: error: use of undeclared identifier 'pythonExchangeValuesNoModelica' pythonExchangeValuesNoModelica( ^ 1 error generated. make: *** [: OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterCalcHelperMain.o] Error 1