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.001318/0.001318, allocations: 109.3 kB / 15.99 MB, free: 5.914 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.001387/0.001387, allocations: 194.6 kB / 16.91 MB, free: 5.758 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.358/1.358, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.681/2.681, allocations: 469.4 MB / 0.7423 GB, free: 3.816 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 70.02 kB / 0.9083 GB, free: 14.51 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3193/0.3209, allocations: 159.1 MB / 1.064 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003545/0.3244, allocations: 1.776 MB / 1.065 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002946/0.3274, allocations: 1.779 MB / 1.067 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.3276, allocations: 3.938 kB / 1.067 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001943/0.3278, allocations: 19.86 kB / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001818/0.328, allocations: 27.78 kB / 1.067 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001498/0.3295, allocations: 293.9 kB / 1.068 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003402/0.3299, allocations: 219.4 kB / 1.068 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.33, allocations: 25.48 kB / 1.068 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001859/0.3302, allocations: 83.69 kB / 1.068 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001577/0.3304, allocations: 83.66 kB / 1.068 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.477e-05/0.3304, allocations: 12 kB / 1.068 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004915/0.3309, allocations: 255.6 kB / 1.068 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001178/0.3311, allocations: 63.8 kB / 1.068 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.339e-05/0.3312, allocations: 63.67 kB / 1.068 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004639/0.3316, allocations: 267.7 kB / 1.069 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3316, allocations: 0 / 1.069 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.084e-06/0.3316, allocations: 0 / 1.069 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.337e-06/0.3317, allocations: 0 / 1.069 GB, free: 10.43 MB / 0.8419 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.0009948/0.3327, allocations: 0.5224 MB / 1.069 GB, free: 9.859 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.3327, allocations: 8.031 kB / 1.069 GB, free: 9.852 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.448e-05/0.3328, allocations: 20.75 kB / 1.069 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/0.3331, allocations: 228.7 kB / 1.069 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.099e-05/0.3331, allocations: 12.3 kB / 1.069 GB, free: 9.555 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.314e-05/0.3331, allocations: 16 kB / 1.069 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.3335, allocations: 152.4 kB / 1.069 GB, free: 9.379 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.3335, allocations: 0 / 1.069 GB, free: 9.379 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.118e-05/0.3335, allocations: 4 kB / 1.069 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.3335, allocations: 7.938 kB / 1.069 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002162/0.3338, allocations: 83.81 kB / 1.07 GB, free: 9.285 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000938/0.3347, allocations: 428.7 kB / 1.07 GB, free: 8.816 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/0.335, allocations: 146.5 kB / 1.07 GB, free: 8.664 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001508/0.3352, allocations: 73.12 kB / 1.07 GB, free: 8.59 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.3352, allocations: 4 kB / 1.07 GB, free: 8.586 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000315/0.3356, allocations: 166.8 kB / 1.07 GB, free: 8.406 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=20): time 2.275e-06/0.3356, allocations: 0 / 1.07 GB, free: 8.406 MB / 0.8419 GB Notification: Performance of matching and sorting (n=20): time 0.0007232/0.3363, allocations: 306.6 kB / 1.071 GB, free: 8.102 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.926e-05/0.3364, allocations: 97.22 kB / 1.071 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/0.3365, allocations: 167.6 kB / 1.071 GB, free: 7.816 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.457e-05/0.3366, allocations: 33.7 kB / 1.071 GB, free: 7.777 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.835e-05/0.3367, allocations: 120.4 kB / 1.071 GB, free: 7.656 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.092e-05/0.3367, allocations: 51.34 kB / 1.071 GB, free: 7.605 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.241e-05/0.3368, allocations: 61.97 kB / 1.071 GB, free: 7.535 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.337, allocations: 330.8 kB / 1.071 GB, free: 7.203 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.3371, allocations: 84.5 kB / 1.072 GB, free: 7.121 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002232/0.3374, allocations: 177.8 kB / 1.072 GB, free: 6.902 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003849/0.3378, allocations: 271.7 kB / 1.072 GB, free: 6.594 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.3378, allocations: 4 kB / 1.072 GB, free: 6.59 MB / 0.8419 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004979/0.3383, allocations: 293.1 kB / 1.072 GB, free: 6.297 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.3383, allocations: 4 kB / 1.072 GB, free: 6.293 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.3383, allocations: 4 kB / 1.072 GB, free: 6.289 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.3383, allocations: 4 kB / 1.072 GB, free: 6.285 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.3385, allocations: 40.28 kB / 1.072 GB, free: 6.246 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.27e-05/0.3385, allocations: 15.94 kB / 1.072 GB, free: 6.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.3387, allocations: 27.75 kB / 1.072 GB, free: 6.203 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/0.3387, allocations: 8 kB / 1.072 GB, free: 6.195 MB / 0.8419 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.0001628/0.3389, allocations: 165.8 kB / 1.073 GB, free: 6.027 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.986e-05/0.3389, allocations: 19.81 kB / 1.073 GB, free: 6.008 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.148e-05/0.339, allocations: 17.88 kB / 1.073 GB, free: 5.988 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.339, allocations: 4 kB / 1.073 GB, free: 5.984 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.339, allocations: 3.984 kB / 1.073 GB, free: 5.98 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.339, allocations: 4 kB / 1.073 GB, free: 5.977 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008694/0.3399, allocations: 0.5763 MB / 1.073 GB, free: 5.344 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.3399, allocations: 4 kB / 1.073 GB, free: 5.34 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001069/0.34, allocations: 15.92 kB / 1.073 GB, free: 5.324 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.34, allocations: 4 kB / 1.073 GB, free: 5.32 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.423e-05/0.34, allocations: 11.98 kB / 1.073 GB, free: 5.309 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.3401, allocations: 3.938 kB / 1.073 GB, free: 5.305 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.3401, allocations: 0 / 1.073 GB, free: 5.305 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006805/0.3407, allocations: 434.8 kB / 1.074 GB, free: 4.863 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.422e-05/0.3408, allocations: 96.88 kB / 1.074 GB, free: 4.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.261e-05/0.3409, allocations: 16 kB / 1.074 GB, free: 4.734 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.341, allocations: 15.98 kB / 1.074 GB, free: 4.719 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.263e-05/0.3411, allocations: 15.97 kB / 1.074 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.577e-05/0.3411, allocations: 8 kB / 1.074 GB, free: 4.695 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.948e-05/0.3412, allocations: 125.5 kB / 1.074 GB, free: 4.574 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.31e-07/0.3412, allocations: 4.094 kB / 1.074 GB, free: 4.57 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004601/0.3417, allocations: 103.9 kB / 1.074 GB, free: 4.469 MB / 0.8419 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.0009805/0.3427, allocations: 449.4 kB / 1.074 GB, free: 4.137 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004714/0.3432, allocations: 215.7 kB / 1.075 GB, free: 3.926 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3432, allocations: 0 / 1.075 GB, free: 3.926 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001773/0.3433, allocations: 88.64 kB / 1.075 GB, free: 3.84 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003354/0.3437, allocations: 33.88 kB / 1.075 GB, free: 3.809 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007913/0.3445, allocations: 446.4 kB / 1.075 GB, free: 3.34 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.3448, allocations: 0.732 MB / 1.076 GB, free: 2.582 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.739e-05/0.3449, allocations: 23.42 kB / 1.076 GB, free: 2.559 MB / 0.8419 GB Notification: Performance of SimCode: time 3.51e-07/0.3449, allocations: 4.188 kB / 1.076 GB, free: 2.555 MB / 0.8419 GB Notification: Performance of Templates: time 0.51/0.8549, allocations: 3.909 MB / 1.08 GB, free: 21.88 MB / 0.8419 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++14 -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