Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Python36.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter") translateModel(Buildings.Utilities.IO.Python36.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.352/1.352, allocations: 251.5 MB / 267.4 MB, free: 11.1 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00104/0.00104, allocations: 170.3 kB / 326.5 MB, free: 2.719 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.966/1.966, allocations: 205 MB / 0.5766 GB, free: 20.98 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008428/0.0008427, allocations: 95.88 kB / 0.6804 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003555/0.0003556, allocations: 8.719 kB / 0.7938 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2965, allocations: 105.4 MB / 0.8967 GB, free: 68.2 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Examples.KalmanFilter): time 0.002237/0.2988, allocations: 1.467 MB / 0.8982 GB, free: 66.72 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00247/0.3013, allocations: 1.842 MB / 0.9 GB, free: 64.87 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.401e-05/0.3014, allocations: 7.938 kB / 0.9 GB, free: 64.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002007/0.3016, allocations: 23.84 kB / 0.9 GB, free: 64.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001234/0.3017, allocations: 23.8 kB / 0.9 GB, free: 64.81 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Utilities/IO/Python36/Functions/exchange.mo:2:1-113:13:writable] Warning: Pure function ‘Buildings.Utilities.IO.Python36.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.001227/0.303, allocations: 273.5 kB / 0.9003 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002287/0.3032, allocations: 199.5 kB / 0.9005 GB, free: 64.36 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.3033, allocations: 33.48 kB / 0.9005 GB, free: 64.32 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001288/0.3034, allocations: 79.69 kB / 0.9006 GB, free: 64.24 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001084/0.3036, allocations: 71.66 kB / 0.9006 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.338e-05/0.3036, allocations: 7.938 kB / 0.9007 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003653/0.304, allocations: 243.7 kB / 0.9009 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 9.899e-05/0.3041, allocations: 55.8 kB / 0.9009 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.838e-05/0.3042, allocations: 71.59 kB / 0.901 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002955/0.3045, allocations: 247.5 kB / 0.9012 GB, free: 63.56 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3045, allocations: 0 / 0.9012 GB, free: 63.56 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3045, allocations: 0 / 0.9012 GB, free: 63.56 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.592e-06/0.3045, allocations: 0 / 0.9012 GB, free: 63.56 MB / 0.6042 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.0007609/0.3053, allocations: 0.5029 MB / 0.9017 GB, free: 63.01 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.3053, allocations: 8.031 kB / 0.9017 GB, free: 63 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.173e-05/0.3054, allocations: 24.73 kB / 0.9018 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001907/0.3056, allocations: 224.6 kB / 0.902 GB, free: 62.72 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.3056, allocations: 8.312 kB / 0.902 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.307e-05/0.3056, allocations: 16 kB / 0.902 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/0.3059, allocations: 157.2 kB / 0.9022 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.3059, allocations: 0 / 0.9022 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.306, allocations: 7.984 kB / 0.9022 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.306, allocations: 4 kB / 0.9022 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001949/0.3062, allocations: 87.88 kB / 0.9022 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008158/0.307, allocations: 436.6 kB / 0.9027 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002771/0.3073, allocations: 162.5 kB / 0.9028 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001326/0.3074, allocations: 72.81 kB / 0.9029 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.3075, allocations: 0 / 0.9029 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002859/0.3078, allocations: 182.6 kB / 0.9031 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=20): time 1.553e-06/0.3078, allocations: 0 / 0.9031 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of matching and sorting (n=20): time 0.0006692/0.3084, allocations: 319.6 kB / 0.9034 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/0.3085, allocations: 89.23 kB / 0.9035 GB, free: 61.1 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.3087, allocations: 178.8 kB / 0.9036 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.3087, allocations: 37.7 kB / 0.9037 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.405e-05/0.3088, allocations: 112.5 kB / 0.9038 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.089e-05/0.3088, allocations: 55.33 kB / 0.9038 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.783e-05/0.3089, allocations: 41.64 kB / 0.9039 GB, free: 60.65 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.371e-05/0.3089, allocations: 334.8 kB / 0.9042 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.3091, allocations: 84.5 kB / 0.9043 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.3093, allocations: 185.9 kB / 0.9044 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000311/0.3096, allocations: 275.7 kB / 0.9047 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.3096, allocations: 0 / 0.9047 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003972/0.31, allocations: 309.3 kB / 0.905 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.31, allocations: 4 kB / 0.905 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.3101, allocations: 7.984 kB / 0.905 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.3101, allocations: 4 kB / 0.905 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.3102, allocations: 43.91 kB / 0.9051 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.3102, allocations: 4 kB / 0.9051 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.984e-05/0.3104, allocations: 27.91 kB / 0.9051 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.3104, allocations: 12 kB / 0.9051 GB, free: 59.29 MB / 0.6042 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.0001318/0.3105, allocations: 159.9 kB / 0.9052 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.3105, allocations: 15.81 kB / 0.9053 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.791e-05/0.3106, allocations: 25.86 kB / 0.9053 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.3106, allocations: 0 / 0.9053 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.3106, allocations: 0 / 0.9053 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.3106, allocations: 8 kB / 0.9053 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007027/0.3113, allocations: 0.5841 MB / 0.9059 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3114, allocations: 0 / 0.9059 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.279e-05/0.3115, allocations: 23.92 kB / 0.9059 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.3115, allocations: 4 kB / 0.9059 GB, free: 58.4 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.202e-05/0.3115, allocations: 7.984 kB / 0.9059 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.3115, allocations: 3.938 kB / 0.9059 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3115, allocations: 96 / 0.9059 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006044/0.3121, allocations: 457.4 kB / 0.9063 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.091e-05/0.3122, allocations: 88.98 kB / 0.9064 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.857e-05/0.3122, allocations: 15.92 kB / 0.9064 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.3123, allocations: 19.98 kB / 0.9065 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.958e-05/0.3124, allocations: 7.984 kB / 0.9065 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.262e-05/0.3124, allocations: 12.06 kB / 0.9065 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 7.275e-05/0.3125, allocations: 123.2 kB / 0.9066 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3125, allocations: 3.938 kB / 0.9066 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004187/0.3129, allocations: 111.9 kB / 0.9067 GB, free: 57.53 MB / 0.6042 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.0008693/0.3138, allocations: 424.9 kB / 0.9071 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003861/0.3142, allocations: 203.7 kB / 0.9073 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3142, allocations: 0.75 kB / 0.9073 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.3144, allocations: 91.89 kB / 0.9074 GB, free: 56.93 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/0.3147, allocations: 29.38 kB / 0.9074 GB, free: 56.9 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007983/0.3155, allocations: 473.6 kB / 0.9079 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001923/0.3157, allocations: 0.7281 MB / 0.9086 GB, free: 55.65 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.863e-05/0.3158, allocations: 19.42 kB / 0.9086 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of SimCode: time 6.61e-07/0.3158, allocations: 0 / 0.9086 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of Templates: time 0.00546/0.3212, allocations: 3.889 MB / 0.9124 GB, free: 51.75 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.makefile make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.makefile clang++ -std=c++14 -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/Buildings 7.0.3-maint.7.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/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilterCalcHelperMain.o OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilterCalcHelperMain.cpp In file included from OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilterCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilterFunctions.cpp:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources/pythonWrapper.c:35:3: error: use of undeclared identifier 'pythonExchangeValuesNoModelica' pythonExchangeValuesNoModelica( ^ 1 error generated. make: *** [: OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilterCalcHelperMain.o] Error 1