Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.962/1.962, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.082e-05/3.087e-05, allocations: 4 kB / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1072, allocations: 50.42 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4168/0.5241, allocations: 77.33 MB / 420 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000225/0.5243, allocations: 70.58 kB / 420 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01805/0.5424, allocations: 4.195 MB / 424.2 MB, free: 13.1 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5424, allocations: 0 / 424.2 MB, free: 13.1 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.5425, allocations: 0 / 424.2 MB, free: 13.1 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007844/0.5433, allocations: 427.1 kB / 424.6 MB, free: 12.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.5433, allocations: 12.03 kB / 424.7 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.94e-05/0.5434, allocations: 37.92 kB / 424.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004117/0.5438, allocations: 47.78 kB / 424.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000211/0.5441, allocations: 191.2 kB / 424.9 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/0.5441, allocations: 3.188 kB / 424.9 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.498e-05/0.5442, allocations: 11.98 kB / 424.9 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002522/0.5444, allocations: 96.25 kB / 425 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.5444, allocations: 3.984 kB / 425 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.5445, allocations: 11.58 kB / 425 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.5445, allocations: 4 kB / 425 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001307/0.5446, allocations: 42.36 kB / 425.1 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009122/0.5456, allocations: 465 kB / 425.5 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000275/0.5459, allocations: 107 kB / 425.6 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.546, allocations: 48.41 kB / 425.7 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.165e-05/0.546, allocations: 3.953 kB / 425.7 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002827/0.5463, allocations: 130.5 kB / 425.8 MB, free: 11.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 2.254e-06/0.5463, allocations: 4 kB / 425.8 MB, free: 11.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004691/0.5468, allocations: 168 kB / 426 MB, free: 11.29 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.499e-05/0.5469, allocations: 89.09 kB / 426.1 MB, free: 11.18 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.5471, allocations: 166.3 kB / 426.2 MB, free: 11.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.765e-05/0.5472, allocations: 48.48 kB / 426.3 MB, free: 10.99 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.5474, allocations: 168.3 kB / 426.5 MB, free: 10.83 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.353e-05/0.5474, allocations: 46.95 kB / 426.5 MB, free: 10.79 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.869e-05/0.5475, allocations: 3.562 kB / 426.5 MB, free: 10.79 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.5476, allocations: 326.1 kB / 426.8 MB, free: 10.47 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002249/0.5478, allocations: 79.23 kB / 426.9 MB, free: 10.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002479/0.5481, allocations: 108.1 kB / 427 MB, free: 10.33 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00025/0.5484, allocations: 91.45 kB / 427.1 MB, free: 10.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.5484, allocations: 0 / 427.1 MB, free: 10.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006144/0.549, allocations: 241.1 kB / 427.3 MB, free: 10.08 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.549, allocations: 16.02 kB / 427.3 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-05/0.5491, allocations: 7.609 kB / 427.4 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.5491, allocations: 4 kB / 427.4 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002476/0.5494, allocations: 23.98 kB / 427.4 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.5494, allocations: 0 / 427.4 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.5496, allocations: 23.53 kB / 427.4 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.911e-05/0.5496, allocations: 15.97 kB / 427.4 MB, free: 10 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 () * 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.0001561/0.5498, allocations: 132.3 kB / 427.6 MB, free: 9.871 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.233e-05/0.5498, allocations: 15.81 kB / 427.6 MB, free: 9.855 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.966e-05/0.5499, allocations: 20.53 kB / 427.6 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.5499, allocations: 0 / 427.6 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.5499, allocations: 0 / 427.6 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.5499, allocations: 0 / 427.6 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002757/0.5502, allocations: 213.6 kB / 427.8 MB, free: 9.598 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.5502, allocations: 3.938 kB / 427.8 MB, free: 9.594 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.167e-05/0.5503, allocations: 15.94 kB / 427.8 MB, free: 9.578 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.855e-06/0.5504, allocations: 4 kB / 427.8 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.5504, allocations: 3.984 kB / 427.8 MB, free: 9.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.88e-06/0.5504, allocations: 3.953 kB / 427.8 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.5504, allocations: 0 / 427.8 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004229/0.5508, allocations: 211.1 kB / 428 MB, free: 9.367 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.355e-05/0.5509, allocations: 92.92 kB / 428.1 MB, free: 9.258 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.177e-05/0.551, allocations: 18.69 kB / 428.1 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.5511, allocations: 4 kB / 428.1 MB, free: 9.238 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.959e-05/0.5512, allocations: 14.72 kB / 428.2 MB, free: 9.227 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.571e-05/0.5513, allocations: 8 kB / 428.2 MB, free: 9.219 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001397/0.5514, allocations: 119.6 kB / 428.3 MB, free: 9.117 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5514, allocations: 7.938 kB / 428.3 MB, free: 9.109 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004498/0.5519, allocations: 59.67 kB / 428.3 MB, free: 9.055 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]) * 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.001452/0.5533, allocations: 1.007 MB / 429.4 MB, free: 8.102 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005115/0.5539, allocations: 223.5 kB / 429.6 MB, free: 7.918 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.5539, allocations: 0 / 429.6 MB, free: 7.918 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000139/0.5541, allocations: 53.61 kB / 429.6 MB, free: 7.879 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001658/0.5542, allocations: 10.47 kB / 429.6 MB, free: 7.875 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007793/0.555, allocations: 273.1 kB / 429.9 MB, free: 7.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003464/0.5554, allocations: 0.72 MB / 430.6 MB, free: 6.844 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.5555, allocations: 44.91 kB / 430.7 MB, free: 6.82 MB / 346.7 MB Notification: Performance of SimCode: time 1.072e-06/0.5555, allocations: 0 / 430.7 MB, free: 6.82 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_UniformNoiseCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoiseCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoiseCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoiseFunctions.cpp:90: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_UniformNoiseCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoiseFunctions.cpp:177: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_UniformNoiseCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoiseFunctions.cpp:371: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_UniformNoiseCalcHelperMain.cpp:31: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_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_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoise.h:198:33: note: '_uniformNoise2_P_state_' declared here StatArrayDim1 _uniformNoise2_P_state_; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoiseCalcHelperMain.cpp:31: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_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_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoise.h:197:33: note: '_uniformNoise1_P_state_' declared here StatArrayDim1 _uniformNoise1_P_state_; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoiseCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_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 5 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoiseCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoiseCalcHelperMain.o] Error 1