Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.Distributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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.3_cpp_Modelica.Blocks.Examples.NoiseExamples.Distributions") translateModel(Modelica.Blocks.Examples.NoiseExamples.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.Distributions") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002343/0.002343, allocations: 174 kB / 8.149 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.819/1.819, allocations: 205.2 MB / 213.8 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00122/0.00122, allocations: 92.84 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.889e-06/9.979e-06, allocations: 0 / 314.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2323, allocations: 47.56 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1198/0.3522, allocations: 77.43 MB / 439.3 MB, free: 8.652 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.3525, allocations: 71.95 kB / 439.3 MB, free: 8.582 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.03512/0.3877, allocations: 7.135 MB / 446.5 MB, free: 1.473 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.3877, allocations: 4 kB / 446.5 MB, free: 1.469 MB / 330.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.001099/0.3888, allocations: 0.4941 MB / 447 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.3889, allocations: 8.031 kB / 447 MB, free: 0.9219 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003333/0.3892, allocations: 35.8 kB / 447 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002381/0.3895, allocations: 203.8 kB / 447.2 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/0.3895, allocations: 4 kB / 447.2 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.959e-05/0.3896, allocations: 4 kB / 447.2 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001595/0.3898, allocations: 43.89 kB / 447.3 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.39, allocations: 109.2 kB / 447.4 MB, free: 484 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.39, allocations: 0 / 447.4 MB, free: 484 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.3901, allocations: 4 kB / 447.4 MB, free: 480 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.3901, allocations: 0 / 447.4 MB, free: 480 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008558/0.391, allocations: 0.5171 MB / 447.9 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003211/0.3913, allocations: 131.7 kB / 448 MB, free: 15.75 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.3914, allocations: 50.61 kB / 448.1 MB, free: 15.69 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.3915, allocations: 7.938 kB / 448.1 MB, free: 15.68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002426/0.3917, allocations: 125.9 kB / 448.2 MB, free: 15.54 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 2.625e-06/0.3917, allocations: 0.75 kB / 448.2 MB, free: 15.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.001013/0.3928, allocations: 175 kB / 448.4 MB, free: 15.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.454e-05/0.3929, allocations: 118.8 kB / 448.5 MB, free: 15.22 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002492/0.3931, allocations: 178.3 kB / 448.7 MB, free: 15.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.5e-05/0.3932, allocations: 37.7 kB / 448.7 MB, free: 15 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.427e-05/0.3933, allocations: 162.9 kB / 448.8 MB, free: 14.84 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.476e-05/0.3934, allocations: 39.55 kB / 448.9 MB, free: 14.8 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.075e-05/0.3934, allocations: 0 / 448.9 MB, free: 14.8 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3936, allocations: 333.8 kB / 449.2 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002331/0.3938, allocations: 75.98 kB / 449.3 MB, free: 14.39 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002927/0.3941, allocations: 125.6 kB / 449.4 MB, free: 14.26 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009528/0.3951, allocations: 127.9 kB / 449.5 MB, free: 14.13 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3951, allocations: 0 / 449.5 MB, free: 14.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001337/0.3965, allocations: 297.2 kB / 449.8 MB, free: 13.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.3965, allocations: 4 kB / 449.8 MB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.855e-05/0.3966, allocations: 4 kB / 449.8 MB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.3966, allocations: 0 / 449.8 MB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002677/0.3969, allocations: 35.92 kB / 449.9 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.3969, allocations: 4 kB / 449.9 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001456/0.3971, allocations: 23.92 kB / 449.9 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.373e-05/0.3971, allocations: 12.47 kB / 449.9 MB, free: 13.75 MB / 346.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 () * 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.0001401/0.3973, allocations: 53.72 kB / 450 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.317e-05/0.3973, allocations: 19.8 kB / 450 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.208e-05/0.3974, allocations: 9.406 kB / 450 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.3974, allocations: 7 kB / 450 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.3974, allocations: 4 kB / 450 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.3975, allocations: 0 / 450 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002706/0.3977, allocations: 194 kB / 450.2 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3978, allocations: 0 / 450.2 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.3979, allocations: 15.98 kB / 450.2 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.3979, allocations: 3.906 kB / 450.2 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.3979, allocations: 8 kB / 450.2 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.3979, allocations: 3.984 kB / 450.2 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.398, allocations: 0 / 450.2 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009114/0.3989, allocations: 233.9 kB / 450.4 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.589e-05/0.399, allocations: 96.84 kB / 450.5 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.009e-05/0.3991, allocations: 16 kB / 450.6 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.3992, allocations: 11.98 kB / 450.6 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.153e-05/0.3993, allocations: 11.89 kB / 450.6 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.596e-05/0.3994, allocations: 10.14 kB / 450.6 MB, free: 12.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001639/0.3995, allocations: 132.1 kB / 450.7 MB, free: 12.85 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008112/0.4004, allocations: 155.7 kB / 450.9 MB, free: 12.7 MB / 346.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]) * 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.001728/0.4021, allocations: 429.2 kB / 451.3 MB, free: 12.3 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00065/0.4028, allocations: 227.3 kB / 451.5 MB, free: 12.07 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.4028, allocations: 0 / 451.5 MB, free: 12.07 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001574/0.403, allocations: 64.05 kB / 451.6 MB, free: 12 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002203/0.4032, allocations: 8.188 kB / 451.6 MB, free: 11.99 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006672/0.4039, allocations: 214.5 kB / 451.8 MB, free: 11.75 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004061/0.4043, allocations: 0.7469 MB / 452.5 MB, free: 10.98 MB / 346.7 MB Notification: Performance of SimCode: time 9.22e-07/0.4043, allocations: 4.062 kB / 452.5 MB, free: 10.97 MB / 346.7 MB Notification: Performance of Templates: time 0.01142/0.4158, allocations: 4.276 MB / 456.8 MB, free: 6.727 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.Distributions.makefile make -j1 -f Modelica_3.2.3_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/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.cpp:29:\n./OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsInitialize.cpp:256:3: error: use of undeclared identifier \'$PRE_P_truncatedNormalNoise_P_state_\'; did you mean \'_truncatedNormalNoise_P_state_\'?\n $PRE_P_truncatedNormalNoise_P_state_=tmp82;\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n _truncatedNormalNoise_P_state_\n./OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.Distributions.h:251:34: note: \'_truncatedNormalNoise_P_state_\' declared here\n StatArrayDim1 _truncatedNormalNoise_P_state_;\n ^\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.cpp:29:\n./OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsInitialize.cpp:387:3: error: use of undeclared identifier \'$PRE_P_uniformNoise_P_state_\'; did you mean \'_uniformNoise_P_state_\'?\n $PRE_P_uniformNoise_P_state_=tmp87;\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\n _uniformNoise_P_state_\n./OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.Distributions.h:252:34: note: \'_uniformNoise_P_state_\' declared here\n StatArrayDim1 _uniformNoise_P_state_;\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.o] Error 1\n'