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.001634/0.001634, allocations: 107.5 kB / 16.41 MB, free: 6.508 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.001743/0.001744, allocations: 187 kB / 17.34 MB, free: 5.742 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.422/1.422, allocations: 222.9 MB / 241 MB, free: 15.16 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.304/2.304, allocations: 390.3 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 63.91 kB / 0.9515 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.118/1.119, 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.003049/1.122, allocations: 1.734 MB / 1.09 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002719/1.125, allocations: 1.803 MB / 1.092 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.118e-05/1.125, allocations: 5.594 kB / 1.092 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001843/1.125, allocations: 23.28 kB / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001406/1.125, allocations: 34.08 kB / 1.092 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001348/1.127, allocations: 322.5 kB / 1.092 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003557/1.127, allocations: 214.5 kB / 1.093 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/1.127, allocations: 34.7 kB / 1.093 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/1.127, allocations: 83.77 kB / 1.093 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001518/1.128, allocations: 79.86 kB / 1.093 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.145e-05/1.128, allocations: 10.28 kB / 1.093 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005136/1.128, allocations: 288 kB / 1.093 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001226/1.128, allocations: 49.75 kB / 1.093 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.818e-05/1.128, allocations: 70.86 kB / 1.093 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005703/1.129, allocations: 371.2 kB / 1.094 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/1.129, allocations: 5.734 kB / 1.094 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.553e-06/1.129, allocations: 7.938 kB / 1.094 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.011e-06/1.129, allocations: 0 / 1.094 GB, free: 2.387 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.0008587/1.13, allocations: 0.5156 MB / 1.094 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/1.13, allocations: 9.281 kB / 1.094 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.665e-05/1.13, allocations: 19.2 kB / 1.094 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002262/1.13, allocations: 227.2 kB / 1.094 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.507e-05/1.13, allocations: 15.56 kB / 1.094 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.592e-05/1.13, allocations: 13.81 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003594/1.131, allocations: 154.7 kB / 1.094 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.627e-06/1.131, allocations: 0.75 kB / 1.094 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/1.131, allocations: 1.297 kB / 1.094 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/1.131, allocations: 3.562 kB / 1.094 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002371/1.131, allocations: 81.89 kB / 1.095 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008755/1.132, allocations: 434.2 kB / 1.095 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000331/1.132, allocations: 156.9 kB / 1.095 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/1.132, allocations: 68.66 kB / 1.095 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/1.132, allocations: 7.453 kB / 1.095 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003116/1.133, allocations: 163.7 kB / 1.095 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=20): time 1.483e-06/1.133, allocations: 0 / 1.095 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20): time 0.0008081/1.134, allocations: 313.9 kB / 1.096 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.815e-05/1.134, allocations: 86.44 kB / 1.096 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001723/1.134, allocations: 177.4 kB / 1.096 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/1.134, allocations: 42.31 kB / 1.096 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.255e-05/1.134, allocations: 111 kB / 1.096 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.051e-05/1.134, allocations: 61.48 kB / 1.096 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.96e-05/1.134, allocations: 53.64 kB / 1.096 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.006e-05/1.134, allocations: 343.2 kB / 1.096 GB, free: 184 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/1.134, allocations: 76.41 kB / 1.097 GB, free: 164 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002509/1.135, allocations: 174.4 kB / 1.097 GB, free: 16 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005071/1.135, allocations: 258 kB / 1.097 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/1.135, allocations: 0.8125 kB / 1.097 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005963/1.136, allocations: 301.6 kB / 1.097 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/1.136, allocations: 6.344 kB / 1.097 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/1.136, allocations: 3.125 kB / 1.097 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/1.136, allocations: 5.812 kB / 1.097 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001671/1.136, allocations: 46.62 kB / 1.097 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/1.136, allocations: 6.312 kB / 1.097 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/1.136, allocations: 25.59 kB / 1.097 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.956e-05/1.136, allocations: 14.72 kB / 1.097 GB, free: 15.67 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.0001912/1.136, allocations: 153.5 kB / 1.098 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.018e-05/1.136, allocations: 18.02 kB / 1.098 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.348e-05/1.137, allocations: 23.8 kB / 1.098 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/1.137, allocations: 7.719 kB / 1.098 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/1.137, allocations: 1.094 kB / 1.098 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/1.137, allocations: 1.125 kB / 1.098 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009979/1.138, allocations: 0.5825 MB / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/1.138, allocations: 0 / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/1.138, allocations: 18.36 kB / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/1.138, allocations: 6.906 kB / 1.098 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.707e-05/1.138, allocations: 17.84 kB / 1.098 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/1.138, allocations: 5.219 kB / 1.098 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/1.138, allocations: 1.5 kB / 1.098 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007718/1.139, allocations: 430 kB / 1.099 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.645e-05/1.139, allocations: 94.19 kB / 1.099 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.625e-05/1.139, allocations: 15.83 kB / 1.099 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/1.139, allocations: 10.89 kB / 1.099 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.264e-05/1.139, allocations: 15.97 kB / 1.099 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-05/1.139, allocations: 9.531 kB / 1.099 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000101/1.139, allocations: 124.6 kB / 1.099 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/1.139, allocations: 0 / 1.099 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005668/1.14, allocations: 108.3 kB / 1.099 GB, free: 14.64 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.001004/1.141, allocations: 451.7 kB / 1.099 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004948/1.141, allocations: 196.6 kB / 1.1 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/1.141, allocations: 0 / 1.1 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000214/1.141, allocations: 89.55 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.0003485/1.142, allocations: 35.25 kB / 1.1 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008372/1.143, allocations: 400 kB / 1.1 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003577/1.143, allocations: 0.7307 MB / 1.101 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.262e-05/1.143, allocations: 20.33 kB / 1.101 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of SimCode: time 1.974e-06/1.143, allocations: 0 / 1.101 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of Templates: time 0.008649/1.152, allocations: 3.932 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