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.404/1.404, allocations: 252 MB / 267.6 MB, free: 10.91 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.001063/0.001063, allocations: 187.4 kB / 327.3 MB, free: 2.211 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.816/1.816, allocations: 205.4 MB / 0.5783 GB, free: 20.52 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.0007348/0.0007349, allocations: 79.45 kB / 0.6829 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003589/0.0003587, allocations: 9 kB / 0.797 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1984/0.1988, allocations: 106.3 MB / 0.9008 GB, free: 64.32 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Examples.KalmanFilter): time 0.001857/0.2007, allocations: 1.427 MB / 0.9022 GB, free: 62.88 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001969/0.2027, allocations: 1.741 MB / 0.9039 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.169e-05/0.2028, allocations: 0 / 0.9039 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001572/0.2029, allocations: 19.86 kB / 0.9039 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001167/0.2031, allocations: 27.78 kB / 0.904 GB, free: 61.08 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.0006774/0.2038, allocations: 265.9 kB / 0.9042 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002071/0.204, allocations: 183.5 kB / 0.9044 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.295e-05/0.2041, allocations: 29.52 kB / 0.9044 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.2042, allocations: 71.7 kB / 0.9045 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 9.211e-05/0.2043, allocations: 67.67 kB / 0.9045 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.054e-05/0.2043, allocations: 4 kB / 0.9046 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003118/0.2046, allocations: 235.7 kB / 0.9048 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.603e-05/0.2047, allocations: 51.8 kB / 0.9048 GB, free: 60.19 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.389e-05/0.2048, allocations: 53.58 kB / 0.9049 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002542/0.205, allocations: 251.5 kB / 0.9051 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2051, allocations: 0 / 0.9051 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2051, allocations: 0 / 0.9051 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.2051, allocations: 0 / 0.9051 GB, free: 59.88 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.0006906/0.2058, allocations: 0.4992 MB / 0.9056 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.2058, allocations: 12.03 kB / 0.9056 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.32e-05/0.2059, allocations: 19.77 kB / 0.9056 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000186/0.206, allocations: 223.4 kB / 0.9058 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.2061, allocations: 12.19 kB / 0.9059 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.57e-05/0.2061, allocations: 12 kB / 0.9059 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002655/0.2064, allocations: 159.7 kB / 0.906 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.2064, allocations: 0 / 0.906 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.2064, allocations: 8 kB / 0.906 GB, free: 58.85 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.2064, allocations: 0 / 0.906 GB, free: 58.85 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001918/0.2066, allocations: 96.39 kB / 0.9061 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007128/0.2074, allocations: 436.9 kB / 0.9065 GB, free: 58.28 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002452/0.2076, allocations: 154.5 kB / 0.9067 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.2078, allocations: 64.83 kB / 0.9067 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.975e-05/0.2078, allocations: 15.92 kB / 0.9068 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002718/0.2081, allocations: 167.5 kB / 0.9069 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=20): time 1.473e-06/0.2081, allocations: 0 / 0.9069 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of matching and sorting (n=20): time 0.0005845/0.2087, allocations: 317.7 kB / 0.9072 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.2087, allocations: 97.08 kB / 0.9073 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.2088, allocations: 174.8 kB / 0.9075 GB, free: 57.25 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.2089, allocations: 37.7 kB / 0.9075 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.308e-05/0.2089, allocations: 112.6 kB / 0.9076 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.006e-05/0.209, allocations: 51.3 kB / 0.9077 GB, free: 57.04 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.008e-05/0.209, allocations: 8 kB / 0.9077 GB, free: 57.03 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.261e-05/0.209, allocations: 338.8 kB / 0.908 GB, free: 56.69 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.2092, allocations: 80.5 kB / 0.9081 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001662/0.2093, allocations: 177.9 kB / 0.9083 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001694/0.2095, allocations: 115.9 kB / 0.9084 GB, free: 56.28 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.2095, allocations: 0 / 0.9084 GB, free: 56.28 MB / 0.6042 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004158/0.21, allocations: 301.4 kB / 0.9087 GB, free: 55.98 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.21, allocations: 12 kB / 0.9087 GB, free: 55.97 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.21, allocations: 7.984 kB / 0.9087 GB, free: 55.96 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.21, allocations: 4 kB / 0.9087 GB, free: 55.96 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.2102, allocations: 47.98 kB / 0.9087 GB, free: 55.91 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.2102, allocations: 7.984 kB / 0.9087 GB, free: 55.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.2103, allocations: 23.83 kB / 0.9088 GB, free: 55.88 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.783e-05/0.2103, allocations: 12 kB / 0.9088 GB, free: 55.87 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,$PRE.kalFil.firstTrigger,kalFil.firstTrigger,$PRE.kalFil.yR[1],kalFil.yR[1],$PRE.kalFil.uRIntPre[1],kalFil.uRIntPre[1],$PRE.ran.firstTrigger,ran.firstTrigger,$PRE.ran.uRIntPre[1],ran.uRIntPre[1],$whenCondition1,ran.sampleTrigger,$PRE.ran.uRWri[1],ran.uRWri[1],$PRE.ran.uRWri_temp[1],ran.uRWri_temp[1],$whenCondition2,kalFil.sampleTrigger,$PRE.ran.yR[1],ran.yR[1],$PRE.kalFil.uRWri[1],kalFil.uRWri[1],$PRE.kalFil.uRWri_temp[1],kalFil.uRWri_temp[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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001242/0.2105, allocations: 163.9 kB / 0.9089 GB, free: 55.7 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.427e-05/0.2105, allocations: 15.81 kB / 0.9089 GB, free: 55.68 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.266e-05/0.2105, allocations: 25.84 kB / 0.909 GB, free: 55.66 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.2105, allocations: 4 kB / 0.909 GB, free: 55.65 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.2106, allocations: 3.938 kB / 0.909 GB, free: 55.65 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2106, allocations: 0 / 0.909 GB, free: 55.65 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006849/0.2113, allocations: 0.5979 MB / 0.9096 GB, free: 55 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.2113, allocations: 0 / 0.9096 GB, free: 55 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.333e-05/0.2114, allocations: 12 kB / 0.9096 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.2114, allocations: 3.984 kB / 0.9096 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.2114, allocations: 8 kB / 0.9096 GB, free: 54.97 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.2114, allocations: 4 kB / 0.9096 GB, free: 54.97 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.2114, allocations: 4 kB / 0.9096 GB, free: 54.96 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005441/0.212, allocations: 453.4 kB / 0.91 GB, free: 54.5 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.973e-05/0.212, allocations: 88.95 kB / 0.9101 GB, free: 54.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.245e-05/0.212, allocations: 11.98 kB / 0.9101 GB, free: 54.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.2122, allocations: 15.98 kB / 0.9101 GB, free: 54.37 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.427e-05/0.2122, allocations: 11.98 kB / 0.9101 GB, free: 54.36 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.139e-05/0.2123, allocations: 11.98 kB / 0.9101 GB, free: 54.35 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.957e-05/0.2123, allocations: 119.2 kB / 0.9103 GB, free: 54.23 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2123, allocations: 4.062 kB / 0.9103 GB, free: 54.23 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003617/0.2127, allocations: 115.8 kB / 0.9104 GB, free: 54.11 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007197/0.2134, allocations: 423.1 kB / 0.9108 GB, free: 53.8 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003522/0.2138, allocations: 210.2 kB / 0.911 GB, free: 53.59 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2138, allocations: 0 / 0.911 GB, free: 53.59 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001535/0.214, allocations: 96.69 kB / 0.9111 GB, free: 53.5 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003054/0.2143, allocations: 23.98 kB / 0.9111 GB, free: 53.48 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006636/0.2149, allocations: 468.6 kB / 0.9115 GB, free: 52.98 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001536/0.2151, allocations: 0.7319 MB / 0.9123 GB, free: 52.23 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.559e-05/0.2152, allocations: 19.44 kB / 0.9123 GB, free: 52.21 MB / 0.6042 GB Notification: Performance of SimCode: time 2.21e-07/0.2152, allocations: 0 / 0.9123 GB, free: 52.21 MB / 0.6042 GB Notification: Performance of Templates: time 0.004901/0.2201, allocations: 3.88 MB / 0.9161 GB, free: 48.34 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++ -Winvalid-pch -O0 -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/c/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