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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002163/0.002163, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.097/2.097, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 93 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.273e-05/2.273e-05, allocations: 4 kB / 314.8 MB, free: 9.172 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3677/0.3677, allocations: 47.56 MB / 362.3 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1268/0.4946, allocations: 77.49 MB / 439.8 MB, free: 8.832 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002673/0.4949, allocations: 71.97 kB / 439.9 MB, free: 8.762 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03582/0.5308, allocations: 7.463 MB / 447.4 MB, free: 1.328 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5308, allocations: 0 / 447.4 MB, free: 1.328 MB / 331.1 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.5309, allocations: 0.6562 kB / 447.4 MB, free: 1.328 MB / 331.1 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.0011/0.532, allocations: 0.5088 MB / 447.9 MB, free: 0.7773 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.532, allocations: 12.03 kB / 447.9 MB, free: 0.7656 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003009/0.5323, allocations: 27.8 kB / 447.9 MB, free: 0.7383 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/0.5326, allocations: 192.1 kB / 448.1 MB, free: 0.5078 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.092e-05/0.5327, allocations: 7.953 kB / 448.1 MB, free: 0.5 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.694e-05/0.5327, allocations: 4 kB / 448.1 MB, free: 0.4961 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001621/0.5329, allocations: 44.77 kB / 448.1 MB, free: 464 kB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002443/0.5332, allocations: 108.2 kB / 448.3 MB, free: 340 kB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.5332, allocations: 0 / 448.3 MB, free: 340 kB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.5332, allocations: 4 kB / 448.3 MB, free: 336 kB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.862e-06/0.5333, allocations: 0 / 448.3 MB, free: 336 kB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.5344, allocations: 0.5403 MB / 448.8 MB, free: 15.74 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000323/0.5347, allocations: 123.8 kB / 448.9 MB, free: 15.59 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.5348, allocations: 50.67 kB / 449 MB, free: 15.54 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.5349, allocations: 4.938 kB / 449 MB, free: 15.53 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003117/0.5352, allocations: 136.4 kB / 449.1 MB, free: 15.38 MB / 347.1 MB Notification: Performance of pre-optimization done (n=17): time 2.365e-06/0.5352, allocations: 4 kB / 449.1 MB, free: 15.38 MB / 347.1 MB Notification: Performance of matching and sorting (n=17): time 0.001029/0.5363, allocations: 204.2 kB / 449.3 MB, free: 15.17 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.042e-05/0.5364, allocations: 123 kB / 449.4 MB, free: 15.03 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002492/0.5366, allocations: 170.2 kB / 449.6 MB, free: 14.86 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 7.408e-05/0.5367, allocations: 41.69 kB / 449.6 MB, free: 14.81 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.5369, allocations: 171 kB / 449.8 MB, free: 14.64 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.771e-05/0.5369, allocations: 51.42 kB / 449.9 MB, free: 14.59 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.852e-05/0.537, allocations: 1.125 kB / 449.9 MB, free: 14.59 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.5371, allocations: 322.8 kB / 450.2 MB, free: 14.26 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/0.5374, allocations: 71.98 kB / 450.2 MB, free: 14.19 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002473/0.5376, allocations: 113.6 kB / 450.4 MB, free: 14.07 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008822/0.5385, allocations: 127.9 kB / 450.5 MB, free: 13.95 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.5385, allocations: 3.953 kB / 450.5 MB, free: 13.94 MB / 347.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001214/0.5398, allocations: 281.3 kB / 450.8 MB, free: 13.66 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.5398, allocations: 4 kB / 450.8 MB, free: 13.66 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.875e-05/0.5398, allocations: 4.875 kB / 450.8 MB, free: 13.65 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.5399, allocations: 0 / 450.8 MB, free: 13.65 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002642/0.5402, allocations: 36.02 kB / 450.8 MB, free: 13.62 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.5402, allocations: 4 kB / 450.8 MB, free: 13.61 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001757/0.5404, allocations: 25.7 kB / 450.8 MB, free: 13.59 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.399e-05/0.5404, allocations: 12 kB / 450.8 MB, free: 13.58 MB / 347.1 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.0001865/0.5406, allocations: 137.4 kB / 451 MB, free: 13.44 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.285e-05/0.5407, allocations: 15.77 kB / 451 MB, free: 13.42 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.553e-05/0.5408, allocations: 13.84 kB / 451 MB, free: 13.41 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.5408, allocations: 8 kB / 451 MB, free: 13.4 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.5408, allocations: 0 / 451 MB, free: 13.4 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.5408, allocations: 3.984 kB / 451 MB, free: 13.4 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002917/0.5411, allocations: 194.1 kB / 451.2 MB, free: 13.17 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.5412, allocations: 3.938 kB / 451.2 MB, free: 13.17 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/0.5413, allocations: 8 kB / 451.2 MB, free: 13.16 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.164e-06/0.5413, allocations: 7.953 kB / 451.2 MB, free: 13.15 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.169e-05/0.5413, allocations: 3.984 kB / 451.2 MB, free: 13.15 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.5414, allocations: 7.938 kB / 451.2 MB, free: 13.14 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.5414, allocations: 4 kB / 451.2 MB, free: 13.14 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009585/0.5423, allocations: 261.9 kB / 451.5 MB, free: 12.84 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.16e-05/0.5424, allocations: 92.91 kB / 451.6 MB, free: 12.73 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.092e-05/0.5425, allocations: 19.98 kB / 451.6 MB, free: 12.71 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001242/0.5427, allocations: 4 kB / 451.6 MB, free: 12.71 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.412e-05/0.5428, allocations: 23.91 kB / 451.6 MB, free: 12.69 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.271e-05/0.5428, allocations: 5.031 kB / 451.6 MB, free: 12.68 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001614/0.543, allocations: 124.1 kB / 451.8 MB, free: 12.56 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.543, allocations: 0 / 451.8 MB, free: 12.56 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0008485/0.5438, allocations: 155.7 kB / 451.9 MB, free: 12.41 MB / 347.1 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.001549/0.5454, allocations: 406.5 kB / 452.3 MB, free: 12.04 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0005629/0.546, allocations: 219.2 kB / 452.5 MB, free: 11.82 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 4.239e-06/0.546, allocations: 0 / 452.5 MB, free: 11.82 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001525/0.5462, allocations: 55.98 kB / 452.6 MB, free: 11.76 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002116/0.5464, allocations: 12.39 kB / 452.6 MB, free: 11.75 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005933/0.547, allocations: 224.9 kB / 452.8 MB, free: 11.48 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003798/0.5474, allocations: 0.7225 MB / 453.5 MB, free: 10.74 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.172e-05/0.5475, allocations: 19.42 kB / 453.6 MB, free: 10.72 MB / 347.1 MB Notification: Performance of SimCode: time 6.72e-07/0.5475, allocations: 0 / 453.6 MB, free: 10.72 MB / 347.1 MB Notification: Performance of Templates: time 0.01222/0.5597, allocations: 4.381 MB / 457.9 MB, free: 6.363 MB / 347.1 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: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.3_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.3_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.cpp:29:\n./OMCppModelica_3.2.3_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.3_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.3_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.o] Error 1\n'