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.UniformNoiseProperties.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.UniformNoiseProperties,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.996/1.996, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003725/0.0003726, allocations: 11.98 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09719/0.0976, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3933/0.4909, allocations: 73.72 MB / 382.3 MB, free: 14.99 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.4913, allocations: 74.61 kB / 382.3 MB, free: 14.99 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02202/0.5133, allocations: 4.904 MB / 387.2 MB, free: 14.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.5134, allocations: 4 kB / 387.2 MB, free: 14.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.942e-05/0.5134, allocations: 3.938 kB / 387.2 MB, free: 14.38 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.001432/0.5148, allocations: 0.5422 MB / 387.8 MB, free: 13.93 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.5149, allocations: 8.938 kB / 387.8 MB, free: 13.93 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001278/0.5151, allocations: 53.12 kB / 387.9 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002993/0.5154, allocations: 35.83 kB / 387.9 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003583/0.5157, allocations: 242.8 kB / 388.1 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.906e-05/0.5158, allocations: 15.53 kB / 388.1 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.598e-05/0.5159, allocations: 27.7 kB / 388.2 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000829/0.5167, allocations: 219.7 kB / 388.4 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.5168, allocations: 4 kB / 388.4 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.083e-05/0.5168, allocations: 8.125 kB / 388.4 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.659e-06/0.5168, allocations: 3.656 kB / 388.4 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008028/0.5176, allocations: 178.1 kB / 388.6 MB, free: 13.6 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001421/0.5191, allocations: 0.6095 MB / 389.2 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.5209, allocations: 377.8 kB / 389.5 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.944e-05/0.5209, allocations: 0 / 389.5 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006282/0.5216, allocations: 184.1 kB / 389.7 MB, free: 13.19 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 2.796e-06/0.5216, allocations: 0 / 389.7 MB, free: 13.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.001712/0.5233, allocations: 496.1 kB / 390.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/0.5234, allocations: 62.78 kB / 390.3 MB, free: 12.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/0.5237, allocations: 192.4 kB / 390.5 MB, free: 12.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.2e-05/0.5237, allocations: 38.03 kB / 390.5 MB, free: 12.85 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.493e-05/0.5238, allocations: 200.8 kB / 390.7 MB, free: 12.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.249e-05/0.5239, allocations: 72.58 kB / 390.8 MB, free: 12.64 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.57e-05/0.524, allocations: 3.812 kB / 390.8 MB, free: 12.64 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.488e-05/0.524, allocations: 330 kB / 391.1 MB, free: 12.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000615/0.5247, allocations: 148.4 kB / 391.2 MB, free: 12.32 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005904/0.5253, allocations: 167.2 kB / 391.4 MB, free: 12.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005883/0.5259, allocations: 149.8 kB / 391.5 MB, free: 12.29 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.239e-06/0.5259, allocations: 1.438 kB / 391.5 MB, free: 12.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00134/0.5272, allocations: 398.8 kB / 391.9 MB, free: 12.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.5273, allocations: 6.641 kB / 391.9 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.761e-05/0.5273, allocations: 3.906 kB / 391.9 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.208e-05/0.5273, allocations: 0 / 391.9 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005307/0.5279, allocations: 81.64 kB / 392 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.5279, allocations: 0 / 392 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003442/0.5283, allocations: 47.42 kB / 392.1 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-05/0.5283, allocations: 7.719 kB / 392.1 MB, free: 12.21 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.0002131/0.5286, allocations: 153.1 kB / 392.2 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.611e-05/0.5286, allocations: 19.5 kB / 392.2 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.958e-05/0.5287, allocations: 21.88 kB / 392.3 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.5287, allocations: 3.875 kB / 392.3 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.5287, allocations: 4 kB / 392.3 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.5288, allocations: 6.75 kB / 392.3 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001738/0.5305, allocations: 0.693 MB / 393 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.5305, allocations: 0 / 393 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004613/0.531, allocations: 50.23 kB / 393 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/0.531, allocations: 3.938 kB / 393 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.176e-05/0.5311, allocations: 7.625 kB / 393 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.5311, allocations: 3.906 kB / 393 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.5311, allocations: 6.203 kB / 393 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0017/0.5328, allocations: 0.5303 MB / 393.6 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.067e-05/0.5329, allocations: 99.08 kB / 393.7 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.808e-05/0.533, allocations: 10.19 kB / 393.7 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003121/0.5333, allocations: 24.84 kB / 393.7 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.717e-05/0.5334, allocations: 21.58 kB / 393.7 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.027e-05/0.5334, allocations: 3.781 kB / 393.7 MB, free: 11.45 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001718/0.5336, allocations: 153.8 kB / 393.9 MB, free: 11.37 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5336, allocations: 0 / 393.9 MB, free: 11.37 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006031/0.5342, allocations: 95 kB / 394 MB, free: 11.35 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.002436/0.5367, allocations: 1.214 MB / 395.2 MB, free: 10.61 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001266/0.538, allocations: 350 kB / 395.5 MB, free: 10.55 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.538, allocations: 0 / 395.5 MB, free: 10.55 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005187/0.5386, allocations: 132.4 kB / 395.7 MB, free: 10.55 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000339/0.5389, allocations: 19.12 kB / 395.7 MB, free: 10.55 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001717/0.5406, allocations: 0.9943 MB / 396.7 MB, free: 9.832 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002016/0.5409, allocations: 0.7488 MB / 397.4 MB, free: 9.133 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001966/0.5411, allocations: 61.86 kB / 397.5 MB, free: 9.125 MB / 314.7 MB Notification: Performance of SimCode: time 9.22e-07/0.5411, allocations: 0 / 397.5 MB, free: 9.125 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_UniformNoisePropertiesCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoisePropertiesCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoisePropertiesCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_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_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseProperties.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_UniformNoisePropertiesCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_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 1 error generated. : recipe for target 'OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoisePropertiesCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoisePropertiesCalcHelperMain.o] Error 1