Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008745/0.0008743, allocations: 92.08 kB / 16.02 MB, free: 80 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.00105/0.00105, allocations: 179.2 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.925/1.925, allocations: 205.4 MB / 223.1 MB, free: 5.758 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.866/1.866, allocations: 292.7 MB / 0.5509 GB, free: 14.45 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005612/0.0005612, allocations: 18.03 kB / 0.675 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3073, allocations: 116.3 MB / 0.7885 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002207/0.3096, allocations: 1.431 MB / 0.7899 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002806/0.3124, allocations: 1.776 MB / 0.7917 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.255e-05/0.3125, allocations: 0 / 0.7917 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001659/0.3127, allocations: 19.86 kB / 0.7917 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001291/0.3128, allocations: 27.78 kB / 0.7917 GB, free: 8.281 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.001122/0.3139, allocations: 263.4 kB / 0.792 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002338/0.3142, allocations: 175.5 kB / 0.7921 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.174e-05/0.3143, allocations: 25.78 kB / 0.7922 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001294/0.3144, allocations: 71.69 kB / 0.7922 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.147e-05/0.3145, allocations: 71.61 kB / 0.7923 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.629e-05/0.3145, allocations: 4 kB / 0.7923 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000363/0.3149, allocations: 247.6 kB / 0.7925 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.668e-05/0.315, allocations: 47.88 kB / 0.7926 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.784e-05/0.3151, allocations: 85.38 kB / 0.7927 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002968/0.3154, allocations: 251.5 kB / 0.7929 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.3154, allocations: 3.938 kB / 0.7929 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.062e-06/0.3154, allocations: 0 / 0.7929 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.206e-06/0.3154, allocations: 0 / 0.7929 GB, free: 7.055 MB / 0.6075 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.0006923/0.3161, allocations: 498.9 kB / 0.7934 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.787e-05/0.3161, allocations: 12.03 kB / 0.7934 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.862e-05/0.3162, allocations: 16.75 kB / 0.7934 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002222/0.3164, allocations: 227.5 kB / 0.7936 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.3164, allocations: 8.375 kB / 0.7936 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.943e-05/0.3165, allocations: 20.03 kB / 0.7937 GB, free: 6.207 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002833/0.3168, allocations: 147.3 kB / 0.7938 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.04e-06/0.3168, allocations: 0 / 0.7938 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.3168, allocations: 7.969 kB / 0.7938 GB, free: 6.043 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.3168, allocations: 4 kB / 0.7938 GB, free: 6.039 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002088/0.317, allocations: 79.95 kB / 0.7939 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007549/0.3178, allocations: 412.5 kB / 0.7943 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003115/0.3181, allocations: 158.6 kB / 0.7944 GB, free: 5.344 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001415/0.3183, allocations: 68.81 kB / 0.7945 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.3183, allocations: 4 kB / 0.7945 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002827/0.3186, allocations: 157 kB / 0.7947 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.292e-06/0.3186, allocations: 0 / 0.7947 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18): time 0.0006216/0.3192, allocations: 300.3 kB / 0.7949 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.525e-05/0.3193, allocations: 89.11 kB / 0.795 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001638/0.3195, allocations: 171.2 kB / 0.7952 GB, free: 4.516 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.3195, allocations: 33.7 kB / 0.7952 GB, free: 4.477 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.051e-05/0.3196, allocations: 112.5 kB / 0.7953 GB, free: 4.359 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.286e-05/0.3197, allocations: 47.44 kB / 0.7954 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.256e-05/0.3197, allocations: 33.7 kB / 0.7954 GB, free: 4.273 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001474/0.3199, allocations: 334.8 kB / 0.7957 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.32, allocations: 67.95 kB / 0.7958 GB, free: 3.871 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002252/0.3203, allocations: 172.8 kB / 0.796 GB, free: 3.656 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003765/0.3206, allocations: 243.8 kB / 0.7962 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.3207, allocations: 3.984 kB / 0.7962 GB, free: 3.371 MB / 0.6075 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000475/0.3211, allocations: 273.1 kB / 0.7964 GB, free: 3.098 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.3212, allocations: 8 kB / 0.7965 GB, free: 3.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.3212, allocations: 8 kB / 0.7965 GB, free: 3.082 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.3212, allocations: 4 kB / 0.7965 GB, free: 3.078 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.3213, allocations: 39.91 kB / 0.7965 GB, free: 3.039 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.3214, allocations: 8.25 kB / 0.7965 GB, free: 3.031 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.3215, allocations: 27.78 kB / 0.7965 GB, free: 3.004 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/0.3215, allocations: 16.08 kB / 0.7966 GB, free: 2.988 MB / 0.6075 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,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[1],$PRE.ran.uRWri[1],kalFil.sampleTrigger,$whenCondition2,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 (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.0001614/0.3217, allocations: 143.5 kB / 0.7967 GB, free: 2.84 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.126e-05/0.3217, allocations: 19.8 kB / 0.7967 GB, free: 2.82 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.65e-05/0.3218, allocations: 17.88 kB / 0.7967 GB, free: 2.801 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3218, allocations: 8 kB / 0.7967 GB, free: 2.793 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3218, allocations: 0 / 0.7967 GB, free: 2.793 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.3218, allocations: 11.86 kB / 0.7967 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008832/0.3227, allocations: 0.5529 MB / 0.7973 GB, free: 2.172 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.3227, allocations: 3.984 kB / 0.7973 GB, free: 2.168 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.861e-05/0.3228, allocations: 16.05 kB / 0.7973 GB, free: 2.152 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.706e-06/0.3228, allocations: 15.86 kB / 0.7973 GB, free: 2.137 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.935e-05/0.3228, allocations: 7.984 kB / 0.7973 GB, free: 2.129 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.3229, allocations: 3.984 kB / 0.7973 GB, free: 2.125 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3229, allocations: 0 / 0.7973 GB, free: 2.125 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006929/0.3236, allocations: 426.7 kB / 0.7977 GB, free: 1.691 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.211e-05/0.3236, allocations: 96.89 kB / 0.7978 GB, free: 1.578 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.651e-05/0.3237, allocations: 15.92 kB / 0.7978 GB, free: 1.562 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.3238, allocations: 16.05 kB / 0.7979 GB, free: 1.547 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.068e-05/0.3239, allocations: 11.98 kB / 0.7979 GB, free: 1.535 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.3239, allocations: 8 kB / 0.7979 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001084/0.324, allocations: 120 kB / 0.798 GB, free: 1.41 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.324, allocations: 0 / 0.798 GB, free: 1.41 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0004835/0.3245, allocations: 107.9 kB / 0.7981 GB, free: 1.305 MB / 0.6075 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.0009069/0.3254, allocations: 432.8 kB / 0.7985 GB, free: 0.9883 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004004/0.3258, allocations: 183.3 kB / 0.7987 GB, free: 0.8125 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.3259, allocations: 8.062 kB / 0.7987 GB, free: 0.8047 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001686/0.326, allocations: 79.89 kB / 0.7988 GB, free: 0.7266 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003339/0.3264, allocations: 27.98 kB / 0.7988 GB, free: 0.6992 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008398/0.3272, allocations: 457 kB / 0.7992 GB, free: 224 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.3276, allocations: 0.7205 MB / 0.7999 GB, free: 15.47 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.305e-05/0.3277, allocations: 23.42 kB / 0.8 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of SimCode: time 2e-07/0.3277, allocations: 0 / 0.8 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of Templates: time 0.006458/0.3341, allocations: 3.734 MB / 0.8036 GB, free: 11.72 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.makefile make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.makefile clang++ -std=c++14 NOTFOUND -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 8.1.4-maint.8.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/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterCalcHelperMain.o OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilterCalcHelperMain.o] Error 1