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.451/1.451, allocations: 252 MB / 268 MB, free: 10.86 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.001355/0.001355, allocations: 170.8 kB / 327.6 MB, free: 2.098 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.037/2.037, allocations: 205.4 MB / 0.5786 GB, free: 20.41 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.001006/0.001006, allocations: 97.03 kB / 0.6832 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003424, allocations: 7.938 kB / 0.7976 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2707, allocations: 106.3 MB / 0.9014 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Examples.KalmanFilter): time 0.002307/0.2731, allocations: 1.45 MB / 0.9029 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002804/0.2759, allocations: 1.815 MB / 0.9046 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.2761, allocations: 3.938 kB / 0.9046 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002056/0.2763, allocations: 23.84 kB / 0.9047 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.000184/0.2765, allocations: 19.86 kB / 0.9047 GB, free: 60.48 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.001691/0.2782, allocations: 286 kB / 0.905 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0003556/0.2786, allocations: 203.4 kB / 0.9051 GB, free: 60 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.2787, allocations: 21.55 kB / 0.9052 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001981/0.2789, allocations: 75.69 kB / 0.9052 GB, free: 59.9 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002/0.2791, allocations: 71.67 kB / 0.9053 GB, free: 59.83 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.098e-05/0.2792, allocations: 8 kB / 0.9053 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005837/0.2798, allocations: 243.6 kB / 0.9055 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001413/0.2799, allocations: 63.8 kB / 0.9056 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.2801, allocations: 85.36 kB / 0.9057 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0005236/0.2806, allocations: 251.5 kB / 0.9059 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.2806, allocations: 4 kB / 0.9059 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.314e-06/0.2806, allocations: 0 / 0.9059 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.826e-06/0.2807, allocations: 7.938 kB / 0.9059 GB, free: 59.18 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.0009164/0.2816, allocations: 0.4915 MB / 0.9064 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.2816, allocations: 12.03 kB / 0.9064 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.975e-05/0.2817, allocations: 28.72 kB / 0.9065 GB, free: 58.6 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000256/0.282, allocations: 224.6 kB / 0.9067 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.282, allocations: 16.31 kB / 0.9067 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.117e-05/0.2821, allocations: 15.98 kB / 0.9067 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003212/0.2824, allocations: 150.5 kB / 0.9068 GB, free: 58.15 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.2824, allocations: 0 / 0.9068 GB, free: 58.15 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.297e-05/0.2824, allocations: 7.984 kB / 0.9069 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.2825, allocations: 4 kB / 0.9069 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002106/0.2827, allocations: 91.81 kB / 0.9069 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009098/0.2836, allocations: 436.7 kB / 0.9074 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002756/0.2839, allocations: 150.5 kB / 0.9075 GB, free: 57.42 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.284, allocations: 80.75 kB / 0.9076 GB, free: 57.34 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.2841, allocations: 4 kB / 0.9076 GB, free: 57.33 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002761/0.2843, allocations: 170.8 kB / 0.9077 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=20): time 2.274e-06/0.2844, allocations: 0 / 0.9077 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of matching and sorting (n=20): time 0.0006422/0.285, allocations: 327.8 kB / 0.9081 GB, free: 56.82 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.889e-05/0.2851, allocations: 85.11 kB / 0.9081 GB, free: 56.72 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.2852, allocations: 174.8 kB / 0.9083 GB, free: 56.54 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.2853, allocations: 49.81 kB / 0.9084 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.473e-05/0.2853, allocations: 108.6 kB / 0.9085 GB, free: 56.38 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.996e-05/0.2854, allocations: 59.28 kB / 0.9085 GB, free: 56.32 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.111e-05/0.2854, allocations: 4 kB / 0.9085 GB, free: 56.31 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.689e-05/0.2855, allocations: 334.8 kB / 0.9088 GB, free: 55.98 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.2856, allocations: 80.5 kB / 0.9089 GB, free: 55.9 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.2858, allocations: 185.9 kB / 0.9091 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003271/0.2861, allocations: 271.8 kB / 0.9094 GB, free: 55.36 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.2861, allocations: 0 / 0.9094 GB, free: 55.36 MB / 0.6042 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000455/0.2866, allocations: 308.9 kB / 0.9096 GB, free: 55.05 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.2866, allocations: 4.375 kB / 0.9097 GB, free: 55.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.2867, allocations: 8 kB / 0.9097 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.2867, allocations: 4 kB / 0.9097 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.2868, allocations: 43.91 kB / 0.9097 GB, free: 55 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.2869, allocations: 11.92 kB / 0.9097 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001173/0.287, allocations: 23.84 kB / 0.9097 GB, free: 54.96 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.287, allocations: 12 kB / 0.9098 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: 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001908/0.2872, allocations: 159.9 kB / 0.9099 GB, free: 54.78 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.01e-05/0.2872, allocations: 15.81 kB / 0.9099 GB, free: 54.77 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.912e-05/0.2873, allocations: 25.86 kB / 0.9099 GB, free: 54.74 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.2873, allocations: 0 / 0.9099 GB, free: 54.74 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.2873, allocations: 0 / 0.9099 GB, free: 54.74 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.2873, allocations: 4 kB / 0.9099 GB, free: 54.74 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008858/0.2882, allocations: 0.5997 MB / 0.9105 GB, free: 54.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2882, allocations: 0 / 0.9105 GB, free: 54.08 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.2884, allocations: 19.98 kB / 0.9106 GB, free: 54.06 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.2884, allocations: 0 / 0.9106 GB, free: 54.06 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.2884, allocations: 7.984 kB / 0.9106 GB, free: 54.05 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.2884, allocations: 3.938 kB / 0.9106 GB, free: 54.05 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2884, allocations: 7.938 kB / 0.9106 GB, free: 54.04 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006971/0.2891, allocations: 457.7 kB / 0.911 GB, free: 53.58 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.311e-05/0.2892, allocations: 92.95 kB / 0.9111 GB, free: 53.47 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.53e-05/0.2892, allocations: 11.92 kB / 0.9111 GB, free: 53.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/0.2894, allocations: 19.98 kB / 0.9111 GB, free: 53.44 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.716e-05/0.2895, allocations: 7.984 kB / 0.9111 GB, free: 53.43 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-05/0.2895, allocations: 15.98 kB / 0.9111 GB, free: 53.41 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 7.891e-05/0.2896, allocations: 119.2 kB / 0.9113 GB, free: 53.3 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2896, allocations: 0 / 0.9113 GB, free: 53.3 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005085/0.2901, allocations: 116 kB / 0.9114 GB, free: 53.18 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.001094/0.2912, allocations: 426.7 kB / 0.9118 GB, free: 52.87 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004805/0.2917, allocations: 203.8 kB / 0.912 GB, free: 52.67 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2917, allocations: 0 / 0.912 GB, free: 52.67 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001941/0.2919, allocations: 88.89 kB / 0.9121 GB, free: 52.59 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003838/0.2923, allocations: 35.91 kB / 0.9121 GB, free: 52.55 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008554/0.2932, allocations: 482.8 kB / 0.9126 GB, free: 52.05 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001975/0.2934, allocations: 0.7242 MB / 0.9133 GB, free: 51.3 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.552e-05/0.2935, allocations: 19.44 kB / 0.9133 GB, free: 51.28 MB / 0.6042 GB Notification: Performance of SimCode: time 6.01e-07/0.2935, allocations: 8 kB / 0.9133 GB, free: 51.27 MB / 0.6042 GB Notification: Performance of Templates: time 0.007025/0.3005, allocations: 3.881 MB / 0.9171 GB, free: 47.4 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