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.0009319/0.000932, allocations: 98.88 kB / 16.02 MB, free: 76 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.001099/0.001099, allocations: 183.7 kB / 16.92 MB, free: 6.77 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.407/1.407, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.845/2.845, allocations: 462.7 MB / 0.7371 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003729/0.000373, allocations: 13.19 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3347, allocations: 159.6 MB / 1.059 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002583/0.3373, allocations: 1.445 MB / 1.061 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003045/0.3404, allocations: 1.775 MB / 1.062 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.3406, allocations: 4 kB / 1.062 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001725/0.3407, allocations: 15.86 kB / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001696/0.3409, allocations: 27.78 kB / 1.063 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001387/0.3423, allocations: 263.5 kB / 1.063 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003833/0.3427, allocations: 207.4 kB / 1.063 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.3428, allocations: 21.55 kB / 1.063 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001911/0.343, allocations: 75.69 kB / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002963/0.3433, allocations: 67.69 kB / 1.063 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.847e-05/0.3434, allocations: 8 kB / 1.063 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005905/0.344, allocations: 255.6 kB / 1.063 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001223/0.3441, allocations: 55.8 kB / 1.063 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.731e-05/0.3442, allocations: 85.36 kB / 1.064 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004921/0.3447, allocations: 263.7 kB / 1.064 GB, free: 432 kB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3447, allocations: 0 / 1.064 GB, free: 432 kB / 0.8106 GB Notification: Performance of FrontEnd: time 2.264e-06/0.3447, allocations: 0 / 1.064 GB, free: 432 kB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.3448, allocations: 3.938 kB / 1.064 GB, free: 428 kB / 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.0009569/0.3457, allocations: 499.1 kB / 1.064 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.3458, allocations: 8.031 kB / 1.064 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.95e-05/0.3458, allocations: 24.66 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003237/0.3462, allocations: 233.3 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.3462, allocations: 12.31 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.52e-05/0.3463, allocations: 12 kB / 1.065 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003796/0.3466, allocations: 159.8 kB / 1.065 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.3467, allocations: 0 / 1.065 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.339e-05/0.3467, allocations: 11.92 kB / 1.065 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.3467, allocations: 0 / 1.065 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002371/0.347, allocations: 91.88 kB / 1.065 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000979/0.3479, allocations: 432.7 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003431/0.3483, allocations: 163.8 kB / 1.065 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001531/0.3485, allocations: 72.81 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.551e-05/0.3485, allocations: 4 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000313/0.3488, allocations: 166.9 kB / 1.066 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 2.204e-06/0.3488, allocations: 0 / 1.066 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20): time 0.0007269/0.3496, allocations: 322.4 kB / 1.066 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.276e-05/0.3497, allocations: 89.11 kB / 1.066 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/0.3498, allocations: 171.8 kB / 1.066 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.671e-05/0.3499, allocations: 33.7 kB / 1.066 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.447e-05/0.35, allocations: 120.4 kB / 1.066 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.275e-05/0.35, allocations: 55.33 kB / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.29e-05/0.3501, allocations: 41.73 kB / 1.066 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001852/0.3503, allocations: 330.8 kB / 1.067 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.3505, allocations: 88.44 kB / 1.067 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002321/0.3507, allocations: 181.9 kB / 1.067 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004131/0.3512, allocations: 267.8 kB / 1.067 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3512, allocations: 0 / 1.067 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005539/0.3517, allocations: 305 kB / 1.067 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.3518, allocations: 8 kB / 1.067 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.3518, allocations: 4 kB / 1.067 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.3518, allocations: 4 kB / 1.067 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.352, allocations: 48.22 kB / 1.068 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.352, allocations: 8 kB / 1.068 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.3521, allocations: 19.84 kB / 1.068 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.3521, allocations: 16 kB / 1.068 GB, free: 12.17 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.0001829/0.3523, allocations: 159.9 kB / 1.068 GB, free: 12 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/0.3524, allocations: 19.81 kB / 1.068 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.82e-05/0.3524, allocations: 21.86 kB / 1.068 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.3524, allocations: 4 kB / 1.068 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.3524, allocations: 0 / 1.068 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.3525, allocations: 0 / 1.068 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009862/0.3535, allocations: 0.5976 MB / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3535, allocations: 0 / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.958e-05/0.3536, allocations: 15.98 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.3536, allocations: 4 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.3536, allocations: 7.984 kB / 1.068 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.93e-06/0.3536, allocations: 3.938 kB / 1.068 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3536, allocations: 3.938 kB / 1.068 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006972/0.3543, allocations: 454 kB / 1.069 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.632e-05/0.3544, allocations: 96.86 kB / 1.069 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.172e-05/0.3544, allocations: 15.98 kB / 1.069 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.3546, allocations: 20.05 kB / 1.069 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.673e-05/0.3546, allocations: 11.98 kB / 1.069 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.722e-05/0.3547, allocations: 15.98 kB / 1.069 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.001e-05/0.3548, allocations: 124.2 kB / 1.069 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3548, allocations: 0 / 1.069 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005681/0.3554, allocations: 108 kB / 1.069 GB, free: 10.41 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.0009873/0.3564, allocations: 449.5 kB / 1.07 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004453/0.3568, allocations: 207.7 kB / 1.07 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3568, allocations: 0.75 kB / 1.07 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001861/0.357, allocations: 91.89 kB / 1.07 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003426/0.3574, allocations: 34.14 kB / 1.07 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008014/0.3582, allocations: 461.1 kB / 1.07 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.3585, allocations: 0.7284 MB / 1.071 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.412e-05/0.3586, allocations: 15.44 kB / 1.071 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of SimCode: time 3.71e-07/0.3586, allocations: 0 / 1.071 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of Templates: time 0.007341/0.3659, allocations: 3.894 MB / 1.075 GB, free: 4.605 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