Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.NormalNoiseProperties,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_NormalNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.974/1.974, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.655e-05/3.657e-05, allocations: 6.812 kB / 292.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 50.4 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4354/0.5422, allocations: 80.04 MB / 422.7 MB, free: 14.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.5425, allocations: 74.33 kB / 422.7 MB, free: 14.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03057/0.5731, allocations: 6.684 MB / 429.4 MB, free: 8.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5731, allocations: 0 / 429.4 MB, free: 8.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.5731, allocations: 4 kB / 429.4 MB, free: 8.316 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001357/0.5745, allocations: 0.5308 MB / 430 MB, free: 7.754 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.5746, allocations: 12.03 kB / 430 MB, free: 7.742 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/0.5747, allocations: 53.97 kB / 430 MB, free: 7.688 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002758/0.575, allocations: 31.72 kB / 430.1 MB, free: 7.656 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003589/0.5754, allocations: 243.8 kB / 430.3 MB, free: 7.398 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.256e-05/0.5754, allocations: 11.69 kB / 430.3 MB, free: 7.391 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.191e-05/0.5755, allocations: 27.36 kB / 430.3 MB, free: 7.371 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004501/0.576, allocations: 164.5 kB / 430.5 MB, free: 7.242 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.576, allocations: 3.953 kB / 430.5 MB, free: 7.238 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.078e-05/0.576, allocations: 7.859 kB / 430.5 MB, free: 7.234 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.168e-06/0.576, allocations: 4 kB / 430.5 MB, free: 7.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003239/0.5764, allocations: 107.1 kB / 430.6 MB, free: 7.156 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001548/0.5779, allocations: 0.5977 MB / 431.2 MB, free: 6.605 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.579, allocations: 226.3 kB / 431.4 MB, free: 6.422 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002175/0.5792, allocations: 81.78 kB / 431.5 MB, free: 6.363 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.378e-05/0.5793, allocations: 11.69 kB / 431.5 MB, free: 6.355 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003281/0.5796, allocations: 132.9 kB / 431.6 MB, free: 6.238 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 2.765e-06/0.5796, allocations: 0 / 431.6 MB, free: 6.238 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006255/0.5802, allocations: 206.5 kB / 431.8 MB, free: 6.074 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.438e-05/0.5803, allocations: 55.59 kB / 431.9 MB, free: 6.008 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002692/0.5806, allocations: 187.4 kB / 432.1 MB, free: 5.848 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.931e-05/0.5807, allocations: 33.64 kB / 432.1 MB, free: 5.812 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.5808, allocations: 196.1 kB / 432.3 MB, free: 5.637 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.111e-05/0.5809, allocations: 77.48 kB / 432.4 MB, free: 5.574 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.562e-05/0.581, allocations: 3 kB / 432.4 MB, free: 5.574 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.5811, allocations: 325.6 kB / 432.7 MB, free: 5.254 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002827/0.5814, allocations: 87.73 kB / 432.8 MB, free: 5.199 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003004/0.5817, allocations: 116.6 kB / 432.9 MB, free: 5.117 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002848/0.582, allocations: 100.9 kB / 433 MB, free: 5.051 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.582, allocations: 0 / 433 MB, free: 5.051 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007349/0.5828, allocations: 276.7 kB / 433.3 MB, free: 4.844 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.5828, allocations: 15.92 kB / 433.3 MB, free: 4.828 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/0.5828, allocations: 0 / 433.3 MB, free: 4.828 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/0.5829, allocations: 7.953 kB / 433.3 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005985/0.5835, allocations: 75.7 kB / 433.4 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.5835, allocations: 4.031 kB / 433.4 MB, free: 4.746 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003353/0.5838, allocations: 46.97 kB / 433.4 MB, free: 4.703 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.233e-05/0.5839, allocations: 10.81 kB / 433.4 MB, free: 4.695 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: 17 ($whenCondition1,$PRE.noise.state[1],noise.state[1],$PRE.noise.state[2],noise.state[2],$PRE.noise.state[3],noise.state[3],$PRE.noise.state[4],noise.state[4],$PRE.noise.r,noise.r,$PRE.noise.r_raw,noise.r_raw,globalSeed.id_impure,noise.localSeed,noise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 36 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * 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.0001549/0.5841, allocations: 129.9 kB / 433.6 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.138e-05/0.5841, allocations: 19.72 kB / 433.6 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.437e-05/0.5842, allocations: 18.84 kB / 433.6 MB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.5842, allocations: 7.953 kB / 433.6 MB, free: 4.527 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.5842, allocations: 4 kB / 433.6 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/0.5843, allocations: 3.984 kB / 433.6 MB, free: 4.52 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00129/0.5856, allocations: 0.5781 MB / 434.2 MB, free: 3.973 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.5856, allocations: 0 / 434.2 MB, free: 3.973 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005015/0.5861, allocations: 51.41 kB / 434.2 MB, free: 3.926 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.041e-05/0.5861, allocations: 7.938 kB / 434.2 MB, free: 3.918 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.881e-05/0.5862, allocations: 7.984 kB / 434.3 MB, free: 3.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.5862, allocations: 7.938 kB / 434.3 MB, free: 3.902 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.5862, allocations: 3.938 kB / 434.3 MB, free: 3.898 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008147/0.587, allocations: 381.9 kB / 434.6 MB, free: 3.586 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.228e-05/0.5871, allocations: 104.8 kB / 434.7 MB, free: 3.465 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.535e-05/0.5872, allocations: 11.02 kB / 434.8 MB, free: 3.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003318/0.5875, allocations: 35.53 kB / 434.8 MB, free: 3.426 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.997e-05/0.5876, allocations: 11.92 kB / 434.8 MB, free: 3.414 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.157e-05/0.5877, allocations: 7.984 kB / 434.8 MB, free: 3.406 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001935/0.5879, allocations: 147.4 kB / 435 MB, free: 3.281 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5879, allocations: 0 / 435 MB, free: 3.281 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000748/0.5886, allocations: 130.3 kB / 435.1 MB, free: 3.164 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.mu,variance.mu,variance.var,standardDeviation.variance.mu,standardDeviation.variance.var) * Number of discrete variables: 7 ($whenCondition1,noise.state[1],noise.state[2],noise.state[3],noise.state[4],noise.r,noise.r_raw) * Number of discrete states: 4 (noise.state[1],noise.state[2],noise.state[3],noise.state[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002176/0.5908, allocations: 1.13 MB / 436.2 MB, free: 2.121 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006731/0.5915, allocations: 242.6 kB / 436.4 MB, free: 1.938 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.5916, allocations: 0 / 436.4 MB, free: 1.938 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002218/0.5918, allocations: 76.8 kB / 436.5 MB, free: 1.883 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/0.5922, allocations: 30.84 kB / 436.6 MB, free: 1.863 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001343/0.5936, allocations: 462.2 kB / 437 MB, free: 1.418 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.5939, allocations: 0.7518 MB / 437.8 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002131/0.5942, allocations: 68.84 kB / 437.8 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5942, allocations: 0 / 437.8 MB, free: 0.6133 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_NormalNoisePropertiesCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_NormalNoisePropertiesCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_NormalNoisePropertiesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_NormalNoisePropertiesFunctions.cpp:134: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_NormalNoisePropertiesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_NormalNoisePropertiesFunctions.cpp:221: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_NormalNoisePropertiesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_NormalNoisePropertiesFunctions.cpp:415: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_NormalNoisePropertiesCalcHelperMain.cpp:31: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_NormalNoisePropertiesInitialize.cpp:366:3: error: use of undeclared identifier '$PRE_P_noise_P_state_'; did you mean '_noise_P_state_'? $PRE_P_noise_P_state_.assign(tmp70); ^~~~~~~~~~~~~~~~~~~~~ _noise_P_state_ ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_NormalNoiseProperties.h:214:33: note: '_noise_P_state_' declared here StatArrayDim1 _noise_P_state_; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_NormalNoisePropertiesCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_NormalNoisePropertiesFMU.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_Blocks_Examples_Noise_NormalNoisePropertiesCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_NormalNoisePropertiesCalcHelperMain.o] Error 1