Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.062/2.062, allocations: 194.8 MB / 212.3 MB, free: 3.02 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003527/0.0003528, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1084, allocations: 44.5 MB / 309 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4725/0.581, allocations: 74.04 MB / 383 MB, free: 14.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000284/0.5813, allocations: 77 kB / 383.1 MB, free: 14.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03331/0.6146, allocations: 7.561 MB / 390.6 MB, free: 14 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.6147, allocations: 0 / 390.6 MB, free: 14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.6147, allocations: 3.875 kB / 390.6 MB, free: 14 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.001052/0.6158, allocations: 0.5258 MB / 391.2 MB, free: 13.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.6158, allocations: 7.625 kB / 391.2 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002927/0.6161, allocations: 31.7 kB / 391.2 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001792/0.6163, allocations: 203 kB / 391.4 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.84e-05/0.6164, allocations: 3.844 kB / 391.4 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.886e-05/0.6164, allocations: 7.75 kB / 391.4 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003527/0.6168, allocations: 133.4 kB / 391.5 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.6168, allocations: 7.891 kB / 391.6 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.802e-05/0.6168, allocations: 0 / 391.6 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.6169, allocations: 0 / 391.6 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003263/0.6172, allocations: 72.02 kB / 391.6 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009083/0.6181, allocations: 0.5695 MB / 392.2 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000536/0.6187, allocations: 168.1 kB / 392.4 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.6187, allocations: 2.625 kB / 392.4 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003685/0.6191, allocations: 165 kB / 392.5 MB, free: 12.63 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 2.004e-06/0.6191, allocations: 0 / 392.5 MB, free: 12.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.0009747/0.6201, allocations: 422.4 kB / 392.9 MB, free: 12.4 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.739e-05/0.6202, allocations: 118 kB / 393.1 MB, free: 12.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.6204, allocations: 201 kB / 393.2 MB, free: 12.17 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.224e-05/0.6205, allocations: 43.27 kB / 393.3 MB, free: 12.14 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.963e-05/0.6206, allocations: 179.9 kB / 393.5 MB, free: 11.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.162e-05/0.6206, allocations: 36.66 kB / 393.5 MB, free: 11.96 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.088e-05/0.6207, allocations: 7.188 kB / 393.5 MB, free: 11.96 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.828e-05/0.6207, allocations: 321.7 kB / 393.8 MB, free: 11.65 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003179/0.6211, allocations: 97.7 kB / 393.9 MB, free: 11.64 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003376/0.6214, allocations: 130.3 kB / 394 MB, free: 11.61 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003418/0.6218, allocations: 110.8 kB / 394.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.6218, allocations: 0 / 394.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008153/0.6226, allocations: 287.2 kB / 394.4 MB, free: 11.56 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.6226, allocations: 5.75 kB / 394.4 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.466e-05/0.6227, allocations: 7.969 kB / 394.4 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.885e-05/0.6227, allocations: 3.938 kB / 394.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000241/0.623, allocations: 30.95 kB / 394.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.623, allocations: 6.531 kB / 394.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005321/0.6235, allocations: 29.38 kB / 394.5 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.6237, allocations: 12.84 kB / 394.5 MB, free: 11.54 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.0004041/0.6241, allocations: 154.3 kB / 394.7 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.6242, allocations: 15.62 kB / 394.7 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.6244, allocations: 19.47 kB / 394.7 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.6244, allocations: 96 / 394.7 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/0.6245, allocations: 3.984 kB / 394.7 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.6245, allocations: 3.875 kB / 394.7 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000352/0.6248, allocations: 218.4 kB / 394.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.6249, allocations: 0 / 394.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001417/0.625, allocations: 18.56 kB / 395 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.625, allocations: 4 kB / 395 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/0.6251, allocations: 11.34 kB / 395 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.6251, allocations: 0 / 395 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.6251, allocations: 3.906 kB / 395 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.6262, allocations: 248.8 kB / 395.2 MB, free: 11.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.968e-05/0.6263, allocations: 96.67 kB / 395.3 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.6264, allocations: 13.25 kB / 395.3 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001647/0.6266, allocations: 9.938 kB / 395.3 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.6267, allocations: 14.52 kB / 395.3 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.841e-05/0.6268, allocations: 3.969 kB / 395.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001532/0.6269, allocations: 146.3 kB / 395.5 MB, free: 10.89 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-07/0.6269, allocations: 0 / 395.5 MB, free: 10.89 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008251/0.6278, allocations: 161.4 kB / 395.7 MB, free: 10.85 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.00133/0.6291, allocations: 411.1 kB / 396.1 MB, free: 10.64 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007398/0.6299, allocations: 261 kB / 396.3 MB, free: 10.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.6299, allocations: 0 / 396.3 MB, free: 10.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002494/0.6301, allocations: 66.61 kB / 396.4 MB, free: 10.57 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001924/0.6304, allocations: 16.58 kB / 396.4 MB, free: 10.56 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006441/0.631, allocations: 342.8 kB / 396.7 MB, free: 10.32 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001748/0.6312, allocations: 0.7194 MB / 397.4 MB, free: 9.621 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.125e-05/0.6313, allocations: 18.72 kB / 397.5 MB, free: 9.613 MB / 314.7 MB Notification: Performance of SimCode: time 8.52e-07/0.6313, allocations: 0 / 397.5 MB, free: 9.613 MB / 314.7 MB Notification: Performance of Templates: time 0.009819/0.6411, allocations: 4.359 MB / 401.8 MB, free: 9.113 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=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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'