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.UniformNoise.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.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 1.82/1.82, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007474/0.0007474, allocations: 8 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08533/0.08613, allocations: 44.51 MB / 308.4 MB, free: 1 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3455/0.4317, allocations: 71.97 MB / 380.4 MB, free: 18.83 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002144/0.4319, allocations: 76.73 kB / 380.5 MB, free: 18.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01585/0.4478, allocations: 4.164 MB / 384.7 MB, free: 18.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.4478, allocations: 0 / 384.7 MB, free: 18.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.561e-06/0.4479, allocations: 2.75 kB / 384.7 MB, free: 18.27 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.0006111/0.4485, allocations: 453.9 kB / 385.1 MB, free: 17.86 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.4485, allocations: 9.406 kB / 385.1 MB, free: 17.86 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003746/0.4489, allocations: 53.55 kB / 385.2 MB, free: 17.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.4491, allocations: 188.4 kB / 385.3 MB, free: 17.63 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.992e-05/0.4491, allocations: 12.31 kB / 385.4 MB, free: 17.63 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.304e-05/0.4492, allocations: 4.656 kB / 385.4 MB, free: 17.63 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002634/0.4495, allocations: 116.8 kB / 385.5 MB, free: 17.58 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.4495, allocations: 3.984 kB / 385.5 MB, free: 17.58 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.4495, allocations: 4.781 kB / 385.5 MB, free: 17.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.561e-06/0.4495, allocations: 1.312 kB / 385.5 MB, free: 17.57 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002586/0.4498, allocations: 66.77 kB / 385.5 MB, free: 17.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006455/0.4505, allocations: 392.7 kB / 385.9 MB, free: 17.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003949/0.4509, allocations: 145.8 kB / 386.1 MB, free: 17.23 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.661e-06/0.4509, allocations: 1.438 kB / 386.1 MB, free: 17.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002859/0.4512, allocations: 139.8 kB / 386.2 MB, free: 17.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=16): time 2.642e-06/0.4512, allocations: 0 / 386.2 MB, free: 17.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007532/0.452, allocations: 405.9 kB / 386.6 MB, free: 16.94 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/0.452, allocations: 100.2 kB / 386.7 MB, free: 16.84 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.4522, allocations: 159.9 kB / 386.9 MB, free: 16.74 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.277e-05/0.4523, allocations: 50.34 kB / 386.9 MB, free: 16.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.928e-05/0.4524, allocations: 168.2 kB / 387.1 MB, free: 16.56 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.703e-05/0.4524, allocations: 36.91 kB / 387.1 MB, free: 16.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.78e-05/0.4525, allocations: 10.98 kB / 387.1 MB, free: 16.54 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.102e-05/0.4525, allocations: 330.9 kB / 387.4 MB, free: 16.22 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002559/0.4528, allocations: 91.94 kB / 387.5 MB, free: 16.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002737/0.4531, allocations: 121.9 kB / 387.7 MB, free: 16.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002677/0.4534, allocations: 105.8 kB / 387.8 MB, free: 16.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.106e-06/0.4534, allocations: 0 / 387.8 MB, free: 16.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006767/0.4541, allocations: 284 kB / 388 MB, free: 16.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.4541, allocations: 5.156 kB / 388 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.984e-05/0.4541, allocations: 1.719 kB / 388 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.4542, allocations: 1.656 kB / 388 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/0.4544, allocations: 36.84 kB / 388.1 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.4544, allocations: 5.781 kB / 388.1 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.4545, allocations: 15.42 kB / 388.1 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.185e-05/0.4546, allocations: 12.28 kB / 388.1 MB, free: 16.11 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.0001565/0.4547, allocations: 149.6 kB / 388.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.628e-05/0.4548, allocations: 20.58 kB / 388.3 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.531e-05/0.4548, allocations: 11 kB / 388.3 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.4548, allocations: 1.75 kB / 388.3 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.108e-06/0.4549, allocations: 1.625 kB / 388.3 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.669e-06/0.4549, allocations: 7.031 kB / 388.3 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000196/0.4551, allocations: 214.2 kB / 388.5 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.474e-06/0.4551, allocations: 2.344 kB / 388.5 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.68e-05/0.4552, allocations: 14.14 kB / 388.5 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.099e-06/0.4552, allocations: 1.719 kB / 388.5 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.4552, allocations: 1.75 kB / 388.5 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.695e-06/0.4552, allocations: 5.562 kB / 388.5 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.982e-06/0.4552, allocations: 0 / 388.5 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004644/0.4557, allocations: 250.9 kB / 388.8 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.09e-05/0.4558, allocations: 93.02 kB / 388.9 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.652e-05/0.4558, allocations: 10.55 kB / 388.9 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.897e-05/0.4559, allocations: 7.469 kB / 388.9 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.115e-05/0.456, allocations: 14.05 kB / 388.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.422e-05/0.456, allocations: 12.61 kB / 388.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001053/0.4562, allocations: 119.2 kB / 389 MB, free: 15.47 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.47e-07/0.4562, allocations: 0 / 389 MB, free: 15.47 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004555/0.4566, allocations: 69.47 kB / 389.1 MB, free: 15.45 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.000596/0.4572, allocations: 246.4 kB / 389.3 MB, free: 15.31 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005695/0.4578, allocations: 244.7 kB / 389.6 MB, free: 15.25 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.052e-06/0.4579, allocations: 1.719 kB / 389.6 MB, free: 15.25 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001915/0.4581, allocations: 75.25 kB / 389.7 MB, free: 15.24 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001617/0.4582, allocations: 11.61 kB / 389.7 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005431/0.4588, allocations: 297.2 kB / 390 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001703/0.459, allocations: 0.7156 MB / 390.7 MB, free: 14.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.788e-05/0.4591, allocations: 16.28 kB / 390.7 MB, free: 14.31 MB / 314.7 MB Notification: Performance of SimCode: time 1.517e-06/0.4591, allocations: 0 / 390.7 MB, free: 14.31 MB / 314.7 MB Notification: Performance of Templates: time 0.005676/0.4648, allocations: 2.695 MB / 393.4 MB, free: 14.02 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=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.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'