Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001276/0.001276, allocations: 109.2 kB / 16.41 MB, free: 6.477 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.001316/0.001316, allocations: 185.6 kB / 17.34 MB, free: 5.75 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.363/1.363, 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 10.1.1-maint.10.0.x/package.mo): time 2.488/2.488, allocations: 437 MB / 0.7112 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 63.91 kB / 1.019 GB, free: 9.449 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8646/0.8659, allocations: 151.6 MB / 1.167 GB, free: 3.855 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003567/0.8695, allocations: 1.729 MB / 1.169 GB, free: 2.113 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002939/0.8725, allocations: 1.81 MB / 1.171 GB, free: 300 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.893e-05/0.8726, allocations: 4 kB / 1.171 GB, free: 296 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001791/0.8728, allocations: 31.78 kB / 1.171 GB, free: 264 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001352/0.873, allocations: 27.73 kB / 1.171 GB, free: 236 kB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001295/0.8743, allocations: 318.2 kB / 1.171 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0002742/0.8746, allocations: 219.4 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.8747, allocations: 25.56 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001574/0.8748, allocations: 87.67 kB / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001163/0.875, allocations: 75.66 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 2.57e-05/0.875, allocations: 12 kB / 1.171 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004264/0.8754, allocations: 275.6 kB / 1.172 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.8756, allocations: 59.81 kB / 1.172 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 7.637e-05/0.8756, allocations: 71.64 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0004659/0.8761, allocations: 374.8 kB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.8761, allocations: 0 / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.495e-06/0.8761, allocations: 3.938 kB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.833e-06/0.8762, allocations: 0 / 1.172 GB, free: 14.75 MB / 0.9044 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.0008584/0.877, allocations: 0.528 MB / 1.173 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.8771, allocations: 12.92 kB / 1.173 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.018e-05/0.8771, allocations: 16.75 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002452/0.8774, allocations: 220.8 kB / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.8774, allocations: 16.31 kB / 1.173 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.657e-05/0.8774, allocations: 15.94 kB / 1.173 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003074/0.8778, allocations: 145 kB / 1.173 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.8778, allocations: 0 / 1.173 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.8778, allocations: 12 kB / 1.173 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.8778, allocations: 0 / 1.173 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002083/0.878, allocations: 79.88 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008553/0.8789, allocations: 432.6 kB / 1.174 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002924/0.8792, allocations: 166.3 kB / 1.174 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.8793, allocations: 64.83 kB / 1.174 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.8794, allocations: 4 kB / 1.174 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002865/0.8797, allocations: 171.1 kB / 1.174 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=20): time 1.623e-06/0.8797, allocations: 4 kB / 1.174 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of matching and sorting (n=20): time 0.000658/0.8803, allocations: 297.6 kB / 1.174 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.397e-05/0.8804, allocations: 97.03 kB / 1.174 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/0.8806, allocations: 170.4 kB / 1.175 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.8806, allocations: 33.7 kB / 1.175 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.961e-05/0.8807, allocations: 116.5 kB / 1.175 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.708e-05/0.8808, allocations: 59.41 kB / 1.175 GB, free: 11.91 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.596e-05/0.8808, allocations: 61.97 kB / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.881, allocations: 330.8 kB / 1.175 GB, free: 11.51 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001594/0.8811, allocations: 80.5 kB / 1.175 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002203/0.8814, allocations: 186.4 kB / 1.175 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003604/0.8817, allocations: 259.8 kB / 1.176 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.8817, allocations: 7.938 kB / 1.176 GB, free: 10.9 MB / 0.9044 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004658/0.8822, allocations: 297.2 kB / 1.176 GB, free: 10.6 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.8822, allocations: 8.062 kB / 1.176 GB, free: 10.59 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.8822, allocations: 4 kB / 1.176 GB, free: 10.59 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/0.8823, allocations: 4 kB / 1.176 GB, free: 10.59 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.8824, allocations: 43.91 kB / 1.176 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.8824, allocations: 8 kB / 1.176 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.8826, allocations: 19.84 kB / 1.176 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.8826, allocations: 12.06 kB / 1.176 GB, free: 10.5 MB / 0.9044 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.0001582/0.8827, allocations: 163.9 kB / 1.176 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.494e-05/0.8828, allocations: 19.81 kB / 1.176 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.566e-05/0.8828, allocations: 25.8 kB / 1.176 GB, free: 10.29 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.8829, allocations: 0 / 1.176 GB, free: 10.29 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.8829, allocations: 4 kB / 1.176 GB, free: 10.28 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.8829, allocations: 0 / 1.176 GB, free: 10.28 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008608/0.8837, allocations: 0.5787 MB / 1.177 GB, free: 9.648 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.8838, allocations: 4 kB / 1.177 GB, free: 9.645 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.8839, allocations: 15.92 kB / 1.177 GB, free: 9.629 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.8839, allocations: 4 kB / 1.177 GB, free: 9.625 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.475e-05/0.8839, allocations: 11.98 kB / 1.177 GB, free: 9.613 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.8839, allocations: 3.938 kB / 1.177 GB, free: 9.609 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.8839, allocations: 0 / 1.177 GB, free: 9.609 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006584/0.8846, allocations: 438.5 kB / 1.177 GB, free: 9.164 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.729e-05/0.8846, allocations: 88.95 kB / 1.177 GB, free: 9.059 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.969e-05/0.8847, allocations: 15.92 kB / 1.177 GB, free: 9.043 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.8848, allocations: 8 kB / 1.177 GB, free: 9.035 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.021e-05/0.8849, allocations: 23.91 kB / 1.177 GB, free: 9.012 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.367e-05/0.8849, allocations: 8 kB / 1.177 GB, free: 9.004 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.378e-05/0.885, allocations: 128.3 kB / 1.178 GB, free: 8.879 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.8e-07/0.885, allocations: 0 / 1.178 GB, free: 8.879 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004573/0.8855, allocations: 107.9 kB / 1.178 GB, free: 8.773 MB / 0.9044 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.000902/0.8864, allocations: 450.4 kB / 1.178 GB, free: 8.441 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004105/0.8868, allocations: 192.4 kB / 1.178 GB, free: 8.254 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.8868, allocations: 8.062 kB / 1.178 GB, free: 8.246 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001726/0.887, allocations: 87.89 kB / 1.178 GB, free: 8.16 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.8873, allocations: 19.98 kB / 1.178 GB, free: 8.141 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007306/0.8881, allocations: 408.8 kB / 1.179 GB, free: 7.707 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.8884, allocations: 0.7321 MB / 1.179 GB, free: 6.949 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.166e-05/0.8884, allocations: 19.44 kB / 1.179 GB, free: 6.93 MB / 0.9044 GB Notification: Performance of SimCode: time 2.11e-07/0.8884, allocations: 0 / 1.179 GB, free: 6.93 MB / 0.9044 GB Notification: Performance of Templates: time 0.006301/0.8947, allocations: 3.936 MB / 1.183 GB, free: 3.004 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.makefile make -j1 -f Buildings_10_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 10.1.1-maint.10.0.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 10.1.1-maint.10.0.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterCalcHelperMain.o OMCppBuildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterCalcHelperMain.cpp In file included from OMCppBuildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/Resources/C-Sources/pythonWrapper.c:35:3: error: use of undeclared identifier 'pythonExchangeValuesNoModelica' pythonExchangeValuesNoModelica( ^ 1 error generated. make: *** [: OMCppBuildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterCalcHelperMain.o] Error 1