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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001763/0.001763, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002224/0.002225, allocations: 196 kB / 16.79 MB, free: 6.809 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.429/1.429, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.808/2.808, allocations: 461.8 MB / 0.7348 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 63.34 kB / 0.899 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3116, allocations: 157.4 MB / 1.053 GB, free: 8.344 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003508/0.3151, allocations: 1.787 MB / 1.054 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002844/0.318, allocations: 1.81 MB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.3181, allocations: 3.938 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.3183, allocations: 19.86 kB / 1.056 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001571/0.3185, allocations: 15.84 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001224/0.3197, allocations: 279.2 kB / 1.057 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002941/0.32, allocations: 207.4 kB / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.3202, allocations: 21.56 kB / 1.057 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.3203, allocations: 75.69 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.3205, allocations: 75.67 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.781e-05/0.3205, allocations: 8 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004893/0.321, allocations: 251.6 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.3211, allocations: 55.81 kB / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.887e-05/0.3212, allocations: 67.64 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004066/0.3216, allocations: 259.8 kB / 1.058 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.3217, allocations: 3.938 kB / 1.058 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.042e-06/0.3217, allocations: 0 / 1.058 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.3217, allocations: 0 / 1.058 GB, free: 3.41 MB / 0.8106 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.000908/0.3226, allocations: 0.5185 MB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3226, allocations: 8.031 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.647e-05/0.3227, allocations: 16.75 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002422/0.3229, allocations: 236.6 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.323, allocations: 12.31 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.663e-05/0.323, allocations: 12 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003283/0.3233, allocations: 156 kB / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.3234, allocations: 0 / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.706e-05/0.3234, allocations: 0 / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.3234, allocations: 7.984 kB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002324/0.3236, allocations: 83.83 kB / 1.059 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008631/0.3245, allocations: 424.7 kB / 1.059 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003062/0.3248, allocations: 154.5 kB / 1.059 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.325, allocations: 72.81 kB / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.325, allocations: 0 / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003054/0.3253, allocations: 169.2 kB / 1.059 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 1.442e-06/0.3253, allocations: 0 / 1.059 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20): time 0.0007129/0.3261, allocations: 312 kB / 1.06 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.3261, allocations: 89.23 kB / 1.06 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.3263, allocations: 163.9 kB / 1.06 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.587e-05/0.3263, allocations: 45.64 kB / 1.06 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.465e-05/0.3264, allocations: 112.4 kB / 1.06 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.936e-05/0.3265, allocations: 63.33 kB / 1.06 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.779e-05/0.3266, allocations: 53.98 kB / 1.06 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.3267, allocations: 338.8 kB / 1.06 GB, free: 180 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.3269, allocations: 72.52 kB / 1.061 GB, free: 108 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000232/0.3271, allocations: 181.9 kB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000386/0.3275, allocations: 263.8 kB / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3275, allocations: 0 / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005542/0.3281, allocations: 297.1 kB / 1.061 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.3281, allocations: 9.25 kB / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.3281, allocations: 4 kB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.3281, allocations: 4 kB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.3283, allocations: 39.91 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.3283, allocations: 8.312 kB / 1.061 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.3284, allocations: 27.83 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.101e-05/0.3285, allocations: 16 kB / 1.061 GB, free: 15.18 MB / 0.8262 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.0001533/0.3286, allocations: 159.9 kB / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.552e-05/0.3287, allocations: 19.72 kB / 1.062 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.871e-05/0.3287, allocations: 21.86 kB / 1.062 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.3288, allocations: 4 kB / 1.062 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3288, allocations: 4 kB / 1.062 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3288, allocations: 0 / 1.062 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008519/0.3296, allocations: 0.5763 MB / 1.062 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.686e-06/0.3296, allocations: 3.984 kB / 1.062 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001014/0.3297, allocations: 16 kB / 1.062 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3298, allocations: 4.031 kB / 1.062 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.3298, allocations: 11.92 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.3298, allocations: 11.94 kB / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3298, allocations: 0 / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007124/0.3305, allocations: 433.9 kB / 1.063 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.175e-05/0.3306, allocations: 96.89 kB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.579e-05/0.3307, allocations: 15.92 kB / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.3308, allocations: 20.05 kB / 1.063 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.63e-05/0.3309, allocations: 7.984 kB / 1.063 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.914e-05/0.3309, allocations: 16.05 kB / 1.063 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.9e-05/0.331, allocations: 124.2 kB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.331, allocations: 0 / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004611/0.3315, allocations: 112 kB / 1.063 GB, free: 13.44 MB / 0.8262 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.0009642/0.3324, allocations: 438.8 kB / 1.063 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004479/0.3329, allocations: 191.7 kB / 1.064 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3329, allocations: 4 kB / 1.064 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001894/0.3331, allocations: 83.89 kB / 1.064 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.3335, allocations: 36.84 kB / 1.064 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007641/0.3342, allocations: 446 kB / 1.064 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.3345, allocations: 0.7284 MB / 1.065 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.096e-05/0.3346, allocations: 19.44 kB / 1.065 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.3346, allocations: 0 / 1.065 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of Templates: time 0.006944/0.3416, allocations: 3.908 MB / 1.069 GB, free: 7.668 MB / 0.8262 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.0-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.0-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.0-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