Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.382/2.382, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.593e-05/3.599e-05, allocations: 4 kB / 292.2 MB, free: 8.758 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1134, allocations: 50.41 MB / 342.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.468/0.5815, allocations: 76.58 MB / 419.2 MB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/0.5818, allocations: 66.45 kB / 419.3 MB, free: 1.523 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01259/0.5944, allocations: 2.975 MB / 422.2 MB, free: 14.94 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5944, allocations: 0 / 422.2 MB, free: 14.94 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.5945, allocations: 0 / 422.2 MB, free: 14.94 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006735/0.5951, allocations: 0.5588 MB / 422.8 MB, free: 14.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.5952, allocations: 8.031 kB / 422.8 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001082/0.5953, allocations: 65.89 kB / 422.9 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.5955, allocations: 22.31 kB / 422.9 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001618/0.5957, allocations: 182.8 kB / 423.1 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.5957, allocations: 4 kB / 423.1 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.856e-05/0.5957, allocations: 4 kB / 423.1 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005256/0.5963, allocations: 275.9 kB / 423.4 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.5963, allocations: 4 kB / 423.4 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/0.5963, allocations: 4 kB / 423.4 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.5964, allocations: 3.953 kB / 423.4 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002529/0.5966, allocations: 154.4 kB / 423.5 MB, free: 13.67 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004422/0.5971, allocations: 389.6 kB / 423.9 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005454/0.5976, allocations: 0.4985 MB / 424.4 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004798/0.5981, allocations: 483.1 kB / 424.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.222e-05/0.5982, allocations: 0 / 424.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006524/0.5988, allocations: 486.8 kB / 425.3 MB, free: 12.41 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.107e-06/0.5988, allocations: 4 kB / 425.3 MB, free: 12.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009888/0.5998, allocations: 0.5155 MB / 425.9 MB, free: 11.97 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/0.6, allocations: 167.4 kB / 426 MB, free: 11.78 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.6001, allocations: 96.84 kB / 426.1 MB, free: 11.68 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.6001, allocations: 29.7 kB / 426.2 MB, free: 11.65 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.679e-05/0.6002, allocations: 155.3 kB / 426.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.6003, allocations: 98.44 kB / 426.4 MB, free: 11.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/0.6004, allocations: 0 / 426.4 MB, free: 11.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.6005, allocations: 332.9 kB / 426.7 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.6007, allocations: 86.27 kB / 426.8 MB, free: 11.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.6008, allocations: 116.4 kB / 426.9 MB, free: 10.94 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002629/0.6011, allocations: 207.7 kB / 427.1 MB, free: 10.76 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.6011, allocations: 0 / 427.1 MB, free: 10.76 MB / 346.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005489/0.6017, allocations: 363.3 kB / 427.5 MB, free: 10.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001319/0.6018, allocations: 106.3 kB / 427.6 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.6018, allocations: 0 / 427.6 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.6019, allocations: 3.953 kB / 427.6 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.05e-05/0.602, allocations: 15.95 kB / 427.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.602, allocations: 4 kB / 427.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.6021, allocations: 27.06 kB / 427.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.077e-05/0.6021, allocations: 8.75 kB / 427.6 MB, free: 10.29 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: 46 ($whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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.0003464/0.6025, allocations: 277 kB / 427.9 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.54e-05/0.6026, allocations: 27.81 kB / 427.9 MB, free: 9.984 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.838e-05/0.6026, allocations: 5.344 kB / 427.9 MB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.6026, allocations: 3.953 kB / 427.9 MB, free: 9.973 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.6027, allocations: 0 / 427.9 MB, free: 9.973 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.6027, allocations: 7.938 kB / 428 MB, free: 9.965 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002159/0.6048, allocations: 1.439 MB / 429.4 MB, free: 8.684 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.6049, allocations: 8.062 kB / 429.4 MB, free: 8.676 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.884e-05/0.6049, allocations: 7.984 kB / 429.4 MB, free: 8.668 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.605, allocations: 0 / 429.4 MB, free: 8.668 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.685e-05/0.605, allocations: 27.44 kB / 429.4 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.605, allocations: 0 / 429.4 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.605, allocations: 0 / 429.4 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001971/0.607, allocations: 1.314 MB / 430.8 MB, free: 7.504 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.886e-05/0.6071, allocations: 100.8 kB / 430.8 MB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002174/0.6073, allocations: 67.92 kB / 430.9 MB, free: 7.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/0.6075, allocations: 8 kB / 430.9 MB, free: 7.312 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.246e-05/0.6076, allocations: 19.17 kB / 430.9 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.755e-05/0.6077, allocations: 35.45 kB / 431 MB, free: 7.27 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.7e-05/0.6078, allocations: 79.28 kB / 431.1 MB, free: 7.191 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.6078, allocations: 0 / 431.1 MB, free: 7.191 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006427/0.6084, allocations: 107.4 kB / 431.2 MB, free: 7.09 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: 46 ($whenCondition1,rImpure,iImpure,$whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33]) * Number of discrete states: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2,iImpure,rImpure,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.00366/0.6121, allocations: 2.425 MB / 433.6 MB, free: 4.953 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002359/0.6145, allocations: 2.129 MB / 435.7 MB, free: 3.859 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.6145, allocations: 0 / 435.7 MB, free: 3.859 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002194/0.6167, allocations: 2.184 MB / 437.9 MB, free: 2.852 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002562/0.617, allocations: 12 kB / 437.9 MB, free: 2.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.6182, allocations: 440 kB / 438.3 MB, free: 2.383 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003883/0.6186, allocations: 0.7283 MB / 439.1 MB, free: 1.625 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.099e-05/0.6187, allocations: 38.8 kB / 439.1 MB, free: 1.609 MB / 346.7 MB Notification: Performance of SimCode: time 1.252e-06/0.6187, allocations: 0 / 439.1 MB, free: 1.609 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_Math_Random_Examples_GenerateRandomNumbersCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbersCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbersCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbersFunctions.cpp:87:3: error: no matching function for call to 'ModelicaRandom_xorshift1024star' ModelicaRandom_xorshift1024star(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:76:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift1024star(_In_ int* state_in, ^ In file included from OMCppModelica_trunk_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbersCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbersFunctions.cpp:118:3: error: no matching function for call to 'ModelicaRandom_xorshift128plus' ModelicaRandom_xorshift128plus(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:74:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift128plus(_In_ int* state_in, ^ In file included from OMCppModelica_trunk_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbersCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbersFunctions.cpp:205: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_Math_Random_Examples_GenerateRandomNumbersCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbersFunctions.cpp:406: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_Math_Random_Examples_GenerateRandomNumbersCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbersFMU.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 4 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbersCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbersCalcHelperMain.o] Error 1