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.UniformNoise.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.UniformNoise,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise2_y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoise") Notification: Performance of loadModel(Modelica): time 2.175/2.175, allocations: 194.8 MB / 212.3 MB, free: 3.02 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003588/0.000359, allocations: 12 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09914/0.09953, allocations: 44.5 MB / 309 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4097/0.5093, allocations: 71.97 MB / 380.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000308/0.5096, allocations: 78.62 kB / 381 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01838/0.528, allocations: 4.158 MB / 385.2 MB, free: 14.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.205e-06/0.5281, allocations: 1.375 kB / 385.2 MB, free: 14.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.5281, allocations: 5.375 kB / 385.2 MB, free: 14.33 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0008546/0.529, allocations: 455.4 kB / 385.6 MB, free: 13.92 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.5291, allocations: 9.625 kB / 385.6 MB, free: 13.92 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000438/0.5295, allocations: 41.38 kB / 385.7 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001737/0.5297, allocations: 192.4 kB / 385.9 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.342e-05/0.5297, allocations: 6.75 kB / 385.9 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.26e-05/0.5298, allocations: 8.812 kB / 385.9 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003401/0.5301, allocations: 121.1 kB / 386 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.5302, allocations: 0 / 386 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.5302, allocations: 1.375 kB / 386 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.5302, allocations: 1.375 kB / 386 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002944/0.5305, allocations: 71.27 kB / 386.1 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008807/0.5314, allocations: 397.6 kB / 386.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005217/0.532, allocations: 138.4 kB / 386.6 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.532, allocations: 0 / 386.6 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003738/0.5324, allocations: 143.2 kB / 386.7 MB, free: 13.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=16): time 2.044e-06/0.5324, allocations: 0 / 386.7 MB, free: 13.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=16): time 0.0009747/0.5334, allocations: 416.2 kB / 387.1 MB, free: 13 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.987e-05/0.5335, allocations: 91.52 kB / 387.2 MB, free: 12.91 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002213/0.5337, allocations: 180.9 kB / 387.4 MB, free: 12.8 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.413e-05/0.5338, allocations: 44.7 kB / 387.4 MB, free: 12.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.413e-05/0.5339, allocations: 176.2 kB / 387.6 MB, free: 12.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.524e-05/0.534, allocations: 37.05 kB / 387.7 MB, free: 12.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.074e-05/0.534, allocations: 8.203 kB / 387.7 MB, free: 12.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.221e-05/0.5341, allocations: 324.5 kB / 388 MB, free: 12.28 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003274/0.5344, allocations: 95.62 kB / 388.1 MB, free: 12.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003505/0.5348, allocations: 125.6 kB / 388.2 MB, free: 12.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003937/0.5352, allocations: 103.4 kB / 388.3 MB, free: 12.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.5352, allocations: 0 / 388.3 MB, free: 12.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000872/0.5361, allocations: 287.6 kB / 388.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.5361, allocations: 5.25 kB / 388.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.622e-05/0.5362, allocations: 2.375 kB / 388.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.377e-05/0.5362, allocations: 2.688 kB / 388.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002333/0.5364, allocations: 31.16 kB / 388.6 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.5365, allocations: 2.891 kB / 388.6 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001644/0.5366, allocations: 25.8 kB / 388.6 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.513e-05/0.5367, allocations: 12.78 kB / 388.7 MB, free: 12.16 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,$PRE.uniformNoise2.state[1],uniformNoise2.state[1],$PRE.uniformNoise2.state[2],uniformNoise2.state[2],$PRE.uniformNoise2.state[3],uniformNoise2.state[3],$PRE.uniformNoise2.state[4],uniformNoise2.state[4],$PRE.uniformNoise2.r,uniformNoise2.r,$PRE.uniformNoise2.r_raw,uniformNoise2.r_raw,$PRE.uniformNoise1.state[1],uniformNoise1.state[1],$PRE.uniformNoise1.state[2],uniformNoise1.state[2],$PRE.uniformNoise1.state[3],uniformNoise1.state[3],$PRE.uniformNoise1.state[4],uniformNoise1.state[4],$PRE.uniformNoise1.r,uniformNoise1.r,$PRE.uniformNoise1.r_raw,uniformNoise1.r_raw,globalSeed.id_impure,uniformNoise1.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise2.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 24 * 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.0002065/0.5369, allocations: 148.4 kB / 388.8 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.434e-05/0.537, allocations: 15.3 kB / 388.8 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.098e-05/0.537, allocations: 11.42 kB / 388.8 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.537, allocations: 1.312 kB / 388.8 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.5371, allocations: 1.312 kB / 388.8 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.5371, allocations: 5.453 kB / 388.8 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002396/0.5373, allocations: 217 kB / 389 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.5373, allocations: 1.312 kB / 389 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.608e-05/0.5374, allocations: 13.12 kB / 389.1 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.5375, allocations: 2.125 kB / 389.1 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.995e-05/0.5375, allocations: 3.688 kB / 389.1 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.5375, allocations: 1.406 kB / 389.1 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.5375, allocations: 5.062 kB / 389.1 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006026/0.5381, allocations: 236.6 kB / 389.3 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.684e-05/0.5382, allocations: 89.77 kB / 389.4 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.899e-05/0.5382, allocations: 13.61 kB / 389.4 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.988e-05/0.5384, allocations: 10.06 kB / 389.4 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.969e-05/0.5385, allocations: 13.98 kB / 389.4 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.546e-05/0.5385, allocations: 7.562 kB / 389.4 MB, free: 11.62 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001362/0.5386, allocations: 122.5 kB / 389.6 MB, free: 11.55 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.774e-06/0.5386, allocations: 0 / 389.6 MB, free: 11.55 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005546/0.5392, allocations: 69.06 kB / 389.6 MB, free: 11.54 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw,$whenCondition1,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw) * Number of discrete states: 8 (uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * 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.0006851/0.5399, allocations: 244.3 kB / 389.9 MB, free: 11.39 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007296/0.5407, allocations: 253.3 kB / 390.1 MB, free: 11.32 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5407, allocations: 0 / 390.1 MB, free: 11.32 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002347/0.5409, allocations: 68.28 kB / 390.2 MB, free: 11.31 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001976/0.5411, allocations: 9.703 kB / 390.2 MB, free: 11.31 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006617/0.5418, allocations: 297.3 kB / 390.5 MB, free: 11.09 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001934/0.542, allocations: 0.7263 MB / 391.2 MB, free: 10.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.457e-05/0.5421, allocations: 14.59 kB / 391.2 MB, free: 10.38 MB / 314.7 MB Notification: Performance of SimCode: time 8.92e-07/0.5421, allocations: 0 / 391.2 MB, free: 10.38 MB / 314.7 MB Notification: Performance of Templates: time 0.007202/0.5493, allocations: 2.703 MB / 393.9 MB, free: 10.08 MB / 314.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoise.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.UniformNoiseCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp:29:\n./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoiseInitialize.cpp:244:3: error: use of undeclared identifier \'$PRE_P_uniformNoise2_P_state_\'; did you mean \'_uniformNoise2_P_state_\'?\n $PRE_P_uniformNoise2_P_state_.assign(tmp41);\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n _uniformNoise2_P_state_\n./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoise.h:198:33: note: \'_uniformNoise2_P_state_\' declared here\n StatArrayDim1 _uniformNoise2_P_state_;\n ^\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp:29:\n./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoiseInitialize.cpp:370:3: error: use of undeclared identifier \'$PRE_P_uniformNoise1_P_state_\'; did you mean \'_uniformNoise1_P_state_\'?\n $PRE_P_uniformNoise1_P_state_.assign(tmp45);\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n _uniformNoise1_P_state_\n./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoise.h:197:33: note: \'_uniformNoise1_P_state_\' declared here\n StatArrayDim1 _uniformNoise1_P_state_;\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.o] Error 1\n'