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.001106/0.001106, 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.001302/0.001302, allocations: 185.3 kB / 16.92 MB, free: 6.727 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.365/1.365, allocations: 223.3 MB / 241 MB, free: 5.355 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.551/2.551, allocations: 390.9 MB / 0.667 GB, free: 2.395 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003761/0.0003761, allocations: 8 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.68/0.6804, allocations: 142.4 MB / 0.9557 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.001869/0.6823, allocations: 1.437 MB / 0.9571 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002506/0.6848, allocations: 1.765 MB / 0.9588 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.833e-05/0.6849, allocations: 7.938 kB / 0.9588 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001698/0.6851, allocations: 22.72 kB / 0.9589 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001272/0.6852, allocations: 19.7 kB / 0.9589 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.6863, allocations: 269.2 kB / 0.9591 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002543/0.6866, allocations: 204.7 kB / 0.9593 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.6867, allocations: 37.84 kB / 0.9594 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.6868, allocations: 68.09 kB / 0.9594 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001079/0.6869, allocations: 73.12 kB / 0.9595 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.292e-05/0.687, allocations: 4.281 kB / 0.9595 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003877/0.6874, allocations: 255.3 kB / 0.9597 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.6875, allocations: 47.44 kB / 0.9598 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.449e-05/0.6876, allocations: 100.5 kB / 0.9599 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002986/0.6879, allocations: 250.9 kB / 0.9601 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.6879, allocations: 0 / 0.9601 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.573e-06/0.6879, allocations: 1.844 kB / 0.9601 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.6879, allocations: 0 / 0.9601 GB, free: 4.363 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.0007052/0.6886, allocations: 0.5002 MB / 0.9606 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.6887, allocations: 13.56 kB / 0.9606 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.184e-05/0.6887, allocations: 22.36 kB / 0.9607 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.6889, allocations: 222.9 kB / 0.9609 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.6889, allocations: 13.81 kB / 0.9609 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.129e-05/0.689, allocations: 17.61 kB / 0.9609 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003008/0.6893, allocations: 154 kB / 0.961 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.6893, allocations: 0 / 0.961 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.6893, allocations: 9.359 kB / 0.9611 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.96e-06/0.6893, allocations: 1.375 kB / 0.9611 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002147/0.6896, allocations: 84.14 kB / 0.9611 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007508/0.6903, allocations: 439.2 kB / 0.9616 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002928/0.6906, allocations: 166.5 kB / 0.9617 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.6908, allocations: 73.72 kB / 0.9618 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.6908, allocations: 2.219 kB / 0.9618 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002764/0.6911, allocations: 179.5 kB / 0.962 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=20): time 1.473e-06/0.6911, allocations: 1.125 kB / 0.962 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20): time 0.0006723/0.6918, allocations: 325.9 kB / 0.9623 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/0.6918, allocations: 84.36 kB / 0.9623 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.692, allocations: 170.1 kB / 0.9625 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.675e-05/0.692, allocations: 38.94 kB / 0.9625 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.548e-05/0.6921, allocations: 111.2 kB / 0.9627 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.089e-05/0.6921, allocations: 56.27 kB / 0.9627 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.143e-05/0.6922, allocations: 33.42 kB / 0.9627 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.933e-05/0.6922, allocations: 331.7 kB / 0.9631 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.6924, allocations: 89.94 kB / 0.9631 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002031/0.6926, allocations: 187.5 kB / 0.9633 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003692/0.693, allocations: 268.8 kB / 0.9636 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.693, allocations: 1.188 kB / 0.9636 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000503/0.6935, allocations: 308.8 kB / 0.9639 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.6935, allocations: 8.375 kB / 0.9639 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.6935, allocations: 2.406 kB / 0.9639 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.6936, allocations: 4.656 kB / 0.9639 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001542/0.6937, allocations: 46.75 kB / 0.9639 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.6937, allocations: 13.52 kB / 0.9639 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.6939, allocations: 25.53 kB / 0.964 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.056e-05/0.6939, allocations: 14.14 kB / 0.964 GB, free: 1.258 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.0001273/0.694, allocations: 156.7 kB / 0.9641 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.047e-05/0.6941, allocations: 15.97 kB / 0.9641 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.46e-05/0.6941, allocations: 22.48 kB / 0.9642 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.6941, allocations: 2.969 kB / 0.9642 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/0.6941, allocations: 5.438 kB / 0.9642 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.6941, allocations: 0 / 0.9642 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007814/0.6949, allocations: 0.5916 MB / 0.9648 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.6949, allocations: 1.312 kB / 0.9648 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/0.695, allocations: 20.67 kB / 0.9648 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.6951, allocations: 1.062 kB / 0.9648 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.6951, allocations: 12.11 kB / 0.9648 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.736e-06/0.6951, allocations: 4.938 kB / 0.9648 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.6951, allocations: 0.9688 kB / 0.9648 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006091/0.6957, allocations: 455 kB / 0.9652 GB, free: 340 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.099e-05/0.6958, allocations: 92.78 kB / 0.9653 GB, free: 232 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.789e-05/0.6958, allocations: 19.95 kB / 0.9653 GB, free: 216 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.6959, allocations: 16.27 kB / 0.9653 GB, free: 212 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.205e-05/0.696, allocations: 16.27 kB / 0.9654 GB, free: 200 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-05/0.696, allocations: 12.64 kB / 0.9654 GB, free: 196 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.271e-05/0.6961, allocations: 120.8 kB / 0.9655 GB, free: 100 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6961, allocations: 0 / 0.9655 GB, free: 100 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000482/0.6966, allocations: 118 kB / 0.9656 GB, free: 52 kB / 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.001012/0.6976, allocations: 430.1 kB / 0.966 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004779/0.6981, allocations: 204.6 kB / 0.9662 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.6981, allocations: 0 / 0.9662 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002045/0.6983, allocations: 93.5 kB / 0.9663 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.6987, allocations: 33.02 kB / 0.9663 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008201/0.6995, allocations: 462.2 kB / 0.9668 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.6999, allocations: 0.7289 MB / 0.9675 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.731e-05/0.6999, allocations: 21.75 kB / 0.9675 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.6999, allocations: 0 / 0.9675 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of Templates: time 0.006967/0.7069, allocations: 3.899 MB / 0.9713 GB, free: 12.62 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