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.001404/0.001404, allocations: 102.9 kB / 16.27 MB, free: 5.961 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.001457/0.001457, allocations: 188.1 kB / 17.19 MB, free: 5.594 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.373/1.373, allocations: 222.9 MB / 240.9 MB, free: 15.21 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.496/2.496, allocations: 437 MB / 0.711 GB, free: 4.48 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 64.47 kB / 0.8699 GB, free: 2.23 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3246, allocations: 151.6 MB / 1.018 GB, free: 10.68 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.004175/0.3288, allocations: 1.736 MB / 1.02 GB, free: 8.926 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.003265/0.3321, allocations: 1.802 MB / 1.021 GB, free: 7.113 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001549/0.3323, allocations: 3.938 kB / 1.021 GB, free: 7.109 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0002037/0.3326, allocations: 23.8 kB / 1.021 GB, free: 7.086 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001931/0.3328, allocations: 35.72 kB / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.00163/0.3344, allocations: 315.4 kB / 1.022 GB, free: 6.746 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003788/0.3348, allocations: 215.4 kB / 1.022 GB, free: 6.535 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.335, allocations: 33.55 kB / 1.022 GB, free: 6.5 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001994/0.3352, allocations: 83.73 kB / 1.022 GB, free: 6.418 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001651/0.3353, allocations: 71.62 kB / 1.022 GB, free: 6.348 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.548e-05/0.3354, allocations: 8 kB / 1.022 GB, free: 6.34 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006183/0.336, allocations: 263.6 kB / 1.022 GB, free: 6.082 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.3362, allocations: 59.81 kB / 1.022 GB, free: 6.023 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.3363, allocations: 63.66 kB / 1.023 GB, free: 5.961 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0007237/0.337, allocations: 375.3 kB / 1.023 GB, free: 5.594 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.337, allocations: 0 / 1.023 GB, free: 5.594 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.523e-06/0.337, allocations: 0 / 1.023 GB, free: 5.594 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.895e-06/0.337, allocations: 0 / 1.023 GB, free: 5.594 MB / 0.795 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.001026/0.3381, allocations: 0.5223 MB / 1.023 GB, free: 5.023 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.3381, allocations: 8.922 kB / 1.023 GB, free: 5.016 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.3382, allocations: 24.75 kB / 1.023 GB, free: 4.992 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002972/0.3385, allocations: 229.5 kB / 1.024 GB, free: 4.727 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.3386, allocations: 8.312 kB / 1.024 GB, free: 4.719 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.947e-05/0.3386, allocations: 23.92 kB / 1.024 GB, free: 4.695 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003414/0.339, allocations: 148.8 kB / 1.024 GB, free: 4.539 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.339, allocations: 0 / 1.024 GB, free: 4.539 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.339, allocations: 4 kB / 1.024 GB, free: 4.535 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.339, allocations: 8 kB / 1.024 GB, free: 4.527 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002861/0.3393, allocations: 83.88 kB / 1.024 GB, free: 4.445 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009147/0.3403, allocations: 424.7 kB / 1.024 GB, free: 3.98 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003071/0.3406, allocations: 150.5 kB / 1.024 GB, free: 3.824 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.3407, allocations: 76.81 kB / 1.025 GB, free: 3.746 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/0.3408, allocations: 4 kB / 1.025 GB, free: 3.742 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003208/0.3411, allocations: 161.2 kB / 1.025 GB, free: 3.566 MB / 0.795 GB Notification: Performance of pre-optimization done (n=20): time 1.643e-06/0.3411, allocations: 4 kB / 1.025 GB, free: 3.562 MB / 0.795 GB Notification: Performance of matching and sorting (n=20): time 0.0007063/0.3418, allocations: 311.1 kB / 1.025 GB, free: 3.254 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.715e-05/0.3419, allocations: 93.09 kB / 1.025 GB, free: 3.145 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001723/0.3421, allocations: 167.4 kB / 1.025 GB, free: 2.973 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.865e-05/0.3421, allocations: 37.69 kB / 1.025 GB, free: 2.93 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.3423, allocations: 120.4 kB / 1.025 GB, free: 2.809 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 6.584e-05/0.3424, allocations: 55.47 kB / 1.025 GB, free: 2.754 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.718e-05/0.3425, allocations: 57.98 kB / 1.025 GB, free: 2.688 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001671/0.3426, allocations: 334.8 kB / 1.026 GB, free: 2.352 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001674/0.3428, allocations: 80.5 kB / 1.026 GB, free: 2.273 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/0.343, allocations: 182.4 kB / 1.026 GB, free: 2.051 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003875/0.3434, allocations: 259.8 kB / 1.026 GB, free: 1.754 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.752e-06/0.3435, allocations: 4 kB / 1.026 GB, free: 1.75 MB / 0.795 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005269/0.344, allocations: 293.4 kB / 1.027 GB, free: 1.457 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.344, allocations: 8.062 kB / 1.027 GB, free: 1.449 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.344, allocations: 4.094 kB / 1.027 GB, free: 1.445 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.3441, allocations: 7.938 kB / 1.027 GB, free: 1.438 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001599/0.3442, allocations: 35.92 kB / 1.027 GB, free: 1.402 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.877e-05/0.3443, allocations: 19.91 kB / 1.027 GB, free: 1.383 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.3444, allocations: 23.78 kB / 1.027 GB, free: 1.359 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.3444, allocations: 15.98 kB / 1.027 GB, free: 1.344 MB / 0.795 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.0001745/0.3446, allocations: 159.9 kB / 1.027 GB, free: 1.18 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.423e-05/0.3446, allocations: 27.7 kB / 1.027 GB, free: 1.152 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.88e-05/0.3447, allocations: 17.88 kB / 1.027 GB, free: 1.141 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.3447, allocations: 0 / 1.027 GB, free: 1.141 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.3447, allocations: 0 / 1.027 GB, free: 1.141 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.3447, allocations: 7.984 kB / 1.027 GB, free: 1.133 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009925/0.3457, allocations: 0.5818 MB / 1.027 GB, free: 0.4961 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.3457, allocations: 4.062 kB / 1.027 GB, free: 0.4922 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001055/0.3459, allocations: 15.98 kB / 1.028 GB, free: 488 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.573e-06/0.3459, allocations: 4 kB / 1.028 GB, free: 484 kB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.3459, allocations: 4 kB / 1.028 GB, free: 480 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.3459, allocations: 7.922 kB / 1.028 GB, free: 472 kB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3459, allocations: 0 / 1.028 GB, free: 472 kB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007658/0.3467, allocations: 436 kB / 1.028 GB, free: 16 kB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-05/0.3468, allocations: 92.89 kB / 1.028 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.478e-05/0.3468, allocations: 15.92 kB / 1.028 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/0.347, allocations: 15.98 kB / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.11e-05/0.347, allocations: 11.98 kB / 1.028 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.24e-05/0.3471, allocations: 11.98 kB / 1.028 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.901e-05/0.3472, allocations: 123.3 kB / 1.028 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3472, allocations: 4 kB / 1.028 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005744/0.3478, allocations: 103.9 kB / 1.028 GB, free: 15.62 MB / 0.8106 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.001279/0.3491, allocations: 440.9 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005474/0.3496, allocations: 236 kB / 1.029 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.3496, allocations: 0 / 1.029 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001954/0.3498, allocations: 87.89 kB / 1.029 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/0.3502, allocations: 23.92 kB / 1.029 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009448/0.3512, allocations: 408.7 kB / 1.029 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.3516, allocations: 0.732 MB / 1.03 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.725e-05/0.3516, allocations: 19.44 kB / 1.03 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of SimCode: time 4e-07/0.3516, allocations: 0 / 1.03 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of Templates: time 0.007977/0.3596, allocations: 3.917 MB / 1.034 GB, free: 9.836 MB / 0.8106 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