Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Python_3_8.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Utilities.IO.Python_3_8.Examples.KalmanFilter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|kalFil.uR.1.|kalFil.yR.1.|sine.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter") translateModel(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|kalFil.uR.1.|kalFil.yR.1.|sine.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 104.1 kB / 16.41 MB, free: 6.508 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.001095/0.001095, allocations: 192.2 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.658/2.658, allocations: 469.4 MB / 0.7428 GB, free: 3.594 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 64.12 kB / 1.065 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8781/0.8795, allocations: 159.1 MB / 1.221 GB, free: 2.375 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002941/0.8825, allocations: 1.731 MB / 1.223 GB, free: 0.6328 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002893/0.8854, allocations: 1.811 MB / 1.224 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.027e-05/0.8856, allocations: 7.938 kB / 1.224 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001796/0.8857, allocations: 23.8 kB / 1.224 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.8859, allocations: 35.72 kB / 1.224 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001323/0.8873, allocations: 311.4 kB / 1.225 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002944/0.8876, allocations: 215.5 kB / 1.225 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.8877, allocations: 33.55 kB / 1.225 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.8878, allocations: 79.69 kB / 1.225 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.888, allocations: 79.66 kB / 1.225 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.811e-05/0.888, allocations: 8 kB / 1.225 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004692/0.8885, allocations: 283.5 kB / 1.225 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.8886, allocations: 55.88 kB / 1.225 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 7.687e-05/0.8887, allocations: 71.59 kB / 1.225 GB, free: 13.63 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004764/0.8892, allocations: 374.9 kB / 1.226 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.748e-06/0.8892, allocations: 0 / 1.226 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.483e-06/0.8892, allocations: 4 kB / 1.226 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.544e-06/0.8892, allocations: 0 / 1.226 GB, free: 13.27 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0009177/0.8901, allocations: 0.5163 MB / 1.226 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.8902, allocations: 8.031 kB / 1.226 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.253e-05/0.8903, allocations: 24.67 kB / 1.226 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/0.8905, allocations: 228.6 kB / 1.227 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.8905, allocations: 16.31 kB / 1.227 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.66e-05/0.8906, allocations: 12 kB / 1.227 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002981/0.8909, allocations: 147.3 kB / 1.227 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.8909, allocations: 0 / 1.227 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.918e-05/0.8909, allocations: 7.984 kB / 1.227 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.8909, allocations: 4 kB / 1.227 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002166/0.8912, allocations: 83.83 kB / 1.227 GB, free: 12.13 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008902/0.8921, allocations: 424.7 kB / 1.227 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003011/0.8924, allocations: 154.5 kB / 1.227 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.8925, allocations: 72.75 kB / 1.227 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.8926, allocations: 4 kB / 1.227 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002904/0.8929, allocations: 162.9 kB / 1.228 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=20): time 1.463e-06/0.8929, allocations: 0 / 1.228 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of matching and sorting (n=20): time 0.000654/0.8935, allocations: 311.7 kB / 1.228 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/0.8936, allocations: 93.05 kB / 1.228 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.8938, allocations: 174.3 kB / 1.228 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.123e-05/0.8938, allocations: 37.7 kB / 1.228 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.956e-05/0.8939, allocations: 108.6 kB / 1.228 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.836e-05/0.894, allocations: 63.27 kB / 1.228 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.408e-05/0.894, allocations: 53.98 kB / 1.228 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.8942, allocations: 338.8 kB / 1.229 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.8943, allocations: 76.52 kB / 1.229 GB, free: 9.961 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002215/0.8945, allocations: 190.4 kB / 1.229 GB, free: 9.73 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003613/0.8949, allocations: 259.8 kB / 1.229 GB, free: 9.434 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.8949, allocations: 0 / 1.229 GB, free: 9.434 MB / 0.9512 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004624/0.8954, allocations: 297 kB / 1.23 GB, free: 9.137 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.8954, allocations: 8 kB / 1.23 GB, free: 9.129 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.8954, allocations: 7.938 kB / 1.23 GB, free: 9.121 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.8955, allocations: 8.359 kB / 1.23 GB, free: 9.113 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.8956, allocations: 43.92 kB / 1.23 GB, free: 9.07 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/0.8956, allocations: 7.938 kB / 1.23 GB, free: 9.062 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.8958, allocations: 23.83 kB / 1.23 GB, free: 9.039 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.277e-05/0.8958, allocations: 15.98 kB / 1.23 GB, free: 9.023 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 25 ($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_temp[1],$PRE.ran.uRWri_temp[1],ran.uRWri[1],$PRE.ran.uRWri[1],kalFil.sampleTrigger,$whenCondition2,kalFil.uRWri_temp[1],$PRE.kalFil.uRWri_temp[1],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 (34): * Single equations (assignments): 34 * 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.000158/0.896, allocations: 160.5 kB / 1.23 GB, free: 8.859 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.373e-05/0.896, allocations: 15.81 kB / 1.23 GB, free: 8.844 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.65e-05/0.8961, allocations: 25.86 kB / 1.23 GB, free: 8.809 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.8961, allocations: 4 kB / 1.23 GB, free: 8.805 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.8961, allocations: 0 / 1.23 GB, free: 8.805 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.8961, allocations: 0 / 1.23 GB, free: 8.805 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008601/0.897, allocations: 0.5843 MB / 1.23 GB, free: 8.164 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.897, allocations: 96 / 1.23 GB, free: 8.164 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.58e-05/0.8971, allocations: 15.94 kB / 1.23 GB, free: 8.148 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.8971, allocations: 0 / 1.23 GB, free: 8.148 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.8971, allocations: 15.98 kB / 1.23 GB, free: 8.133 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.8971, allocations: 3.938 kB / 1.23 GB, free: 8.129 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.8971, allocations: 4 kB / 1.23 GB, free: 8.125 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006435/0.8978, allocations: 437 kB / 1.231 GB, free: 7.684 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.078e-05/0.8978, allocations: 92.95 kB / 1.231 GB, free: 7.574 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.868e-05/0.8979, allocations: 19.98 kB / 1.231 GB, free: 7.555 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.898, allocations: 12.05 kB / 1.231 GB, free: 7.543 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.898e-05/0.8981, allocations: 15.98 kB / 1.231 GB, free: 7.527 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.858e-05/0.8981, allocations: 11.98 kB / 1.231 GB, free: 7.516 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.537e-05/0.8982, allocations: 120.2 kB / 1.231 GB, free: 7.398 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8982, allocations: 0 / 1.231 GB, free: 7.398 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004734/0.8987, allocations: 119.8 kB / 1.231 GB, free: 7.281 MB / 0.9512 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: 15 (kalFil.sampleTrigger,ran.sampleTrigger,$whenCondition2,$whenCondition1,ran.firstTrigger,ran.yR[1],ran.uRIntPre[1],ran.uRWri[1],ran.uRWri_temp[1],kalFil.firstTrigger,kalFil.yR[1],kalFil.uRIntPre[1],kalFil.uRWri[1],kalFil.uRWri_temp[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 (20): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.0009093/0.8996, allocations: 438.1 kB / 1.232 GB, free: 6.957 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004545/0.9001, allocations: 195.7 kB / 1.232 GB, free: 6.766 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.9001, allocations: 192 / 1.232 GB, free: 6.766 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001792/0.9003, allocations: 86.7 kB / 1.232 GB, free: 6.684 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003361/0.9006, allocations: 41.95 kB / 1.232 GB, free: 6.645 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008/0.9014, allocations: 404.3 kB / 1.232 GB, free: 6.215 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003561/0.9018, allocations: 0.7281 MB / 1.233 GB, free: 5.461 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.581e-05/0.9019, allocations: 19.44 kB / 1.233 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of SimCode: time 2.2e-07/0.9019, allocations: 0 / 1.233 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of Templates: time 0.006346/0.9082, allocations: 3.942 MB / 1.237 GB, free: 1.5 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.makefile make -j1 -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.makefile clang++ -std=c++17 -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/Modelica 4.0.0+maint.om/Resources/C-Sources""-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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/Modelica 4.0.0+maint.om/Resources/C-Sources" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterCalcHelperMain.o OMCppBuildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterCalcHelperMain.cpp In file included from OMCppBuildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/Resources/C-Sources/pythonWrapper.c:35:3: error: use of undeclared identifier 'pythonExchangeValuesNoModelica' pythonExchangeValuesNoModelica( ^ 1 error generated. make: *** [: OMCppBuildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterCalcHelperMain.o] Error 1