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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0009888/0.0009889, allocations: 98.8 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.001208/0.001208, allocations: 183.2 kB / 16.92 MB, free: 6.895 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.43/1.43, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.65/2.65, allocations: 437.8 MB / 0.7128 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003881/0.0003884, allocations: 11.98 kB / 0.8735 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7735/0.7739, allocations: 153.8 MB / 1.024 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002222/0.7761, allocations: 1.446 MB / 1.025 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002809/0.779, allocations: 1.763 MB / 1.027 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.7791, allocations: 4 kB / 1.027 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.7793, allocations: 19.86 kB / 1.027 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001511/0.7795, allocations: 27.78 kB / 1.027 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001261/0.7807, allocations: 269.8 kB / 1.027 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003226/0.7811, allocations: 207.4 kB / 1.027 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.7812, allocations: 21.56 kB / 1.027 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.7813, allocations: 71.69 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.7815, allocations: 75.67 kB / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.413e-05/0.7815, allocations: 4 kB / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004716/0.782, allocations: 251.6 kB / 1.028 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001135/0.7821, allocations: 55.81 kB / 1.028 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.7822, allocations: 85.36 kB / 1.028 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003972/0.7826, allocations: 261.5 kB / 1.028 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.524e-06/0.7827, allocations: 0 / 1.028 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.675e-06/0.7827, allocations: 4 kB / 1.028 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.7827, allocations: 3.938 kB / 1.028 GB, free: 11.34 MB / 0.7794 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.0008403/0.7835, allocations: 0.4912 MB / 1.029 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.7836, allocations: 12.03 kB / 1.029 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.981e-05/0.7836, allocations: 16.75 kB / 1.029 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002549/0.7839, allocations: 225.9 kB / 1.029 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.7839, allocations: 16.3 kB / 1.029 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.165e-05/0.784, allocations: 12 kB / 1.029 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003198/0.7843, allocations: 162.2 kB / 1.029 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.7843, allocations: 4 kB / 1.029 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/0.7843, allocations: 4 kB / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.7844, allocations: 4 kB / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002309/0.7846, allocations: 87.88 kB / 1.029 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008771/0.7855, allocations: 436.7 kB / 1.03 GB, free: 9.738 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003158/0.7858, allocations: 162.3 kB / 1.03 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001546/0.786, allocations: 73.77 kB / 1.03 GB, free: 9.496 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.786, allocations: 4 kB / 1.03 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003094/0.7863, allocations: 170.4 kB / 1.03 GB, free: 9.309 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.804e-06/0.7863, allocations: 4 kB / 1.03 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20): time 0.000691/0.787, allocations: 319.5 kB / 1.03 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.761e-05/0.7871, allocations: 89.09 kB / 1.03 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.7873, allocations: 174.4 kB / 1.03 GB, free: 8.703 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.472e-05/0.7873, allocations: 37.7 kB / 1.031 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.477e-05/0.7874, allocations: 108.6 kB / 1.031 GB, free: 8.551 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.961e-05/0.7875, allocations: 55.3 kB / 1.031 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.977e-05/0.7875, allocations: 33.7 kB / 1.031 GB, free: 8.457 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001388/0.7877, allocations: 338.7 kB / 1.031 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001696/0.7879, allocations: 84.5 kB / 1.031 GB, free: 8.031 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002326/0.7881, allocations: 181.9 kB / 1.031 GB, free: 7.809 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003927/0.7885, allocations: 267.8 kB / 1.032 GB, free: 7.504 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.255e-06/0.7885, allocations: 11.98 kB / 1.032 GB, free: 7.492 MB / 0.7794 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005874/0.7891, allocations: 301.4 kB / 1.032 GB, free: 7.191 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.7892, allocations: 8 kB / 1.032 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.7892, allocations: 4 kB / 1.032 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.7892, allocations: 4 kB / 1.032 GB, free: 7.176 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001613/0.7894, allocations: 47.86 kB / 1.032 GB, free: 7.129 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.461e-05/0.7894, allocations: 11.97 kB / 1.032 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.7895, allocations: 19.84 kB / 1.032 GB, free: 7.098 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.7895, allocations: 12 kB / 1.032 GB, free: 7.086 MB / 0.7794 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.0001701/0.7897, allocations: 160 kB / 1.032 GB, free: 6.922 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.235e-05/0.7898, allocations: 19.89 kB / 1.032 GB, free: 6.902 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.571e-05/0.7898, allocations: 21.81 kB / 1.032 GB, free: 6.887 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.116e-06/0.7898, allocations: 4 kB / 1.032 GB, free: 6.883 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.7898, allocations: 0 / 1.032 GB, free: 6.883 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.7898, allocations: 3.984 kB / 1.032 GB, free: 6.879 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000902/0.7907, allocations: 0.5972 MB / 1.033 GB, free: 6.227 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.7908, allocations: 0 / 1.033 GB, free: 6.227 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/0.7909, allocations: 15.98 kB / 1.033 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.7909, allocations: 7.984 kB / 1.033 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.538e-05/0.7909, allocations: 8.062 kB / 1.033 GB, free: 6.195 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.697e-06/0.7909, allocations: 23.8 kB / 1.033 GB, free: 6.172 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.7909, allocations: 0 / 1.033 GB, free: 6.172 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007219/0.7917, allocations: 448 kB / 1.033 GB, free: 5.715 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.023e-05/0.7917, allocations: 92.91 kB / 1.033 GB, free: 5.605 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.931e-05/0.7918, allocations: 11.94 kB / 1.033 GB, free: 5.594 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.7919, allocations: 15.98 kB / 1.033 GB, free: 5.578 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.73e-05/0.792, allocations: 15.97 kB / 1.033 GB, free: 5.562 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.7e-05/0.792, allocations: 8 kB / 1.033 GB, free: 5.555 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.916e-05/0.7921, allocations: 125.8 kB / 1.033 GB, free: 5.434 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7921, allocations: 4 kB / 1.033 GB, free: 5.43 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004864/0.7926, allocations: 107.9 kB / 1.034 GB, free: 5.324 MB / 0.7794 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.0009206/0.7935, allocations: 442.1 kB / 1.034 GB, free: 4.992 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004891/0.794, allocations: 211.8 kB / 1.034 GB, free: 4.785 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.7941, allocations: 0 / 1.034 GB, free: 4.785 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002029/0.7943, allocations: 97.08 kB / 1.034 GB, free: 4.691 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003415/0.7946, allocations: 27.33 kB / 1.034 GB, free: 4.668 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008218/0.7954, allocations: 469 kB / 1.035 GB, free: 4.176 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.7959, allocations: 0.7284 MB / 1.035 GB, free: 3.422 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.695e-05/0.7959, allocations: 19.44 kB / 1.035 GB, free: 3.402 MB / 0.7794 GB Notification: Performance of SimCode: time 5.61e-07/0.7959, allocations: 0 / 1.035 GB, free: 3.402 MB / 0.7794 GB Notification: Performance of Templates: time 0.007044/0.803, allocations: 3.882 MB / 1.039 GB, free: 15.52 MB / 0.795 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++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 10.1.0-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.0-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.0-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