Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.028/2.028, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.226e-05/3.232e-05, allocations: 4 kB / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1075, allocations: 50.42 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4269/0.5345, allocations: 79.34 MB / 422 MB, free: 14.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/0.5348, allocations: 70.66 kB / 422 MB, free: 14.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.035/0.5698, allocations: 7.571 MB / 429.6 MB, free: 8.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.347e-06/0.5698, allocations: 3.984 kB / 429.6 MB, free: 8.266 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.5699, allocations: 4 kB / 429.6 MB, free: 8.262 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0009899/0.5709, allocations: 494.4 kB / 430.1 MB, free: 7.746 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.5709, allocations: 16.03 kB / 430.1 MB, free: 7.73 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.945e-05/0.571, allocations: 41.7 kB / 430.2 MB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003135/0.5714, allocations: 31.8 kB / 430.2 MB, free: 7.652 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00022/0.5716, allocations: 203.5 kB / 430.4 MB, free: 7.418 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.75e-05/0.5716, allocations: 4 kB / 430.4 MB, free: 7.414 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.187e-05/0.5717, allocations: 11.62 kB / 430.4 MB, free: 7.406 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002836/0.572, allocations: 121 kB / 430.5 MB, free: 7.293 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.572, allocations: 4 kB / 430.5 MB, free: 7.289 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.08e-05/0.572, allocations: 4 kB / 430.5 MB, free: 7.285 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.5721, allocations: 0 / 430.5 MB, free: 7.285 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001516/0.5722, allocations: 49.17 kB / 430.6 MB, free: 7.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.5733, allocations: 0.5715 MB / 431.1 MB, free: 6.672 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003261/0.5736, allocations: 128.4 kB / 431.3 MB, free: 6.539 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001267/0.5738, allocations: 58.67 kB / 431.3 MB, free: 6.484 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.5738, allocations: 0 / 431.3 MB, free: 6.484 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002959/0.5741, allocations: 145.6 kB / 431.5 MB, free: 6.344 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 3.256e-06/0.5741, allocations: 0 / 431.5 MB, free: 6.344 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005046/0.5746, allocations: 171.5 kB / 431.6 MB, free: 6.199 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.581e-05/0.5747, allocations: 126.2 kB / 431.8 MB, free: 6.055 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002443/0.575, allocations: 172.7 kB / 431.9 MB, free: 5.902 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.179e-05/0.5751, allocations: 48.31 kB / 432 MB, free: 5.855 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.5752, allocations: 172.5 kB / 432.1 MB, free: 5.695 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.611e-05/0.5753, allocations: 49.52 kB / 432.2 MB, free: 5.656 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.049e-05/0.5753, allocations: 3.5 kB / 432.2 MB, free: 5.656 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.5755, allocations: 322 kB / 432.5 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002311/0.5757, allocations: 85.86 kB / 432.6 MB, free: 5.281 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000254/0.576, allocations: 110.7 kB / 432.7 MB, free: 5.191 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002539/0.5763, allocations: 100.4 kB / 432.8 MB, free: 5.121 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.5763, allocations: 0 / 432.8 MB, free: 5.121 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000644/0.5769, allocations: 247.4 kB / 433 MB, free: 4.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.577, allocations: 12.09 kB / 433.1 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.473e-05/0.577, allocations: 4 kB / 433.1 MB, free: 4.914 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.577, allocations: 4 kB / 433.1 MB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002744/0.5773, allocations: 35.16 kB / 433.1 MB, free: 4.879 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.603e-05/0.5773, allocations: 4 kB / 433.1 MB, free: 4.875 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001741/0.5775, allocations: 23.69 kB / 433.1 MB, free: 4.855 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.87e-05/0.5776, allocations: 11.98 kB / 433.1 MB, free: 4.844 MB / 346.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.0001642/0.5778, allocations: 136.7 kB / 433.3 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.213e-05/0.5778, allocations: 15.81 kB / 433.3 MB, free: 4.695 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.432e-05/0.5779, allocations: 21.27 kB / 433.3 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.5779, allocations: 0 / 433.3 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.5779, allocations: 4 kB / 433.3 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.5779, allocations: 0 / 433.3 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002923/0.5782, allocations: 222 kB / 433.5 MB, free: 4.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.5783, allocations: 3.953 kB / 433.5 MB, free: 4.426 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.5784, allocations: 12 kB / 433.5 MB, free: 4.414 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.645e-06/0.5784, allocations: 4 kB / 433.5 MB, free: 4.41 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.052e-05/0.5784, allocations: 3.984 kB / 433.5 MB, free: 4.406 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.5784, allocations: 4 kB / 433.6 MB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.5784, allocations: 0 / 433.6 MB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004515/0.5789, allocations: 247.9 kB / 433.8 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.426e-05/0.579, allocations: 96.94 kB / 433.9 MB, free: 4.047 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.903e-05/0.5791, allocations: 15.17 kB / 433.9 MB, free: 4.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.5792, allocations: 7.984 kB / 433.9 MB, free: 4.027 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.5793, allocations: 15.36 kB / 433.9 MB, free: 4.016 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-05/0.5794, allocations: 4 kB / 433.9 MB, free: 4.012 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001678/0.5795, allocations: 143.5 kB / 434.1 MB, free: 3.891 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5795, allocations: 4 kB / 434.1 MB, free: 3.887 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008164/0.5804, allocations: 153.7 kB / 434.2 MB, free: 3.746 MB / 346.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.002296/0.5827, allocations: 1.276 MB / 435.5 MB, free: 2.531 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005216/0.5832, allocations: 221.7 kB / 435.7 MB, free: 2.348 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.5833, allocations: 4 kB / 435.7 MB, free: 2.344 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.5834, allocations: 56.86 kB / 435.8 MB, free: 2.305 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001967/0.5836, allocations: 11.95 kB / 435.8 MB, free: 2.293 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001032/0.5847, allocations: 354.6 kB / 436.1 MB, free: 1.93 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.585, allocations: 0.7281 MB / 436.9 MB, free: 1.176 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.5852, allocations: 45.17 kB / 436.9 MB, free: 1.156 MB / 346.7 MB Notification: Performance of SimCode: time 1.403e-06/0.5852, allocations: 0 / 436.9 MB, free: 1.156 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_DistributionsCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DistributionsCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DistributionsCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DistributionsFunctions.cpp:239: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_Blocks_Examples_Noise_DistributionsCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DistributionsFunctions.cpp:326: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_DistributionsCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DistributionsFunctions.cpp:520: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_DistributionsCalcHelperMain.cpp:31: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_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_trunk_cpp_Modelica_Blocks_Examples_Noise_Distributions.h:198:33: note: '_truncatedNormalNoise_P_state_' declared here StatArrayDim1 _truncatedNormalNoise_P_state_; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DistributionsCalcHelperMain.cpp:31: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_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_trunk_cpp_Modelica_Blocks_Examples_Noise_Distributions.h:199:33: note: '_uniformNoise_P_state_' declared here StatArrayDim1 _uniformNoise_P_state_; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DistributionsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DistributionsFMU.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 5 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DistributionsCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DistributionsCalcHelperMain.o] Error 1