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: "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.Distributions,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.02/2.02, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00049/0.0004899, allocations: 15.98 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09771/0.09825, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4148/0.5131, allocations: 74.05 MB / 382.6 MB, free: 14.98 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.5135, allocations: 75.17 kB / 382.7 MB, free: 14.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03383/0.5473, allocations: 7.548 MB / 390.2 MB, free: 14.2 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.5474, allocations: 0 / 390.2 MB, free: 14.2 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.5474, allocations: 4 kB / 390.2 MB, free: 14.19 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.001143/0.5485, allocations: 0.5283 MB / 390.7 MB, free: 13.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.5486, allocations: 11.62 kB / 390.8 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.631e-05/0.5487, allocations: 39.92 kB / 390.8 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002867/0.549, allocations: 31.67 kB / 390.8 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001886/0.5492, allocations: 206.5 kB / 391 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.704e-05/0.5492, allocations: 7.969 kB / 391 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.452e-05/0.5493, allocations: 18.17 kB / 391.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003625/0.5497, allocations: 136.2 kB / 391.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.5497, allocations: 0 / 391.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.5497, allocations: 0 / 391.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.5497, allocations: 3.844 kB / 391.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003325/0.5501, allocations: 75.09 kB / 391.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009242/0.551, allocations: 0.5745 MB / 391.8 MB, free: 12.94 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005237/0.5516, allocations: 166.8 kB / 392 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.5516, allocations: 2.625 kB / 392 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000389/0.552, allocations: 153.2 kB / 392.2 MB, free: 12.79 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 2.064e-06/0.552, allocations: 0 / 392.2 MB, free: 12.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.0009749/0.553, allocations: 429.8 kB / 392.6 MB, free: 12.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.218e-05/0.5531, allocations: 121.1 kB / 392.7 MB, free: 12.42 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.5533, allocations: 178 kB / 392.9 MB, free: 12.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.6e-05/0.5534, allocations: 43.14 kB / 392.9 MB, free: 12.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.274e-05/0.5535, allocations: 177.3 kB / 393.1 MB, free: 12.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.147e-05/0.5535, allocations: 45.5 kB / 393.1 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.99e-05/0.5536, allocations: 10.36 kB / 393.1 MB, free: 12.11 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.856e-05/0.5536, allocations: 323.8 kB / 393.5 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003162/0.554, allocations: 95.02 kB / 393.5 MB, free: 11.8 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000336/0.5543, allocations: 131 kB / 393.7 MB, free: 11.76 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003336/0.5547, allocations: 103.5 kB / 393.8 MB, free: 11.76 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.5547, allocations: 0 / 393.8 MB, free: 11.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008092/0.5555, allocations: 286.9 kB / 394.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.5555, allocations: 8.344 kB / 394.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.071e-05/0.5556, allocations: 0 / 394.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.276e-05/0.5556, allocations: 7.703 kB / 394.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002296/0.5558, allocations: 33.53 kB / 394.1 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.5559, allocations: 3.625 kB / 394.1 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001815/0.5561, allocations: 25.28 kB / 394.1 MB, free: 11.69 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.533e-05/0.5561, allocations: 15.16 kB / 394.1 MB, free: 11.69 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.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,$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,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.0002046/0.5563, allocations: 159.6 kB / 394.3 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.36e-05/0.5564, allocations: 15.66 kB / 394.3 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.778e-05/0.5564, allocations: 15.42 kB / 394.3 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.5565, allocations: 3.938 kB / 394.3 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.5565, allocations: 7.953 kB / 394.3 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.5565, allocations: 0 / 394.3 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002427/0.5567, allocations: 221.3 kB / 394.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.5568, allocations: 0 / 394.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.5569, allocations: 14.81 kB / 394.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.5569, allocations: 0 / 394.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.5569, allocations: 11.12 kB / 394.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.5569, allocations: 3.938 kB / 394.6 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.5569, allocations: 3.938 kB / 394.6 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006128/0.5576, allocations: 276.8 kB / 394.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.076e-05/0.5576, allocations: 95.22 kB / 395 MB, free: 11.09 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.738e-05/0.5577, allocations: 16.81 kB / 395 MB, free: 11.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.5578, allocations: 6.641 kB / 395 MB, free: 11.09 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.885e-05/0.5579, allocations: 19.72 kB / 395 MB, free: 11.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/0.5579, allocations: 6.781 kB / 395 MB, free: 11.09 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001387/0.5581, allocations: 136.3 kB / 395.1 MB, free: 11.01 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5581, allocations: 0 / 395.1 MB, free: 11.01 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008199/0.5589, allocations: 175.2 kB / 395.3 MB, free: 10.95 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,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.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.002542/0.5615, allocations: 1.303 MB / 396.6 MB, free: 10.05 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008102/0.5624, allocations: 261.9 kB / 396.9 MB, free: 9.984 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.5624, allocations: 0 / 396.9 MB, free: 9.984 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000256/0.5627, allocations: 76.39 kB / 396.9 MB, free: 9.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.5629, allocations: 12.12 kB / 397 MB, free: 9.973 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.5644, allocations: 1.113 MB / 398.1 MB, free: 8.992 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001852/0.5646, allocations: 0.7194 MB / 398.8 MB, free: 8.297 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.5647, allocations: 46.2 kB / 398.8 MB, free: 8.289 MB / 314.7 MB Notification: Performance of SimCode: time 1.403e-06/0.5647, allocations: 0 / 398.8 MB, free: 8.289 MB / 314.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -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 In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_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_'? $PRE_P_truncatedNormalNoise_P_state_.assign(tmp82); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _truncatedNormalNoise_P_state_ ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_Distributions.h:198:33: note: '_truncatedNormalNoise_P_state_' declared here StatArrayDim1 _truncatedNormalNoise_P_state_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsInitialize.cpp:384:3: error: use of undeclared identifier '$PRE_P_uniformNoise_P_state_'; did you mean '_uniformNoise_P_state_'? $PRE_P_uniformNoise_P_state_.assign(tmp87); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _uniformNoise_P_state_ ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_Distributions.h:199:33: note: '_uniformNoise_P_state_' declared here StatArrayDim1 _uniformNoise_P_state_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 2 errors generated. : recipe for target 'OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.o] Error 1