Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001622/0.001622, allocations: 108.4 kB / 16.41 MB, free: 6.457 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.001847/0.001847, allocations: 187 kB / 17.34 MB, free: 5.719 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.386/1.386, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.41/2.41, allocations: 390.3 MB / 0.6655 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 63.91 kB / 0.9515 GB, free: 7.695 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.071/1.073, allocations: 140.4 MB / 1.089 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003192/1.076, allocations: 1.729 MB / 1.09 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0027/1.079, allocations: 1.811 MB / 1.092 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/1.079, allocations: 1.812 kB / 1.092 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002201/1.079, allocations: 23.72 kB / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001379/1.079, allocations: 30.52 kB / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001381/1.081, allocations: 325.3 kB / 1.092 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003652/1.081, allocations: 215.2 kB / 1.093 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/1.081, allocations: 25.91 kB / 1.093 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001841/1.082, allocations: 83.83 kB / 1.093 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000143/1.082, allocations: 83.58 kB / 1.093 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.939e-05/1.082, allocations: 11.16 kB / 1.093 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005557/1.082, allocations: 280.2 kB / 1.093 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001273/1.082, allocations: 53 kB / 1.093 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.457e-05/1.083, allocations: 70.75 kB / 1.093 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006669/1.083, allocations: 375.9 kB / 1.094 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/1.083, allocations: 1.891 kB / 1.094 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.513e-06/1.083, allocations: 4 kB / 1.094 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.714e-06/1.083, allocations: 3.938 kB / 1.094 GB, free: 2.395 MB / 0.8575 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.0009172/1.084, allocations: 0.5148 MB / 1.094 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.177e-05/1.084, allocations: 9.375 kB / 1.094 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.757e-05/1.084, allocations: 19.17 kB / 1.094 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003275/1.085, allocations: 224.3 kB / 1.094 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.492e-05/1.085, allocations: 26.36 kB / 1.094 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.607e-05/1.085, allocations: 14.36 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004805/1.085, allocations: 149.9 kB / 1.094 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/1.085, allocations: 0.6875 kB / 1.094 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.639e-05/1.085, allocations: 2.188 kB / 1.094 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/1.085, allocations: 2.438 kB / 1.094 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003042/1.086, allocations: 87 kB / 1.095 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/1.087, allocations: 429.6 kB / 1.095 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004625/1.087, allocations: 149.8 kB / 1.095 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002146/1.087, allocations: 67.69 kB / 1.095 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/1.088, allocations: 7.719 kB / 1.095 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004628/1.088, allocations: 170.4 kB / 1.095 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=20): time 2.735e-06/1.088, allocations: 0 / 1.095 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20): time 0.0009376/1.089, allocations: 311.4 kB / 1.096 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.302e-05/1.089, allocations: 91.12 kB / 1.096 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001959/1.089, allocations: 174.1 kB / 1.096 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/1.089, allocations: 41.55 kB / 1.096 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.607e-05/1.089, allocations: 110.3 kB / 1.096 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.7e-05/1.089, allocations: 62.11 kB / 1.096 GB, free: 0.5547 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.393e-05/1.09, allocations: 58.25 kB / 1.096 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.519e-05/1.09, allocations: 334.4 kB / 1.096 GB, free: 196 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/1.09, allocations: 81.33 kB / 1.097 GB, free: 172 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002552/1.09, allocations: 177.2 kB / 1.097 GB, free: 24 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000495/1.091, allocations: 262.1 kB / 1.097 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/1.091, allocations: 0 / 1.097 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006369/1.091, allocations: 301.3 kB / 1.097 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/1.091, allocations: 7.859 kB / 1.097 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/1.091, allocations: 3.5 kB / 1.097 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.344e-05/1.091, allocations: 4.375 kB / 1.097 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/1.092, allocations: 43.34 kB / 1.097 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/1.092, allocations: 5.391 kB / 1.097 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/1.092, allocations: 26.11 kB / 1.097 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.562e-05/1.092, allocations: 14.12 kB / 1.097 GB, free: 15.68 MB / 0.8731 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.0001942/1.092, allocations: 153.7 kB / 1.098 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.284e-05/1.092, allocations: 21.98 kB / 1.098 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.568e-05/1.092, allocations: 32.78 kB / 1.098 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/1.092, allocations: 2.688 kB / 1.098 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/1.092, allocations: 0 / 1.098 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/1.092, allocations: 2.234 kB / 1.098 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001086/1.093, allocations: 0.578 MB / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/1.093, allocations: 0.9062 kB / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/1.093, allocations: 22.42 kB / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/1.093, allocations: 2.094 kB / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.552e-05/1.093, allocations: 10.03 kB / 1.098 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/1.093, allocations: 5.547 kB / 1.098 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/1.093, allocations: 1.281 kB / 1.098 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008285/1.094, allocations: 431.2 kB / 1.099 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.39e-05/1.094, allocations: 91.14 kB / 1.099 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.476e-05/1.094, allocations: 20.59 kB / 1.099 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/1.094, allocations: 14.31 kB / 1.099 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.168e-05/1.095, allocations: 14.33 kB / 1.099 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.903e-05/1.095, allocations: 10.53 kB / 1.099 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001461/1.095, allocations: 120.8 kB / 1.099 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/1.095, allocations: 0 / 1.099 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006504/1.095, allocations: 113.1 kB / 1.099 GB, free: 14.65 MB / 0.8731 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.001008/1.096, allocations: 444.2 kB / 1.099 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005133/1.097, allocations: 202.6 kB / 1.1 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/1.097, allocations: 1.062 kB / 1.1 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002069/1.097, allocations: 85.39 kB / 1.1 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003588/1.098, allocations: 33.06 kB / 1.1 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008637/1.098, allocations: 402.2 kB / 1.1 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004023/1.099, allocations: 0.7323 MB / 1.101 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.006e-05/1.099, allocations: 18.62 kB / 1.101 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of SimCode: time 2.51e-07/1.099, allocations: 0 / 1.101 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of Templates: time 0.008783/1.108, allocations: 3.937 MB / 1.105 GB, free: 12.93 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.makefile make -j1 -f Buildings_9_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 9.1.3-maint.9.1.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 9.1.3-maint.9.1.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterCalcHelperMain.o OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterCalcHelperMain.cpp In file included from OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/Resources/C-Sources/pythonWrapper.c:35:3: error: use of undeclared identifier 'pythonExchangeValuesNoModelica' pythonExchangeValuesNoModelica( ^ 1 error generated. make: *** [: OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilterCalcHelperMain.o] Error 1