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.UniformNoise.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.UniformNoise,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.938/1.938, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003688/0.0003688, allocations: 12 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09905/0.09945, allocations: 44.5 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4318/0.5313, allocations: 71.98 MB / 380.5 MB, free: 15 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.5316, allocations: 70.52 kB / 380.6 MB, free: 15 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01798/0.5496, allocations: 4.158 MB / 384.7 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.5497, allocations: 0 / 384.7 MB, free: 14.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.5497, allocations: 1.375 kB / 384.7 MB, free: 14.46 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0008321/0.5506, allocations: 453.8 kB / 385.2 MB, free: 14.05 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.5506, allocations: 8.562 kB / 385.2 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.992e-05/0.5507, allocations: 43.45 kB / 385.2 MB, free: 14 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004169/0.5511, allocations: 44.11 kB / 385.3 MB, free: 14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.5513, allocations: 199.2 kB / 385.5 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.077e-05/0.5514, allocations: 3.812 kB / 385.5 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.004e-05/0.5514, allocations: 9.031 kB / 385.5 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003473/0.5518, allocations: 116 kB / 385.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.5518, allocations: 5.344 kB / 385.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.5519, allocations: 2.531 kB / 385.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.5519, allocations: 1.344 kB / 385.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002994/0.5522, allocations: 64.09 kB / 385.7 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008487/0.553, allocations: 473 kB / 386.1 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005038/0.5536, allocations: 147.5 kB / 386.3 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.705e-05/0.5536, allocations: 3.125 kB / 386.3 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003689/0.554, allocations: 148.1 kB / 386.4 MB, free: 13.24 MB / 314.7 MB Notification: Performance of pre-optimization done (n=16): time 2.535e-06/0.554, allocations: 1.406 kB / 386.4 MB, free: 13.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=16): time 0.001003/0.555, allocations: 417.9 kB / 386.8 MB, free: 13 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.789e-05/0.5551, allocations: 90.91 kB / 386.9 MB, free: 12.91 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/0.5553, allocations: 169.1 kB / 387.1 MB, free: 12.8 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.515e-05/0.5554, allocations: 43.98 kB / 387.1 MB, free: 12.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.011e-05/0.5555, allocations: 174.8 kB / 387.3 MB, free: 12.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.473e-05/0.5556, allocations: 42.8 kB / 387.3 MB, free: 12.6 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.928e-05/0.5556, allocations: 8.5 kB / 387.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.839e-05/0.5557, allocations: 320.5 kB / 387.7 MB, free: 12.28 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003153/0.556, allocations: 92.28 kB / 387.8 MB, free: 12.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000333/0.5564, allocations: 126.4 kB / 387.9 MB, free: 12.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003423/0.5567, allocations: 103.1 kB / 388 MB, free: 12.24 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.5567, allocations: 1.156 kB / 388 MB, free: 12.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008008/0.5575, allocations: 277.5 kB / 388.3 MB, free: 12.19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.5576, allocations: 5.281 kB / 388.3 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-05/0.5576, allocations: 8.516 kB / 388.3 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.5577, allocations: 9.281 kB / 388.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002254/0.5579, allocations: 23.97 kB / 388.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.5579, allocations: 2.625 kB / 388.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001928/0.5581, allocations: 17.25 kB / 388.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.231e-05/0.5582, allocations: 16.14 kB / 388.3 MB, free: 12.17 MB / 314.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 () * Number of clocked 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.0002255/0.5584, allocations: 152.6 kB / 388.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.557e-05/0.5585, allocations: 14.22 kB / 388.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.513e-05/0.5585, allocations: 13.83 kB / 388.5 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.5586, allocations: 1.938 kB / 388.5 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.5586, allocations: 0 / 388.5 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.5586, allocations: 1.281 kB / 388.5 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.5588, allocations: 222.6 kB / 388.7 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.5589, allocations: 1.188 kB / 388.7 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.976e-05/0.559, allocations: 14.52 kB / 388.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.559, allocations: 1.438 kB / 388.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.559, allocations: 11.62 kB / 388.8 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.129e-06/0.559, allocations: 5.406 kB / 388.8 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.559, allocations: 0 / 388.8 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005693/0.5596, allocations: 244.4 kB / 389 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.5e-05/0.5597, allocations: 88.78 kB / 389.1 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.616e-05/0.5597, allocations: 13.81 kB / 389.1 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.995e-05/0.5598, allocations: 7.281 kB / 389.1 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.395e-05/0.5599, allocations: 13.44 kB / 389.1 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.556e-05/0.56, allocations: 3.938 kB / 389.1 MB, free: 11.61 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001281/0.5601, allocations: 125.3 kB / 389.2 MB, free: 11.54 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5601, allocations: 5.281 kB / 389.3 MB, free: 11.53 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005775/0.5607, allocations: 74.34 kB / 389.3 MB, free: 11.51 MB / 314.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]) * Number of clocked states: 0 () * 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.001613/0.5623, allocations: 1.048 MB / 390.4 MB, free: 10.77 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007308/0.5631, allocations: 248.8 kB / 390.6 MB, free: 10.7 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.5631, allocations: 4.125 kB / 390.6 MB, free: 10.69 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002364/0.5634, allocations: 68.69 kB / 390.7 MB, free: 10.69 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001904/0.5636, allocations: 12.12 kB / 390.7 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.5647, allocations: 0.862 MB / 391.6 MB, free: 9.922 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001753/0.5649, allocations: 0.7134 MB / 392.3 MB, free: 9.227 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.498e-05/0.565, allocations: 37.25 kB / 392.3 MB, free: 9.219 MB / 314.7 MB Notification: Performance of SimCode: time 1.082e-06/0.565, allocations: 0 / 392.3 MB, free: 9.219 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_UniformNoiseCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_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_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoise.h:198:33: note: '_uniformNoise2_P_state_' declared here StatArrayDim1 _uniformNoise2_P_state_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_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_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoise.h:197:33: note: '_uniformNoise1_P_state_' declared here StatArrayDim1 _uniformNoise1_P_state_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_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 2 errors generated. : recipe for target 'OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.o] Error 1