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: "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.Distributions,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.Distributions,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001653/0.001653, allocations: 180.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.145/2.145, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001049/0.001048, allocations: 86.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.521e-05/3.539e-05, allocations: 7.938 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1041, allocations: 47.57 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4166/0.5208, allocations: 78.16 MB / 447.3 MB, free: 15.05 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002894/0.5211, allocations: 69.16 kB / 447.4 MB, free: 15.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03672/0.5579, allocations: 7.505 MB / 454.9 MB, free: 8.523 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.5579, allocations: 0 / 454.9 MB, free: 8.523 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.558, allocations: 8 kB / 454.9 MB, free: 8.516 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.001135/0.5591, allocations: 0.5049 MB / 455.4 MB, free: 7.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.5592, allocations: 8.031 kB / 455.4 MB, free: 7.973 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.247e-05/0.5593, allocations: 41.3 kB / 455.5 MB, free: 7.926 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003087/0.5596, allocations: 31.8 kB / 455.5 MB, free: 7.895 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002449/0.5599, allocations: 197.8 kB / 455.7 MB, free: 7.664 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.65e-05/0.5599, allocations: 19.14 kB / 455.7 MB, free: 7.648 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.099e-05/0.56, allocations: 6.875 kB / 455.7 MB, free: 7.645 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002979/0.5603, allocations: 119.9 kB / 455.8 MB, free: 7.531 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.5603, allocations: 3.938 kB / 455.8 MB, free: 7.527 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.918e-05/0.5603, allocations: 0 / 455.8 MB, free: 7.527 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.198e-06/0.5603, allocations: 4 kB / 455.8 MB, free: 7.523 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001589/0.5605, allocations: 51.23 kB / 455.9 MB, free: 7.488 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.5616, allocations: 0.5761 MB / 456.5 MB, free: 6.906 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003347/0.562, allocations: 119.1 kB / 456.6 MB, free: 6.781 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.5621, allocations: 57.67 kB / 456.6 MB, free: 6.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.5622, allocations: 4 kB / 456.6 MB, free: 6.727 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003167/0.5625, allocations: 148.5 kB / 456.8 MB, free: 6.582 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 2.023e-06/0.5625, allocations: 0 / 456.8 MB, free: 6.582 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005404/0.5631, allocations: 176.4 kB / 457 MB, free: 6.434 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.447e-05/0.5632, allocations: 118.8 kB / 457.1 MB, free: 6.293 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002619/0.5634, allocations: 177.1 kB / 457.2 MB, free: 6.141 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.025e-05/0.5635, allocations: 45.53 kB / 457.3 MB, free: 6.098 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.5637, allocations: 182.7 kB / 457.5 MB, free: 5.926 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.514e-05/0.5637, allocations: 42.89 kB / 457.5 MB, free: 5.891 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.957e-05/0.5638, allocations: 3.938 kB / 457.5 MB, free: 5.891 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.5639, allocations: 323.5 kB / 457.8 MB, free: 5.57 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002338/0.5642, allocations: 82.23 kB / 457.9 MB, free: 5.52 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000275/0.5645, allocations: 120.3 kB / 458 MB, free: 5.422 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00025/0.5647, allocations: 94.25 kB / 458.1 MB, free: 5.355 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.5647, allocations: 0 / 458.1 MB, free: 5.355 MB / 330.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006585/0.5654, allocations: 258.2 kB / 458.4 MB, free: 5.16 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.5654, allocations: 4 kB / 458.4 MB, free: 5.156 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/0.5655, allocations: 4 kB / 458.4 MB, free: 5.152 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.5655, allocations: 0 / 458.4 MB, free: 5.152 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002719/0.5658, allocations: 40 kB / 458.4 MB, free: 5.113 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.5658, allocations: 0 / 458.4 MB, free: 5.113 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000172/0.566, allocations: 35.52 kB / 458.5 MB, free: 5.082 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.943e-05/0.5661, allocations: 11.98 kB / 458.5 MB, free: 5.07 MB / 330.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 () * 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.0001727/0.5663, allocations: 132.5 kB / 458.6 MB, free: 4.941 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.26e-05/0.5663, allocations: 15.81 kB / 458.6 MB, free: 4.926 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.678e-05/0.5664, allocations: 29.41 kB / 458.6 MB, free: 4.902 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.5664, allocations: 0 / 458.6 MB, free: 4.902 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.5664, allocations: 4 kB / 458.6 MB, free: 4.898 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.5664, allocations: 0 / 458.6 MB, free: 4.898 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000309/0.5667, allocations: 228.8 kB / 458.9 MB, free: 4.645 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.5668, allocations: 0 / 458.9 MB, free: 4.645 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.5669, allocations: 11.98 kB / 458.9 MB, free: 4.633 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.5669, allocations: 4 kB / 458.9 MB, free: 4.629 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.5669, allocations: 0 / 458.9 MB, free: 4.629 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.5669, allocations: 4 kB / 458.9 MB, free: 4.625 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.5669, allocations: 4 kB / 458.9 MB, free: 4.621 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004911/0.5674, allocations: 251 kB / 459.1 MB, free: 4.379 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.814e-05/0.5675, allocations: 92.8 kB / 459.2 MB, free: 4.273 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.802e-05/0.5676, allocations: 7.984 kB / 459.2 MB, free: 4.266 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001284/0.5677, allocations: 19.8 kB / 459.3 MB, free: 4.25 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.571e-05/0.5678, allocations: 16.03 kB / 459.3 MB, free: 4.234 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/0.5679, allocations: 11.92 kB / 459.3 MB, free: 4.223 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001708/0.5681, allocations: 140.4 kB / 459.4 MB, free: 4.105 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.725e-06/0.5681, allocations: 0 / 459.4 MB, free: 4.105 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007913/0.5689, allocations: 163.3 kB / 459.6 MB, free: 3.957 MB / 330.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]) * 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.002728/0.5716, allocations: 1.26 MB / 460.8 MB, free: 2.73 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007206/0.5724, allocations: 234.6 kB / 461.1 MB, free: 2.535 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.9e-06/0.5724, allocations: 0 / 461.1 MB, free: 2.535 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001676/0.5726, allocations: 55.12 kB / 461.1 MB, free: 2.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002334/0.5729, allocations: 11.92 kB / 461.1 MB, free: 2.488 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.5742, allocations: 353.7 kB / 461.5 MB, free: 2.121 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004444/0.5747, allocations: 0.7242 MB / 462.2 MB, free: 1.371 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.5749, allocations: 46.11 kB / 462.2 MB, free: 1.352 MB / 330.7 MB Notification: Performance of SimCode: time 1.543e-06/0.5749, allocations: 0 / 462.2 MB, free: 1.352 MB / 330.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -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 In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.cpp:31: ./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_'? $PRE_P_truncatedNormalNoise_P_state_.assign(tmp82); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _truncatedNormalNoise_P_state_ ./OMCppModelica_3_2_3_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_3_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.cpp:31: ./OMCppModelica_3_2_3_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_3_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_3_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsFMU.cpp:11: /var/lib/jenkins1/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_3_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.o] Error 1