Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.894/1.894, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.512e-05/3.523e-05, allocations: 6.031 kB / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1085, allocations: 50.4 MB / 342.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4579/0.5664, allocations: 76.47 MB / 419.1 MB, free: 1.633 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003342/0.5668, allocations: 65.53 kB / 419.2 MB, free: 1.598 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0113/0.5781, allocations: 1.994 MB / 421.2 MB, free: 15.87 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.5782, allocations: 0 / 421.2 MB, free: 15.87 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.5782, allocations: 0 / 421.2 MB, free: 15.87 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0005573/0.5788, allocations: 353.5 kB / 421.5 MB, free: 15.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.976e-05/0.5788, allocations: 12.03 kB / 421.5 MB, free: 15.47 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.037e-05/0.5789, allocations: 31.44 kB / 421.5 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.43e-05/0.579, allocations: 4.531 kB / 421.5 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001786/0.5792, allocations: 163.1 kB / 421.7 MB, free: 15.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.5792, allocations: 7.984 kB / 421.7 MB, free: 15.22 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.007e-05/0.5793, allocations: 7.125 kB / 421.7 MB, free: 15.22 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001283/0.5794, allocations: 29.7 kB / 421.7 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.5794, allocations: 4 kB / 421.8 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.5795, allocations: 3.953 kB / 421.8 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.5795, allocations: 0 / 421.8 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.593e-05/0.5795, allocations: 11.75 kB / 421.8 MB, free: 15.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005548/0.5801, allocations: 252 kB / 422 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.407e-05/0.5802, allocations: 22.45 kB / 422 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.919e-05/0.5803, allocations: 12.91 kB / 422 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.5803, allocations: 0 / 422 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001585/0.5805, allocations: 59.11 kB / 422.1 MB, free: 14.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 5.741e-06/0.5805, allocations: 3.984 kB / 422.1 MB, free: 14.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002447/0.5808, allocations: 57.22 kB / 422.2 MB, free: 14.71 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/0.5809, allocations: 51.41 kB / 422.2 MB, free: 14.64 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.581, allocations: 100.2 kB / 422.3 MB, free: 14.54 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.623e-05/0.5811, allocations: 28.77 kB / 422.3 MB, free: 14.51 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.801e-05/0.5812, allocations: 150.6 kB / 422.5 MB, free: 14.36 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/0.5812, allocations: 11.83 kB / 422.5 MB, free: 14.35 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.009e-05/0.5812, allocations: 7.25 kB / 422.5 MB, free: 14.35 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.5814, allocations: 310.8 kB / 422.8 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.829e-05/0.5815, allocations: 11.25 kB / 422.8 MB, free: 14.03 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.431e-05/0.5815, allocations: 21.09 kB / 422.8 MB, free: 14 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.285e-05/0.5816, allocations: 11.98 kB / 422.9 MB, free: 13.99 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.5816, allocations: 0 / 422.9 MB, free: 13.99 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000185/0.5818, allocations: 56.12 kB / 422.9 MB, free: 13.94 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.856e-05/0.5819, allocations: 7.953 kB / 422.9 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.5819, allocations: 0 / 422.9 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.5819, allocations: 0 / 422.9 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.5821, allocations: 8 kB / 422.9 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.5821, allocations: 4.031 kB / 422.9 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.183e-05/0.5821, allocations: 0 / 422.9 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.5822, allocations: 4 kB / 422.9 MB, free: 13.91 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,impureRandom.y,globalSeed.seed,globalSeed.id_impure) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001146/0.5823, allocations: 108.2 kB / 423 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.887e-05/0.5823, allocations: 11.89 kB / 423 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.133e-05/0.5824, allocations: 7.984 kB / 423.1 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.5824, allocations: 0 / 423.1 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.5824, allocations: 0 / 423.1 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.5824, allocations: 0 / 423.1 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00042/0.5829, allocations: 285 kB / 423.3 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.5829, allocations: 0 / 423.3 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.797e-05/0.5829, allocations: 4 kB / 423.3 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.005e-05/0.583, allocations: 7.938 kB / 423.3 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.583, allocations: 0 / 423.3 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.583, allocations: 0 / 423.3 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.583, allocations: 4.312 kB / 423.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002074/0.5832, allocations: 146.9 kB / 423.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.18e-05/0.5833, allocations: 77.11 kB / 423.6 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.685e-05/0.5834, allocations: 11.58 kB / 423.6 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.5835, allocations: 4 kB / 423.6 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.818e-05/0.5835, allocations: 3.984 kB / 423.6 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.5836, allocations: 0 / 423.6 MB, free: 13.18 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.284e-05/0.5836, allocations: 86.84 kB / 423.7 MB, free: 13.1 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.5837, allocations: 0 / 423.7 MB, free: 13.1 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006781/0.5843, allocations: 28 kB / 423.7 MB, free: 13.07 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001332/0.5857, allocations: 0.7905 MB / 424.5 MB, free: 12.29 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001367/0.5859, allocations: 15.44 kB / 424.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.5859, allocations: 7.188 kB / 424.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.986e-05/0.5859, allocations: 4 kB / 424.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002674/0.5862, allocations: 8 kB / 424.5 MB, free: 12.26 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006842/0.5869, allocations: 150 kB / 424.7 MB, free: 12.07 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004013/0.5874, allocations: 0.6809 MB / 425.4 MB, free: 11.37 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.888e-05/0.5874, allocations: 18.98 kB / 425.4 MB, free: 11.35 MB / 346.7 MB Notification: Performance of SimCode: time 9.02e-07/0.5874, allocations: 0 / 425.4 MB, free: 11.35 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/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"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ImpureGeneratorCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ImpureGeneratorCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ImpureGeneratorCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ImpureGeneratorFunctions.cpp:137:3: error: no matching function for call to 'ModelicaRandom_xorshift64star' ModelicaRandom_xorshift64star(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:72:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift64star(_In_ int* state_in, ^ In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ImpureGeneratorCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ImpureGeneratorFunctions.cpp:333:3: error: no matching function for call to 'ModelicaRandom_setInternalState_xorshift1024star' ModelicaRandom_setInternalState_xorshift1024star(ConstArray(rngState_).getData(), rngState_.getDim(1), id__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:78:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_setInternalState_xorshift1024star( ^ In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ImpureGeneratorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ImpureGeneratorFMU.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_trunk_cpp_Modelica_Blocks_Examples_Noise_ImpureGeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ImpureGeneratorCalcHelperMain.o] Error 1