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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00108/0.00108, 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.001098/0.001098, allocations: 199.4 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.345/1.345, allocations: 222.9 MB / 240.5 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.412/2.412, allocations: 390.2 MB / 0.6649 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 67.89 kB / 0.8125 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6651/0.6667, allocations: 140.3 MB / 0.9496 GB, free: 9.242 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.00274/0.6695, allocations: 1.784 MB / 0.9513 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002102/0.6716, allocations: 1.798 MB / 0.9531 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.672e-05/0.6717, allocations: 0 / 0.9531 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001451/0.6718, allocations: 18.55 kB / 0.9531 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000111/0.6719, allocations: 35.88 kB / 0.9531 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009508/0.6729, allocations: 264.4 kB / 0.9534 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002313/0.6731, allocations: 208.1 kB / 0.9536 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.549e-05/0.6732, allocations: 34.16 kB / 0.9536 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.6733, allocations: 77.19 kB / 0.9537 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/0.6735, allocations: 74.05 kB / 0.9537 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.6735, allocations: 5.906 kB / 0.9538 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003607/0.6739, allocations: 251.4 kB / 0.954 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.73e-05/0.674, allocations: 56.2 kB / 0.954 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.72e-05/0.6741, allocations: 62.05 kB / 0.9541 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000313/0.6744, allocations: 254.8 kB / 0.9543 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.6744, allocations: 9.375 kB / 0.9544 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.112e-06/0.6744, allocations: 0 / 0.9544 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.04e-05/0.6744, allocations: 0 / 0.9544 GB, free: 5.641 MB / 0.7169 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.0007712/0.6752, allocations: 0.5227 MB / 0.9549 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.6752, allocations: 10.25 kB / 0.9549 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.846e-05/0.6753, allocations: 22.12 kB / 0.9549 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001925/0.6755, allocations: 235.3 kB / 0.9551 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.6755, allocations: 9.906 kB / 0.9551 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.841e-05/0.6755, allocations: 13.03 kB / 0.9551 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000305/0.6759, allocations: 156.1 kB / 0.9553 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.447e-06/0.6759, allocations: 1.469 kB / 0.9553 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.97e-05/0.6759, allocations: 5.531 kB / 0.9553 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.6759, allocations: 1.188 kB / 0.9553 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002047/0.6761, allocations: 85.12 kB / 0.9554 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007249/0.6769, allocations: 427.5 kB / 0.9558 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002692/0.6771, allocations: 157.6 kB / 0.9559 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001277/0.6773, allocations: 67.55 kB / 0.956 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.6773, allocations: 1.875 kB / 0.956 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002649/0.6776, allocations: 164 kB / 0.9562 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=20): time 1.423e-06/0.6776, allocations: 1.25 kB / 0.9562 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20): time 0.0006333/0.6782, allocations: 310 kB / 0.9565 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.6783, allocations: 93.25 kB / 0.9566 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.6784, allocations: 172.8 kB / 0.9567 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.558e-05/0.6784, allocations: 36.23 kB / 0.9567 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.184e-05/0.6785, allocations: 110.7 kB / 0.9569 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.663e-05/0.6785, allocations: 56.72 kB / 0.9569 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.194e-05/0.6786, allocations: 68.91 kB / 0.957 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.295e-05/0.6787, allocations: 332.3 kB / 0.9573 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001434/0.6788, allocations: 78.03 kB / 0.9574 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001804/0.679, allocations: 180 kB / 0.9575 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003372/0.6793, allocations: 268.6 kB / 0.9578 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.6794, allocations: 1.812 kB / 0.9578 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004295/0.6798, allocations: 292.1 kB / 0.9581 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.6798, allocations: 9.812 kB / 0.9581 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.6798, allocations: 8.125 kB / 0.9581 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.6798, allocations: 4.125 kB / 0.9581 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.68, allocations: 40.78 kB / 0.9581 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.68, allocations: 5.5 kB / 0.9581 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.6801, allocations: 24.09 kB / 0.9582 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.6801, allocations: 9.625 kB / 0.9582 GB, free: 2.527 MB / 0.7169 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.0001236/0.6803, allocations: 160.6 kB / 0.9583 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.336e-05/0.6803, allocations: 17.44 kB / 0.9583 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.138e-05/0.6804, allocations: 21.98 kB / 0.9584 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.6804, allocations: 2.625 kB / 0.9584 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.6804, allocations: 4.062 kB / 0.9584 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.6804, allocations: 1.344 kB / 0.9584 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007465/0.6811, allocations: 0.5887 MB / 0.9589 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.6812, allocations: 1.156 kB / 0.9589 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.6813, allocations: 18.05 kB / 0.959 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.6813, allocations: 2.25 kB / 0.959 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/0.6813, allocations: 7.016 kB / 0.959 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.125e-06/0.6813, allocations: 5.906 kB / 0.959 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.6813, allocations: 0 / 0.959 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006302/0.6819, allocations: 439.2 kB / 0.9594 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.215e-05/0.682, allocations: 90.31 kB / 0.9595 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.096e-05/0.682, allocations: 15.86 kB / 0.9595 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.6822, allocations: 15.36 kB / 0.9595 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.339e-05/0.6822, allocations: 10.52 kB / 0.9595 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-05/0.6823, allocations: 11.44 kB / 0.9595 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.709e-05/0.6824, allocations: 129.3 kB / 0.9597 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.9e-07/0.6824, allocations: 7.938 kB / 0.9597 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004499/0.6828, allocations: 114.9 kB / 0.9598 GB, free: 1.316 MB / 0.7169 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.0008446/0.6837, allocations: 434.7 kB / 0.9602 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004036/0.6841, allocations: 196 kB / 0.9604 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.6841, allocations: 5.25 kB / 0.9604 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000177/0.6843, allocations: 84.89 kB / 0.9605 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003303/0.6846, allocations: 24.73 kB / 0.9605 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007097/0.6853, allocations: 447.3 kB / 0.9609 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002062/0.6856, allocations: 0.7289 MB / 0.9616 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.198e-05/0.6856, allocations: 21.05 kB / 0.9616 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of SimCode: time 2.8e-07/0.6856, allocations: 0 / 0.9616 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of Templates: time 0.006617/0.6922, allocations: 3.916 MB / 0.9655 GB, free: 13.89 MB / 0.7325 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++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 9.1.2-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.2-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.2-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