Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoise.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.UniformNoise,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.UniformNoise,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoise",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.001515/0.001514, allocations: 185.8 kB / 16.41 MB, free: 5.727 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.031/2.031, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001128/0.001128, allocations: 87.45 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004251/0.0004251, allocations: 8 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3397, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1229/0.4627, allocations: 76.14 MB / 450.8 MB, free: 4.598 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002879/0.463, allocations: 75.95 kB / 450.8 MB, free: 4.523 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01885/0.4819, allocations: 4.15 MB / 455 MB, free: 368 kB / 330.7 MB Notification: Performance of FrontEnd: time 4.188e-06/0.4819, allocations: 0 / 455 MB, free: 368 kB / 330.7 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.482, allocations: 3.938 kB / 455 MB, free: 364 kB / 330.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.0008892/0.4829, allocations: 459.3 kB / 455.4 MB, free: 15.86 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.624e-05/0.4829, allocations: 12.03 kB / 455.5 MB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.882e-05/0.483, allocations: 38.41 kB / 455.5 MB, free: 15.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004494/0.4835, allocations: 43.88 kB / 455.5 MB, free: 15.76 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.4837, allocations: 186.9 kB / 455.7 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.46e-05/0.4838, allocations: 11.95 kB / 455.7 MB, free: 15.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.391e-05/0.4838, allocations: 12 kB / 455.7 MB, free: 15.51 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000375/0.4842, allocations: 123.2 kB / 455.9 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.4842, allocations: 0 / 455.9 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.4843, allocations: 0 / 455.9 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.4843, allocations: 0 / 455.9 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003153/0.4846, allocations: 71.95 kB / 455.9 MB, free: 15.31 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009916/0.4856, allocations: 470.9 kB / 456.4 MB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005453/0.4862, allocations: 141.2 kB / 456.5 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.4862, allocations: 0 / 456.5 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004024/0.4866, allocations: 149.2 kB / 456.7 MB, free: 14.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.924e-06/0.4866, allocations: 0 / 456.7 MB, free: 14.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.001072/0.4877, allocations: 411.6 kB / 457.1 MB, free: 14.03 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.528e-05/0.4878, allocations: 85.11 kB / 457.2 MB, free: 13.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.4881, allocations: 165.9 kB / 457.3 MB, free: 13.76 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.999e-05/0.4882, allocations: 49.67 kB / 457.4 MB, free: 13.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.4883, allocations: 178.9 kB / 457.5 MB, free: 13.53 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.3e-05/0.4884, allocations: 39.55 kB / 457.6 MB, free: 13.49 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.365e-05/0.4884, allocations: 4 kB / 457.6 MB, free: 13.49 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.4886, allocations: 326.8 kB / 457.9 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003456/0.489, allocations: 88.47 kB / 458 MB, free: 13.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003741/0.4894, allocations: 127.5 kB / 458.1 MB, free: 12.93 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003677/0.4897, allocations: 109 kB / 458.2 MB, free: 12.83 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.4898, allocations: 0 / 458.2 MB, free: 12.83 MB / 346.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009096/0.4907, allocations: 279.1 kB / 458.5 MB, free: 12.55 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.4907, allocations: 11.94 kB / 458.5 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.375e-05/0.4908, allocations: 0 / 458.5 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.693e-05/0.4908, allocations: 4 kB / 458.5 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002457/0.4911, allocations: 31.97 kB / 458.5 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.4911, allocations: 3.938 kB / 458.6 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/0.4913, allocations: 23.86 kB / 458.6 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.057e-05/0.4913, allocations: 12 kB / 458.6 MB, free: 12.46 MB / 346.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.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,$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,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.0002564/0.4916, allocations: 149.9 kB / 458.7 MB, free: 12.31 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.329e-05/0.4917, allocations: 11.91 kB / 458.7 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.322e-05/0.4917, allocations: 17.39 kB / 458.8 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.4917, allocations: 3.938 kB / 458.8 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4918, allocations: 0 / 458.8 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.4918, allocations: 8 kB / 458.8 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000304/0.4921, allocations: 213.5 kB / 459 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.4921, allocations: 7.938 kB / 459 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.4922, allocations: 8 kB / 459 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.4922, allocations: 3.984 kB / 459 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.801e-05/0.4923, allocations: 0 / 459 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.942e-06/0.4923, allocations: 4 kB / 459 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.4923, allocations: 0 / 459 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006687/0.493, allocations: 247.3 kB / 459.2 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.694e-05/0.4931, allocations: 85.02 kB / 459.3 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.912e-05/0.4931, allocations: 11.98 kB / 459.3 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.4933, allocations: 15.98 kB / 459.4 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.747e-05/0.4933, allocations: 11.92 kB / 459.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.792e-05/0.4934, allocations: 4 kB / 459.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001699/0.4936, allocations: 127.2 kB / 459.5 MB, free: 11.44 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4936, allocations: 0 / 459.5 MB, free: 11.44 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005121/0.4941, allocations: 67.84 kB / 459.6 MB, free: 11.38 MB / 346.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,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw,$whenCondition1,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw) * Number of discrete states: 8 (uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.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.001947/0.4961, allocations: 1.043 MB / 460.6 MB, free: 10.33 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007618/0.4969, allocations: 251.2 kB / 460.9 MB, free: 10.07 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.4969, allocations: 3.938 kB / 460.9 MB, free: 10.07 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002488/0.4972, allocations: 67.95 kB / 460.9 MB, free: 10 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001868/0.4974, allocations: 8 kB / 460.9 MB, free: 9.992 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001314/0.4987, allocations: 0.8656 MB / 461.8 MB, free: 9.062 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.4991, allocations: 0.7121 MB / 462.5 MB, free: 8.324 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/0.4993, allocations: 43.42 kB / 462.5 MB, free: 8.285 MB / 346.7 MB Notification: Performance of SimCode: time 9.72e-07/0.4993, allocations: 0 / 462.5 MB, free: 8.285 MB / 346.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_UniformNoiseCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp:31: ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseInitialize.cpp:255:3: error: use of undeclared identifier '$PRE_P_uniformNoise2_P_state_'; did you mean '_uniformNoise2_P_state_'? $PRE_P_uniformNoise2_P_state_.assign(tmp41); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _uniformNoise2_P_state_ ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoise.h:198:33: note: '_uniformNoise2_P_state_' declared here StatArrayDim1 _uniformNoise2_P_state_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp:31: ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseInitialize.cpp:381:3: error: use of undeclared identifier '$PRE_P_uniformNoise1_P_state_'; did you mean '_uniformNoise1_P_state_'? $PRE_P_uniformNoise1_P_state_.assign(tmp45); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _uniformNoise1_P_state_ ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoise.h:197:33: note: '_uniformNoise1_P_state_' declared here StatArrayDim1 _uniformNoise1_P_state_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseFMU.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_UniformNoiseCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.o] Error 1