Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.UniformNoise,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.014/2.014, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.997e-05/4.012e-05, allocations: 4 kB / 255.4 MB, free: 3.117 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 44.5 MB / 299.9 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4295/0.5323, allocations: 71.89 MB / 371.8 MB, free: 21.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003649/0.5327, allocations: 72.67 kB / 371.9 MB, free: 21.71 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01911/0.5518, allocations: 4.139 MB / 376 MB, free: 21.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.5519, allocations: 1.125 kB / 376 MB, free: 21.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.5519, allocations: 2.125 kB / 376 MB, free: 21.16 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0008231/0.5527, allocations: 434.8 kB / 376.5 MB, free: 20.77 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.5528, allocations: 9.062 kB / 376.5 MB, free: 20.77 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.996e-05/0.5529, allocations: 43.16 kB / 376.5 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004418/0.5534, allocations: 42.69 kB / 376.5 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001941/0.5536, allocations: 187.2 kB / 376.7 MB, free: 20.51 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.398e-05/0.5536, allocations: 4.422 kB / 376.7 MB, free: 20.51 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.13e-05/0.5537, allocations: 8.531 kB / 376.7 MB, free: 20.51 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002735/0.554, allocations: 107.1 kB / 376.8 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.554, allocations: 4.844 kB / 376.9 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.554, allocations: 1.156 kB / 376.9 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-06/0.554, allocations: 1.219 kB / 376.9 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001378/0.5542, allocations: 43.02 kB / 376.9 MB, free: 20.45 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009321/0.5551, allocations: 483.2 kB / 377.4 MB, free: 20.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002953/0.5555, allocations: 105 kB / 377.5 MB, free: 20.04 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.5556, allocations: 48.09 kB / 377.5 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.5556, allocations: 0 / 377.5 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002941/0.5559, allocations: 125.7 kB / 377.6 MB, free: 19.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=16): time 2.144e-06/0.556, allocations: 5.344 kB / 377.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=16): time 0.0006029/0.5566, allocations: 171.4 kB / 377.8 MB, free: 19.91 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.904e-05/0.5567, allocations: 98.55 kB / 377.9 MB, free: 19.81 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002372/0.5569, allocations: 159.2 kB / 378.1 MB, free: 19.71 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.016e-05/0.557, allocations: 47.55 kB / 378.1 MB, free: 19.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.565e-05/0.5571, allocations: 170.8 kB / 378.3 MB, free: 19.53 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.808e-05/0.5572, allocations: 43.67 kB / 378.3 MB, free: 19.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.982e-05/0.5572, allocations: 5 kB / 378.3 MB, free: 19.5 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.683e-05/0.5573, allocations: 325.5 kB / 378.6 MB, free: 19.19 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002322/0.5576, allocations: 82.02 kB / 378.7 MB, free: 19.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002555/0.5578, allocations: 106.9 kB / 378.8 MB, free: 19.15 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002614/0.5581, allocations: 86.06 kB / 378.9 MB, free: 19.15 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.5581, allocations: 1.281 kB / 378.9 MB, free: 19.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006608/0.5588, allocations: 255 kB / 379.2 MB, free: 19.1 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.5588, allocations: 9.719 kB / 379.2 MB, free: 19.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.472e-05/0.5589, allocations: 1.031 kB / 379.2 MB, free: 19.1 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.484e-05/0.5589, allocations: 2.25 kB / 379.2 MB, free: 19.1 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002716/0.5592, allocations: 29.48 kB / 379.2 MB, free: 19.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.5592, allocations: 1.125 kB / 379.2 MB, free: 19.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001717/0.5594, allocations: 32.44 kB / 379.2 MB, free: 19.08 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.371e-05/0.5595, allocations: 11.66 kB / 379.2 MB, free: 19.08 MB / 314.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 () * 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.0001557/0.5596, allocations: 139.8 kB / 379.4 MB, free: 18.96 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.534e-05/0.5597, allocations: 13.94 kB / 379.4 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.417e-05/0.5598, allocations: 13.84 kB / 379.4 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.5598, allocations: 1.188 kB / 379.4 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.5598, allocations: 1.25 kB / 379.4 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.5598, allocations: 1.281 kB / 379.4 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000241/0.56, allocations: 219.2 kB / 379.6 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.5601, allocations: 1.281 kB / 379.6 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.077e-05/0.5602, allocations: 13.52 kB / 379.6 MB, free: 18.74 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.5602, allocations: 1.25 kB / 379.6 MB, free: 18.74 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.5602, allocations: 4.375 kB / 379.6 MB, free: 18.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.5602, allocations: 1.625 kB / 379.7 MB, free: 18.74 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.5602, allocations: 0 / 379.7 MB, free: 18.74 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000476/0.5607, allocations: 215.8 kB / 379.9 MB, free: 18.64 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.118e-05/0.5608, allocations: 98.7 kB / 380 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.61e-05/0.5609, allocations: 11.39 kB / 380 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.561, allocations: 7.438 kB / 380 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.926e-05/0.5611, allocations: 11.78 kB / 380 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/0.5611, allocations: 5.562 kB / 380 MB, free: 18.54 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001343/0.5613, allocations: 125.4 kB / 380.1 MB, free: 18.46 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5613, allocations: 1.562 kB / 380.1 MB, free: 18.46 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005527/0.5618, allocations: 66.95 kB / 380.2 MB, free: 18.45 MB / 314.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]) * 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.001405/0.5633, allocations: 1.007 MB / 381.2 MB, free: 17.7 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000602/0.5639, allocations: 223.2 kB / 381.4 MB, free: 17.63 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.5639, allocations: 0 / 381.4 MB, free: 17.63 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001546/0.5641, allocations: 55.92 kB / 381.5 MB, free: 17.63 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001954/0.5643, allocations: 9.109 kB / 381.5 MB, free: 17.62 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009208/0.5653, allocations: 277.5 kB / 381.7 MB, free: 17.43 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001879/0.5655, allocations: 0.7162 MB / 382.5 MB, free: 16.73 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.5656, allocations: 40.17 kB / 382.5 MB, free: 16.72 MB / 314.7 MB Notification: Performance of SimCode: time 1.152e-06/0.5656, allocations: 0 / 382.5 MB, free: 16.72 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_UniformNoiseCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_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_2_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_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_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_2_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_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseFMU.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_UniformNoiseCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.o] Error 1