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.001468/0.001468, allocations: 105.8 kB / 16.41 MB, free: 6.5 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.001446/0.001446, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.381/1.381, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.748/2.748, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 59.91 kB / 1.055 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8833/0.8847, allocations: 157.4 MB / 1.208 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003334/0.8881, allocations: 1.738 MB / 1.21 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002915/0.891, allocations: 1.802 MB / 1.212 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.8912, allocations: 0 / 1.212 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002002/0.8914, allocations: 39.7 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001583/0.8916, allocations: 19.81 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001537/0.8932, allocations: 321 kB / 1.212 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003842/0.8936, allocations: 219.5 kB / 1.212 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.8937, allocations: 37.47 kB / 1.212 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002448/0.894, allocations: 83.69 kB / 1.213 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001857/0.8942, allocations: 71.67 kB / 1.213 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.149e-05/0.8942, allocations: 12 kB / 1.213 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005954/0.8948, allocations: 279.5 kB / 1.213 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.8949, allocations: 59.8 kB / 1.213 GB, free: 9.125 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.8951, allocations: 67.61 kB / 1.213 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0006201/0.8957, allocations: 380.9 kB / 1.213 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.8957, allocations: 0 / 1.213 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.984e-06/0.8957, allocations: 0 / 1.213 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.049e-05/0.8957, allocations: 0 / 1.213 GB, free: 8.688 MB / 0.9356 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.0009677/0.8967, allocations: 0.5184 MB / 1.214 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.8968, allocations: 8.031 kB / 1.214 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.75e-05/0.8968, allocations: 24.75 kB / 1.214 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002526/0.8971, allocations: 228.6 kB / 1.214 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.855e-05/0.8971, allocations: 12.31 kB / 1.214 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.538e-05/0.8972, allocations: 20 kB / 1.214 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003277/0.8975, allocations: 143.3 kB / 1.214 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.8975, allocations: 0 / 1.214 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.173e-05/0.8976, allocations: 4 kB / 1.214 GB, free: 7.637 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.8976, allocations: 4 kB / 1.214 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002195/0.8978, allocations: 83.88 kB / 1.214 GB, free: 7.551 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009044/0.8987, allocations: 432.6 kB / 1.215 GB, free: 7.078 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003063/0.899, allocations: 158.4 kB / 1.215 GB, free: 6.914 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.8992, allocations: 72.81 kB / 1.215 GB, free: 6.84 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.8992, allocations: 4 kB / 1.215 GB, free: 6.836 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002937/0.8995, allocations: 162.7 kB / 1.215 GB, free: 6.66 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=20): time 1.923e-06/0.8995, allocations: 0 / 1.215 GB, free: 6.66 MB / 0.9356 GB Notification: Performance of matching and sorting (n=20): time 0.0006853/0.9002, allocations: 311.4 kB / 1.215 GB, free: 6.352 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.158e-05/0.9003, allocations: 89.11 kB / 1.216 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001675/0.9005, allocations: 176.1 kB / 1.216 GB, free: 6.066 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/0.9005, allocations: 33.7 kB / 1.216 GB, free: 6.027 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.997e-05/0.9006, allocations: 116.5 kB / 1.216 GB, free: 5.91 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 7.014e-05/0.9007, allocations: 59.27 kB / 1.216 GB, free: 5.852 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.182e-05/0.9008, allocations: 58.11 kB / 1.216 GB, free: 5.785 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.9009, allocations: 338.8 kB / 1.216 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001714/0.9011, allocations: 72.52 kB / 1.216 GB, free: 5.375 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002293/0.9013, allocations: 185.9 kB / 1.217 GB, free: 5.148 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000386/0.9017, allocations: 255.8 kB / 1.217 GB, free: 4.855 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.9017, allocations: 8 kB / 1.217 GB, free: 4.848 MB / 0.9356 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005262/0.9022, allocations: 289 kB / 1.217 GB, free: 4.559 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.9023, allocations: 8 kB / 1.217 GB, free: 4.551 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.9023, allocations: 4.375 kB / 1.217 GB, free: 4.547 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.9023, allocations: 8 kB / 1.217 GB, free: 4.539 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.9025, allocations: 43.91 kB / 1.217 GB, free: 4.496 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.9025, allocations: 7.938 kB / 1.217 GB, free: 4.488 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.9026, allocations: 27.78 kB / 1.217 GB, free: 4.461 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.912e-05/0.9026, allocations: 11.98 kB / 1.217 GB, free: 4.449 MB / 0.9356 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.0001518/0.9028, allocations: 156 kB / 1.217 GB, free: 4.289 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.865e-05/0.9028, allocations: 23.75 kB / 1.217 GB, free: 4.266 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.278e-05/0.9029, allocations: 25.86 kB / 1.217 GB, free: 4.238 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.9029, allocations: 0 / 1.217 GB, free: 4.238 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.9029, allocations: 3.984 kB / 1.217 GB, free: 4.234 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.9029, allocations: 4 kB / 1.217 GB, free: 4.23 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008627/0.9038, allocations: 0.5804 MB / 1.218 GB, free: 3.594 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.9038, allocations: 0 / 1.218 GB, free: 3.594 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.9039, allocations: 19.98 kB / 1.218 GB, free: 3.574 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.9039, allocations: 4 kB / 1.218 GB, free: 3.57 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.228e-05/0.904, allocations: 7.984 kB / 1.218 GB, free: 3.562 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.904, allocations: 7.938 kB / 1.218 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.904, allocations: 0 / 1.218 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006795/0.9047, allocations: 442.7 kB / 1.218 GB, free: 3.105 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.648e-05/0.9047, allocations: 88.95 kB / 1.218 GB, free: 3 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.399e-05/0.9048, allocations: 15.92 kB / 1.219 GB, free: 2.984 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.9049, allocations: 11.98 kB / 1.219 GB, free: 2.973 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.62e-05/0.905, allocations: 11.98 kB / 1.219 GB, free: 2.961 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-05/0.905, allocations: 11.98 kB / 1.219 GB, free: 2.949 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.455e-05/0.9051, allocations: 119.2 kB / 1.219 GB, free: 2.832 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9051, allocations: 0 / 1.219 GB, free: 2.832 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004678/0.9056, allocations: 112 kB / 1.219 GB, free: 2.723 MB / 0.9356 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.0009397/0.9066, allocations: 448.8 kB / 1.219 GB, free: 2.387 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004234/0.907, allocations: 189.7 kB / 1.219 GB, free: 2.203 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.907, allocations: 4.688 kB / 1.219 GB, free: 2.199 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001937/0.9072, allocations: 87.89 kB / 1.219 GB, free: 2.113 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003368/0.9075, allocations: 27.97 kB / 1.219 GB, free: 2.086 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007424/0.9083, allocations: 410.8 kB / 1.22 GB, free: 1.648 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.9086, allocations: 0.7282 MB / 1.221 GB, free: 0.8945 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.219e-05/0.9087, allocations: 19.42 kB / 1.221 GB, free: 0.875 MB / 0.9356 GB Notification: Performance of SimCode: time 2.01e-07/0.9087, allocations: 0 / 1.221 GB, free: 0.875 MB / 0.9356 GB Notification: Performance of Templates: time 0.006969/0.9157, allocations: 3.928 MB / 1.224 GB, free: 12.95 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