Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoiseProperties,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.072/2.072, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.06e-05/3.066e-05, allocations: 5.406 kB / 292.2 MB, free: 8.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1084, allocations: 50.41 MB / 342.6 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4546/0.5631, allocations: 79.44 MB / 422.1 MB, free: 14.37 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/0.5634, allocations: 71.7 kB / 422.1 MB, free: 14.33 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02439/0.5878, allocations: 5.141 MB / 427.3 MB, free: 9.891 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5878, allocations: 0 / 427.3 MB, free: 9.891 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.956e-05/0.5879, allocations: 4 kB / 427.3 MB, free: 9.887 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.001252/0.5891, allocations: 0.5192 MB / 427.8 MB, free: 9.332 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.5892, allocations: 12.03 kB / 427.8 MB, free: 9.32 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/0.5893, allocations: 58.08 kB / 427.9 MB, free: 9.262 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002861/0.5896, allocations: 31.8 kB / 427.9 MB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003736/0.59, allocations: 243.5 kB / 428.1 MB, free: 8.969 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.696e-05/0.5901, allocations: 19.69 kB / 428.2 MB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.631e-05/0.5901, allocations: 19.69 kB / 428.2 MB, free: 8.945 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004428/0.5906, allocations: 161 kB / 428.3 MB, free: 8.82 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.5906, allocations: 0 / 428.3 MB, free: 8.82 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.296e-05/0.5907, allocations: 11.7 kB / 428.3 MB, free: 8.812 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.5907, allocations: 8 kB / 428.4 MB, free: 8.805 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003274/0.591, allocations: 99.05 kB / 428.5 MB, free: 8.738 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001538/0.5926, allocations: 0.6013 MB / 429.1 MB, free: 8.184 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001023/0.5936, allocations: 227.5 kB / 429.3 MB, free: 7.996 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/0.5939, allocations: 85.33 kB / 429.4 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.5939, allocations: 4 kB / 429.4 MB, free: 7.934 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003369/0.5943, allocations: 130.2 kB / 429.5 MB, free: 7.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 3.407e-06/0.5943, allocations: 0 / 429.5 MB, free: 7.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006174/0.5949, allocations: 200.3 kB / 429.7 MB, free: 7.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.595, allocations: 63.66 kB / 429.7 MB, free: 7.586 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/0.5953, allocations: 189.6 kB / 429.9 MB, free: 7.426 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.543e-05/0.5954, allocations: 35.89 kB / 430 MB, free: 7.391 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.5955, allocations: 194.2 kB / 430.2 MB, free: 7.215 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.551e-05/0.5956, allocations: 75.66 kB / 430.2 MB, free: 7.152 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-05/0.5957, allocations: 3.125 kB / 430.2 MB, free: 7.152 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.5958, allocations: 325 kB / 430.6 MB, free: 6.832 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002736/0.5961, allocations: 90.17 kB / 430.6 MB, free: 6.777 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002986/0.5964, allocations: 116.1 kB / 430.8 MB, free: 6.695 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003028/0.5967, allocations: 96.14 kB / 430.8 MB, free: 6.633 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.5967, allocations: 4 kB / 430.9 MB, free: 6.629 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007423/0.5975, allocations: 276.3 kB / 431.1 MB, free: 6.422 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.5975, allocations: 4 kB / 431.1 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.223e-05/0.5975, allocations: 3.984 kB / 431.1 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.5976, allocations: 7.938 kB / 431.1 MB, free: 6.406 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006135/0.5982, allocations: 82.73 kB / 431.2 MB, free: 6.328 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.5982, allocations: 3.938 kB / 431.2 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.5986, allocations: 50.48 kB / 431.3 MB, free: 6.281 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-05/0.5986, allocations: 15.97 kB / 431.3 MB, free: 6.266 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.0001524/0.5988, allocations: 126.4 kB / 431.4 MB, free: 6.145 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.803e-05/0.5989, allocations: 19.72 kB / 431.4 MB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.205e-05/0.599, allocations: 23.27 kB / 431.5 MB, free: 6.109 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.599, allocations: 4 kB / 431.5 MB, free: 6.105 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.607e-06/0.599, allocations: 3.953 kB / 431.5 MB, free: 6.102 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.599, allocations: 0 / 431.5 MB, free: 6.102 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001276/0.6003, allocations: 0.5746 MB / 432 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.6003, allocations: 0 / 432 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005247/0.6009, allocations: 59.33 kB / 432.1 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.6009, allocations: 3.938 kB / 432.1 MB, free: 5.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.52e-05/0.6009, allocations: 11.95 kB / 432.1 MB, free: 5.488 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.601, allocations: 0 / 432.1 MB, free: 5.488 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.601, allocations: 0 / 432.1 MB, free: 5.488 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008065/0.6018, allocations: 383 kB / 432.5 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.656e-05/0.6019, allocations: 96.81 kB / 432.6 MB, free: 5.059 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.603e-05/0.602, allocations: 7.625 kB / 432.6 MB, free: 5.055 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003442/0.6023, allocations: 39.42 kB / 432.6 MB, free: 5.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.21e-05/0.6024, allocations: 15.92 kB / 432.6 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.994e-05/0.6025, allocations: 15.11 kB / 432.7 MB, free: 4.992 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001926/0.6027, allocations: 142.1 kB / 432.8 MB, free: 4.871 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.314e-06/0.6027, allocations: 0 / 432.8 MB, free: 4.871 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005741/0.6033, allocations: 89.98 kB / 432.9 MB, free: 4.793 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.001686/0.605, allocations: 1.056 MB / 433.9 MB, free: 3.828 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006568/0.6056, allocations: 235.2 kB / 434.2 MB, free: 3.652 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.6057, allocations: 4 kB / 434.2 MB, free: 3.648 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002245/0.6059, allocations: 77.8 kB / 434.2 MB, free: 3.594 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003788/0.6063, allocations: 22.31 kB / 434.3 MB, free: 3.578 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.6075, allocations: 443.2 kB / 434.7 MB, free: 3.152 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/0.6079, allocations: 0.7481 MB / 435.4 MB, free: 2.379 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002153/0.6081, allocations: 70.28 kB / 435.5 MB, free: 2.348 MB / 346.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6081, allocations: 0 / 435.5 MB, free: 2.348 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_UniformNoisePropertiesCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoisePropertiesCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoisePropertiesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoisePropertiesFunctions.cpp:92: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_UniformNoisePropertiesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoisePropertiesFunctions.cpp:179: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_UniformNoisePropertiesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoisePropertiesFunctions.cpp:373: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_UniformNoisePropertiesCalcHelperMain.cpp:31: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoisePropertiesInitialize.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(tmp47); ^~~~~~~~~~~~~~~~~~~~~ _noise_P_state_ ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoiseProperties.h:214:33: note: '_noise_P_state_' declared here StatArrayDim1 _noise_P_state_; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoisePropertiesCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoisePropertiesFMU.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_UniformNoisePropertiesCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoisePropertiesCalcHelperMain.o] Error 1