Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.Distributions.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Blocks.Examples.NoiseExamples.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.Distributions") Notification: Performance of loadModel(Modelica): time 1.745/1.745, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003534/0.0003534, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07936/0.07974, allocations: 44.51 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4823/0.5621, allocations: 74.06 MB / 382.5 MB, free: 18.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.5624, allocations: 72.66 kB / 382.6 MB, free: 18.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03197/0.5944, allocations: 7.551 MB / 390.1 MB, free: 17.97 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.025e-06/0.5944, allocations: 0 / 390.1 MB, free: 17.97 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.545e-06/0.5944, allocations: 3.875 kB / 390.1 MB, free: 17.97 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.00107/0.5955, allocations: 0.5212 MB / 390.6 MB, free: 17.51 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.5956, allocations: 7.781 kB / 390.7 MB, free: 17.51 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002726/0.5959, allocations: 34.94 kB / 390.7 MB, free: 17.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001542/0.596, allocations: 200.5 kB / 390.9 MB, free: 17.29 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.711e-05/0.5961, allocations: 3.875 kB / 390.9 MB, free: 17.29 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.047e-05/0.5961, allocations: 11.81 kB / 390.9 MB, free: 17.28 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.5964, allocations: 129 kB / 391 MB, free: 17.22 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.5965, allocations: 4 kB / 391 MB, free: 17.22 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.5965, allocations: 0 / 391 MB, free: 17.22 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-06/0.5965, allocations: 3.875 kB / 391 MB, free: 17.22 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002756/0.5968, allocations: 74.41 kB / 391.1 MB, free: 17.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000797/0.5976, allocations: 0.565 MB / 391.7 MB, free: 16.77 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004115/0.598, allocations: 169.1 kB / 391.8 MB, free: 16.69 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.5981, allocations: 4 kB / 391.8 MB, free: 16.69 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003368/0.5984, allocations: 152.2 kB / 392 MB, free: 16.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 3.165e-06/0.5985, allocations: 3.938 kB / 392 MB, free: 16.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.0008253/0.5993, allocations: 436 kB / 392.4 MB, free: 16.37 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.873e-05/0.5994, allocations: 117.5 kB / 392.5 MB, free: 16.24 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.5996, allocations: 179.2 kB / 392.7 MB, free: 16.14 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.086e-05/0.5996, allocations: 49.59 kB / 392.8 MB, free: 16.11 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.363e-05/0.5997, allocations: 175.2 kB / 392.9 MB, free: 15.96 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.675e-05/0.5998, allocations: 36.5 kB / 393 MB, free: 15.94 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.782e-05/0.5998, allocations: 3.688 kB / 393 MB, free: 15.94 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.912e-05/0.5999, allocations: 323.6 kB / 393.3 MB, free: 15.63 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/0.6001, allocations: 91.84 kB / 393.4 MB, free: 15.63 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002779/0.6004, allocations: 135.6 kB / 393.5 MB, free: 15.59 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002781/0.6007, allocations: 113.9 kB / 393.6 MB, free: 15.59 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.6008, allocations: 4 kB / 393.6 MB, free: 15.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006726/0.6014, allocations: 282.6 kB / 393.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.6015, allocations: 3.969 kB / 393.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.149e-05/0.6015, allocations: 6.719 kB / 393.9 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.6015, allocations: 3.875 kB / 393.9 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001902/0.6017, allocations: 36.7 kB / 393.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.151e-06/0.6018, allocations: 0 / 393.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001392/0.6019, allocations: 26.91 kB / 394 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.436e-05/0.602, allocations: 18.03 kB / 394 MB, free: 15.51 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,$PRE.truncatedNormalNoise.state[1],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.r,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r_raw,$PRE.uniformNoise.state[1],uniformNoise.state[1],$PRE.uniformNoise.state[2],uniformNoise.state[2],$PRE.uniformNoise.state[3],uniformNoise.state[3],$PRE.uniformNoise.state[4],uniformNoise.state[4],$PRE.uniformNoise.r,uniformNoise.r,$PRE.uniformNoise.r_raw,uniformNoise.r_raw,globalSeed.id_impure,uniformNoise.localSeed,uniformNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,truncatedNormalNoise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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.0001663/0.6021, allocations: 154.6 kB / 394.1 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.113e-05/0.6022, allocations: 14.67 kB / 394.2 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.838e-05/0.6022, allocations: 16.91 kB / 394.2 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.6023, allocations: 3.875 kB / 394.2 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.6023, allocations: 0 / 394.2 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.822e-06/0.6023, allocations: 3.047 kB / 394.2 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002097/0.6025, allocations: 227.8 kB / 394.4 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.072e-06/0.6025, allocations: 0 / 394.4 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.894e-05/0.6026, allocations: 14.16 kB / 394.4 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.906e-06/0.6026, allocations: 0 / 394.4 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.6027, allocations: 7.812 kB / 394.4 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.25e-06/0.6027, allocations: 4 kB / 394.4 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.6027, allocations: 0 / 394.4 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005703/0.6033, allocations: 276.2 kB / 394.7 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.02e-05/0.6034, allocations: 92.39 kB / 394.8 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.546e-05/0.6034, allocations: 14.77 kB / 394.8 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.6035, allocations: 9.812 kB / 394.8 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.781e-05/0.6036, allocations: 16.75 kB / 394.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.531e-05/0.6037, allocations: 6.703 kB / 394.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001385/0.6038, allocations: 148 kB / 395 MB, free: 14.83 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.5e-07/0.6038, allocations: 0 / 395 MB, free: 14.83 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008286/0.6047, allocations: 158.9 kB / 395.1 MB, free: 14.79 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,$whenCondition1,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,n) * Number of discrete states: 8 (truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001375/0.6061, allocations: 420.6 kB / 395.5 MB, free: 14.58 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006305/0.6067, allocations: 254.1 kB / 395.8 MB, free: 14.51 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.001e-06/0.6067, allocations: 0 / 395.8 MB, free: 14.51 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002185/0.607, allocations: 72.25 kB / 395.9 MB, free: 14.51 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001879/0.6072, allocations: 10.39 kB / 395.9 MB, free: 14.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00057/0.6078, allocations: 343.9 kB / 396.2 MB, free: 14.26 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001657/0.6079, allocations: 0.7231 MB / 396.9 MB, free: 13.56 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.432e-05/0.608, allocations: 15.12 kB / 396.9 MB, free: 13.55 MB / 314.7 MB Notification: Performance of SimCode: time 1.519e-06/0.608, allocations: 0 / 396.9 MB, free: 13.55 MB / 314.7 MB Notification: Performance of Templates: time 0.00794/0.616, allocations: 4.348 MB / 401.3 MB, free: 13.06 MB / 314.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.Distributions.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.cpp:29:\n./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsInitialize.cpp:245:3: error: use of undeclared identifier \'$PRE_P_truncatedNormalNoise_P_state_\'; did you mean \'_truncatedNormalNoise_P_state_\'?\n $PRE_P_truncatedNormalNoise_P_state_.assign(tmp82);\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n _truncatedNormalNoise_P_state_\n./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.Distributions.h:198:33: note: \'_truncatedNormalNoise_P_state_\' declared here\n StatArrayDim1 _truncatedNormalNoise_P_state_;\n ^\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.cpp:29:\n./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsInitialize.cpp:373:3: error: use of undeclared identifier \'$PRE_P_uniformNoise_P_state_\'; did you mean \'_uniformNoise_P_state_\'?\n $PRE_P_uniformNoise_P_state_.assign(tmp87);\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\n _uniformNoise_P_state_\n./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.Distributions.h:199:33: note: \'_uniformNoise_P_state_\' declared here\n StatArrayDim1 _uniformNoise_P_state_;\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.o] Error 1\n'