Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.NormalNoiseProperties.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.NormalNoiseProperties,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_NormalNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2/2, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004898/0.00049, allocations: 19.94 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09806/0.0986, allocations: 44.5 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3981/0.4967, allocations: 74.73 MB / 383.3 MB, free: 14.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/0.4971, allocations: 77 kB / 383.3 MB, free: 14.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02887/0.526, allocations: 6.645 MB / 390 MB, free: 13.8 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.526, allocations: 3.938 kB / 390 MB, free: 13.79 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.553e-05/0.526, allocations: 7.688 kB / 390 MB, free: 13.79 MB / 314.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.001286/0.5273, allocations: 0.5691 MB / 390.6 MB, free: 13.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.5274, allocations: 7.75 kB / 390.6 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.583e-05/0.5275, allocations: 54.53 kB / 390.6 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002576/0.5278, allocations: 30.06 kB / 390.7 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002934/0.5281, allocations: 247.5 kB / 390.9 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.566e-05/0.5281, allocations: 18.98 kB / 390.9 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.142e-05/0.5282, allocations: 18.03 kB / 390.9 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007158/0.5289, allocations: 214.1 kB / 391.1 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.529, allocations: 0 / 391.1 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.999e-05/0.529, allocations: 11.06 kB / 391.2 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.529, allocations: 3.781 kB / 391.2 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007461/0.5298, allocations: 186.2 kB / 391.3 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.5311, allocations: 0.6003 MB / 391.9 MB, free: 12.69 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001721/0.5329, allocations: 373 kB / 392.3 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.55e-05/0.5329, allocations: 7.062 kB / 392.3 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006234/0.5336, allocations: 184.1 kB / 392.5 MB, free: 12.59 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 3.798e-06/0.5336, allocations: 0 / 392.5 MB, free: 12.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.001706/0.5353, allocations: 494.5 kB / 393 MB, free: 12.44 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.5354, allocations: 69.33 kB / 393 MB, free: 12.38 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002404/0.5356, allocations: 186 kB / 393.2 MB, free: 12.28 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.185e-05/0.5357, allocations: 38.14 kB / 393.3 MB, free: 12.25 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.135e-05/0.5358, allocations: 193.5 kB / 393.4 MB, free: 12.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.435e-05/0.5359, allocations: 71.45 kB / 393.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.592e-05/0.5359, allocations: 6.625 kB / 393.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.467e-05/0.536, allocations: 336.8 kB / 393.9 MB, free: 11.72 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005694/0.5366, allocations: 144.3 kB / 394 MB, free: 11.71 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005896/0.5372, allocations: 170.8 kB / 394.2 MB, free: 11.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005797/0.5378, allocations: 154.1 kB / 394.3 MB, free: 11.69 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.5378, allocations: 0 / 394.3 MB, free: 11.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001338/0.5392, allocations: 397.3 kB / 394.7 MB, free: 11.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.5392, allocations: 7.781 kB / 394.7 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.828e-05/0.5392, allocations: 2.906 kB / 394.7 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.5393, allocations: 0 / 394.7 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005289/0.5398, allocations: 80.34 kB / 394.8 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.5398, allocations: 0 / 394.8 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003045/0.5401, allocations: 49.31 kB / 394.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.921e-05/0.5402, allocations: 14.88 kB / 394.9 MB, free: 11.61 MB / 314.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 () * Number of clocked 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.0002002/0.5404, allocations: 141.8 kB / 395 MB, free: 11.49 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.407e-05/0.5405, allocations: 23.59 kB / 395 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.777e-05/0.5406, allocations: 22.39 kB / 395 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.5406, allocations: 7.859 kB / 395 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.5406, allocations: 0 / 395 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.5406, allocations: 3.188 kB / 395 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001707/0.5423, allocations: 0.6858 MB / 395.7 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.5423, allocations: 0 / 395.7 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004825/0.5428, allocations: 62.44 kB / 395.8 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.5429, allocations: 0 / 395.8 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.097e-05/0.5429, allocations: 10.64 kB / 395.8 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.5429, allocations: 3.875 kB / 395.8 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.5429, allocations: 0 / 395.8 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001612/0.5445, allocations: 0.5336 MB / 396.3 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.524e-05/0.5446, allocations: 94.83 kB / 396.4 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.546e-05/0.5447, allocations: 9.984 kB / 396.4 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003031/0.545, allocations: 32.91 kB / 396.5 MB, free: 10.85 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.397e-05/0.5451, allocations: 15.77 kB / 396.5 MB, free: 10.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.832e-05/0.5451, allocations: 6.75 kB / 396.5 MB, free: 10.85 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001633/0.5453, allocations: 147.9 kB / 396.6 MB, free: 10.77 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5453, allocations: 3.875 kB / 396.6 MB, free: 10.77 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007519/0.5461, allocations: 129.8 kB / 396.8 MB, free: 10.74 MB / 314.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]) * Number of clocked states: 0 () * 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.002845/0.5489, allocations: 1.297 MB / 398.1 MB, free: 9.965 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001231/0.5502, allocations: 349.1 kB / 398.4 MB, free: 9.914 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.5502, allocations: 0 / 398.4 MB, free: 9.914 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005298/0.5508, allocations: 138.4 kB / 398.5 MB, free: 9.902 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003184/0.5511, allocations: 20.22 kB / 398.6 MB, free: 9.902 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.5528, allocations: 1.018 MB / 399.6 MB, free: 9.176 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/0.553, allocations: 0.7463 MB / 400.3 MB, free: 8.477 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001919/0.5532, allocations: 65.89 kB / 400.4 MB, free: 8.469 MB / 314.7 MB Notification: Performance of SimCode: time 8.62e-07/0.5532, allocations: 0 / 400.4 MB, free: 8.469 MB / 314.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"." -DUSE_LOGGER -c -o OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_NormalNoisePropertiesCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_NormalNoisePropertiesCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_NormalNoisePropertiesCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_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_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_NormalNoiseProperties.h:214:33: note: '_noise_P_state_' declared here StatArrayDim1 _noise_P_state_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_NormalNoisePropertiesCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_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 1 error generated. : recipe for target 'OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_NormalNoisePropertiesCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_NormalNoisePropertiesCalcHelperMain.o] Error 1