Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.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.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter") translateModel(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.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.441/1.441, allocations: 252 MB / 268 MB, free: 10.84 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.001375/0.001375, allocations: 179.3 kB / 327.6 MB, free: 2.109 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.853/1.853, allocations: 205.4 MB / 0.5786 GB, free: 20.12 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.0008165/0.0008169, allocations: 86.41 kB / 0.6832 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000353/0.0003531, allocations: 8.125 kB / 0.7976 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2246/0.225, allocations: 106.3 MB / 0.9015 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.001966/0.227, allocations: 1.435 MB / 0.9029 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002339/0.2293, allocations: 1.783 MB / 0.9046 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.014e-05/0.2294, allocations: 0 / 0.9046 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001731/0.2296, allocations: 19.86 kB / 0.9046 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.2297, allocations: 23.84 kB / 0.9046 GB, free: 60.21 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Obsolete/Utilities/IO/Python27/Functions/exchange.mo:2:1-109:13:writable] Warning: Pure function ‘Buildings.Obsolete.Utilities.IO.Python27.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.001196/0.2309, allocations: 268.6 kB / 0.9049 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002082/0.2312, allocations: 183.5 kB / 0.9051 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.034e-05/0.2313, allocations: 21.55 kB / 0.9051 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.2314, allocations: 67.77 kB / 0.9052 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 9.683e-05/0.2315, allocations: 67.67 kB / 0.9052 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.314e-05/0.2315, allocations: 4 kB / 0.9052 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003413/0.2319, allocations: 251.6 kB / 0.9055 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 9.573e-05/0.232, allocations: 47.77 kB / 0.9055 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.303e-05/0.232, allocations: 93.34 kB / 0.9056 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002748/0.2323, allocations: 243.5 kB / 0.9058 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2323, allocations: 0 / 0.9058 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.874e-06/0.2323, allocations: 0 / 0.9058 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.2324, allocations: 0 / 0.9058 GB, free: 58.99 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006726/0.233, allocations: 0.499 MB / 0.9063 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.2331, allocations: 12.03 kB / 0.9063 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.883e-05/0.2331, allocations: 16.75 kB / 0.9063 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001792/0.2333, allocations: 212.8 kB / 0.9065 GB, free: 58.17 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.2333, allocations: 12.38 kB / 0.9066 GB, free: 58.16 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.778e-05/0.2334, allocations: 20.11 kB / 0.9066 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002612/0.2337, allocations: 149.4 kB / 0.9067 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.2337, allocations: 0 / 0.9067 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.2337, allocations: 0 / 0.9067 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.2337, allocations: 8 kB / 0.9067 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.2339, allocations: 75.95 kB / 0.9068 GB, free: 57.9 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007029/0.2346, allocations: 416.5 kB / 0.9072 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.2349, allocations: 156.5 kB / 0.9073 GB, free: 57.28 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.235, allocations: 76.75 kB / 0.9074 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.006e-05/0.2351, allocations: 4 kB / 0.9074 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002441/0.2353, allocations: 157 kB / 0.9076 GB, free: 57.03 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=18): time 1.382e-06/0.2353, allocations: 0 / 0.9076 GB, free: 57.03 MB / 0.6042 GB Notification: Performance of matching and sorting (n=18): time 0.0005421/0.2359, allocations: 299.5 kB / 0.9079 GB, free: 56.73 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.089e-05/0.2359, allocations: 89.11 kB / 0.9079 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.236, allocations: 170 kB / 0.9081 GB, free: 56.45 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.2361, allocations: 33.83 kB / 0.9081 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.714e-05/0.2361, allocations: 112.6 kB / 0.9082 GB, free: 56.3 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.473e-05/0.2362, allocations: 55.28 kB / 0.9083 GB, free: 56.24 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.054e-05/0.2362, allocations: 7.938 kB / 0.9083 GB, free: 56.23 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.828e-05/0.2363, allocations: 334.8 kB / 0.9086 GB, free: 55.9 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.2364, allocations: 67.95 kB / 0.9087 GB, free: 55.83 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000226/0.2366, allocations: 168.8 kB / 0.9089 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003966/0.237, allocations: 255.8 kB / 0.9091 GB, free: 55.33 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.237, allocations: 0 / 0.9091 GB, free: 55.33 MB / 0.6042 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004618/0.2375, allocations: 273.1 kB / 0.9094 GB, free: 55.05 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.2375, allocations: 8.375 kB / 0.9094 GB, free: 55.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.2375, allocations: 4 kB / 0.9094 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.2376, allocations: 8 kB / 0.9094 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.2377, allocations: 43.91 kB / 0.9094 GB, free: 54.99 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.2377, allocations: 7.938 kB / 0.9094 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.758e-05/0.2378, allocations: 23.78 kB / 0.9094 GB, free: 54.96 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/0.2379, allocations: 12 kB / 0.9095 GB, free: 54.95 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: 21 ($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],$whenCondition2,kalFil.sampleTrigger,$PRE.ran.yR[1],ran.yR[1],$PRE.kalFil.uRWri[1],kalFil.uRWri[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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.0001208/0.238, allocations: 151.5 kB / 0.9096 GB, free: 54.79 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.427e-05/0.238, allocations: 15.81 kB / 0.9096 GB, free: 54.78 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.646e-05/0.2381, allocations: 17.88 kB / 0.9096 GB, free: 54.76 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.2381, allocations: 4 kB / 0.9096 GB, free: 54.76 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2381, allocations: 0 / 0.9096 GB, free: 54.76 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2381, allocations: 7.922 kB / 0.9096 GB, free: 54.75 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006671/0.2388, allocations: 0.5684 MB / 0.9102 GB, free: 54.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2388, allocations: 0 / 0.9102 GB, free: 54.12 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.2389, allocations: 19.98 kB / 0.9102 GB, free: 54.11 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.2389, allocations: 3.938 kB / 0.9102 GB, free: 54.1 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.2389, allocations: 4 kB / 0.9102 GB, free: 54.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.2389, allocations: 4 kB / 0.9102 GB, free: 54.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2389, allocations: 0 / 0.9102 GB, free: 54.09 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005294/0.2395, allocations: 425.9 kB / 0.9106 GB, free: 53.66 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.389e-05/0.2395, allocations: 93.02 kB / 0.9107 GB, free: 53.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.268e-05/0.2396, allocations: 15.92 kB / 0.9107 GB, free: 53.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.2397, allocations: 15.98 kB / 0.9108 GB, free: 53.52 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.764e-05/0.2397, allocations: 11.98 kB / 0.9108 GB, free: 53.51 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/0.2398, allocations: 11.94 kB / 0.9108 GB, free: 53.5 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.307e-05/0.2398, allocations: 124.9 kB / 0.9109 GB, free: 53.38 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2399, allocations: 0 / 0.9109 GB, free: 53.38 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004186/0.2403, allocations: 107.9 kB / 0.911 GB, free: 53.27 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: 13 (kalFil.sampleTrigger,ran.sampleTrigger,$whenCondition2,$whenCondition1,ran.firstTrigger,ran.yR[1],ran.uRIntPre[1],ran.uRWri[1],kalFil.firstTrigger,kalFil.yR[1],kalFil.uRIntPre[1],kalFil.uRWri[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 (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0008079/0.2411, allocations: 426.5 kB / 0.9114 GB, free: 52.95 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003304/0.2414, allocations: 185.3 kB / 0.9116 GB, free: 52.77 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2414, allocations: 0 / 0.9116 GB, free: 52.77 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001443/0.2416, allocations: 88.69 kB / 0.9117 GB, free: 52.69 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003136/0.2419, allocations: 27.98 kB / 0.9117 GB, free: 52.66 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006881/0.2426, allocations: 449 kB / 0.9121 GB, free: 52.19 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001531/0.2428, allocations: 0.7244 MB / 0.9128 GB, free: 51.43 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.742e-05/0.2428, allocations: 15.44 kB / 0.9128 GB, free: 51.42 MB / 0.6042 GB Notification: Performance of SimCode: time 2.9e-07/0.2428, allocations: 0 / 0.9128 GB, free: 51.42 MB / 0.6042 GB Notification: Performance of Templates: time 0.005073/0.2479, allocations: 3.746 MB / 0.9165 GB, free: 47.69 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.makefile make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.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.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterCalcHelperMain.o OMCppBuildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterCalcHelperMain.cpp In file included from OMCppBuildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.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.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterCalcHelperMain.o] Error 1