Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001496/0.001496, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001592/0.001592, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.369/1.369, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.452/2.452, allocations: 390.3 MB / 0.6653 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.00166, allocations: 64.22 kB / 0.8132 GB, free: 33.05 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3656/0.3673, allocations: 140.4 MB / 0.9503 GB, free: 8.867 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.00393/0.3713, allocations: 1.733 MB / 0.952 GB, free: 7.117 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003003/0.3743, allocations: 1.814 MB / 0.9537 GB, free: 5.293 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.3745, allocations: 8 kB / 0.9537 GB, free: 5.285 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001862/0.3747, allocations: 27.72 kB / 0.9538 GB, free: 5.258 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001644/0.3749, allocations: 19.8 kB / 0.9538 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001465/0.3764, allocations: 323.6 kB / 0.9541 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003293/0.3767, allocations: 211.5 kB / 0.9543 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.3769, allocations: 37.52 kB / 0.9543 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001662/0.3771, allocations: 83.69 kB / 0.9544 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.3772, allocations: 75.67 kB / 0.9545 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.279e-05/0.3773, allocations: 8 kB / 0.9545 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005374/0.3778, allocations: 263.6 kB / 0.9547 GB, free: 4.262 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001403/0.378, allocations: 59.81 kB / 0.9548 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.956e-05/0.3781, allocations: 75.58 kB / 0.9549 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006268/0.3787, allocations: 371.4 kB / 0.9552 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.3787, allocations: 3.984 kB / 0.9552 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3787, allocations: 3.938 kB / 0.9552 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.665e-06/0.3787, allocations: 0 / 0.9552 GB, free: 3.758 MB / 0.7325 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.001/0.3797, allocations: 0.5107 MB / 0.9557 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.3798, allocations: 8.031 kB / 0.9557 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.507e-05/0.3799, allocations: 24.66 kB / 0.9558 GB, free: 3.168 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002648/0.3801, allocations: 220.7 kB / 0.956 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.3802, allocations: 12.31 kB / 0.956 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.303e-05/0.3802, allocations: 16 kB / 0.956 GB, free: 2.883 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003246/0.3805, allocations: 148.5 kB / 0.9561 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.3806, allocations: 0 / 0.9561 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.21e-05/0.3806, allocations: 12 kB / 0.9561 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.3806, allocations: 0 / 0.9561 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002236/0.3808, allocations: 83.81 kB / 0.9562 GB, free: 2.633 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009141/0.3818, allocations: 428.7 kB / 0.9566 GB, free: 2.164 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003058/0.3821, allocations: 158.4 kB / 0.9568 GB, free: 2 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.3822, allocations: 68.83 kB / 0.9568 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.741e-05/0.3823, allocations: 7.984 kB / 0.9569 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003071/0.3826, allocations: 167.2 kB / 0.957 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=20): time 2.054e-06/0.3826, allocations: 3.938 kB / 0.957 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of matching and sorting (n=20): time 0.0007097/0.3833, allocations: 299.4 kB / 0.9573 GB, free: 1.441 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.782e-05/0.3834, allocations: 97.03 kB / 0.9574 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001685/0.3836, allocations: 171.8 kB / 0.9576 GB, free: 1.152 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.506e-05/0.3836, allocations: 33.7 kB / 0.9576 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.4e-05/0.3837, allocations: 124.5 kB / 0.9577 GB, free: 0.9883 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.096e-05/0.3838, allocations: 51.34 kB / 0.9578 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.082e-05/0.3839, allocations: 61.97 kB / 0.9578 GB, free: 0.8672 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.384, allocations: 330.8 kB / 0.9581 GB, free: 0.5352 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.3842, allocations: 80.5 kB / 0.9582 GB, free: 468 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002377/0.3845, allocations: 177.9 kB / 0.9584 GB, free: 244 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004203/0.3849, allocations: 259.8 kB / 0.9586 GB, free: 15.94 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.3849, allocations: 4 kB / 0.9586 GB, free: 15.94 MB / 0.7481 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000533/0.3854, allocations: 297.3 kB / 0.9589 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.3855, allocations: 4 kB / 0.9589 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.3855, allocations: 8.062 kB / 0.9589 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.3855, allocations: 4 kB / 0.9589 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/0.3857, allocations: 43.91 kB / 0.959 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.248e-05/0.3857, allocations: 8 kB / 0.959 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.3858, allocations: 19.84 kB / 0.959 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.3859, allocations: 12.08 kB / 0.959 GB, free: 15.54 MB / 0.7481 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.0001767/0.3861, allocations: 169.9 kB / 0.9592 GB, free: 15.37 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.932e-05/0.3861, allocations: 19.81 kB / 0.9592 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.112e-05/0.3862, allocations: 21.86 kB / 0.9592 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.3862, allocations: 0 / 0.9592 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.3862, allocations: 7.938 kB / 0.9592 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.3862, allocations: 0 / 0.9592 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009053/0.3871, allocations: 0.5802 MB / 0.9598 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.3871, allocations: 0 / 0.9598 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.3872, allocations: 15.92 kB / 0.9598 GB, free: 14.67 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.3873, allocations: 4 kB / 0.9598 GB, free: 14.67 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.3873, allocations: 15.92 kB / 0.9598 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.3873, allocations: 3.938 kB / 0.9598 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3873, allocations: 0 / 0.9598 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007242/0.388, allocations: 444 kB / 0.9603 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.986e-05/0.3881, allocations: 92.89 kB / 0.9603 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.263e-05/0.3882, allocations: 11.92 kB / 0.9604 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.3883, allocations: 15.98 kB / 0.9604 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.293e-05/0.3884, allocations: 19.92 kB / 0.9604 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.587e-05/0.3884, allocations: 12.06 kB / 0.9604 GB, free: 14.03 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001109/0.3885, allocations: 128.2 kB / 0.9605 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3885, allocations: 0 / 0.9605 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004842/0.389, allocations: 99.98 kB / 0.9606 GB, free: 13.81 MB / 0.7481 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.0009925/0.39, allocations: 445 kB / 0.961 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000528/0.3906, allocations: 223.8 kB / 0.9613 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3906, allocations: 0 / 0.9613 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001933/0.3908, allocations: 83.89 kB / 0.9613 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003627/0.3911, allocations: 39.97 kB / 0.9614 GB, free: 13.14 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008623/0.392, allocations: 412.8 kB / 0.9618 GB, free: 12.7 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.3924, allocations: 0.732 MB / 0.9625 GB, free: 11.94 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.962e-05/0.3924, allocations: 19.44 kB / 0.9625 GB, free: 11.92 MB / 0.7481 GB Notification: Performance of SimCode: time 2.1e-07/0.3924, allocations: 0 / 0.9625 GB, free: 11.92 MB / 0.7481 GB Notification: Performance of Templates: time 0.007785/0.4002, allocations: 3.906 MB / 0.9663 GB, free: 8.016 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.makefile make -j1 -f Buildings_9_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 9.1.3-maint.9.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/Modelica 4.0.0+maint.om/Resources/C-Sources" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterCalcHelperMain.o OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterCalcHelperMain.cpp In file included from OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/Resources/C-Sources/pythonWrapper.c:35:3: error: use of undeclared identifier 'pythonExchangeValuesNoModelica' pythonExchangeValuesNoModelica( ^ 1 error generated. make: *** [: OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterCalcHelperMain.o] Error 1