Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.05/2.05, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.043e-05/4.047e-05, allocations: 4 kB / 255.4 MB, free: 3.117 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1005, allocations: 44.5 MB / 299.9 MB, free: 6.559 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.485/0.5855, allocations: 119.1 MB / 419.1 MB, free: 6.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00028/0.5859, allocations: 79.39 kB / 419.1 MB, free: 6.398 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3435/0.9294, allocations: 78.74 MB / 497.9 MB, free: 2.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.9295, allocations: 0 / 497.9 MB, free: 2.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005071/0.93, allocations: 99.8 kB / 498 MB, free: 2.832 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 811 * Number of variables: 811 Notification: Performance of Generate backend data structure: time 0.0151/0.9451, allocations: 3.275 MB / 0.4895 GB, free: 15.49 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.941e-05/0.9452, allocations: 8.031 kB / 0.4895 GB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002277/0.9475, allocations: 442.7 kB / 0.4899 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003787/0.9513, allocations: 463.4 kB / 0.4904 GB, free: 14.58 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0105/0.9619, allocations: 2.534 MB / 0.4929 GB, free: 12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001001/0.9629, allocations: 359.2 kB / 0.4932 GB, free: 11.62 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001848/0.9648, allocations: 315.9 kB / 0.4935 GB, free: 11.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01583/0.9807, allocations: 4.076 MB / 0.4975 GB, free: 7.098 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002159/0.9809, allocations: 11.91 kB / 0.4975 GB, free: 7.086 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000885/0.9818, allocations: 128 kB / 0.4976 GB, free: 6.961 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002293/0.9821, allocations: 146 kB / 0.4978 GB, free: 6.816 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01294/0.995, allocations: 3.48 MB / 0.5012 GB, free: 3.328 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0439/1.039, allocations: 13.99 MB / 0.5148 GB, free: 4.969 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006195/1.045, allocations: 2.08 MB / 0.5168 GB, free: 2.805 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003912/1.049, allocations: 1.194 MB / 0.518 GB, free: 1.609 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007525/1.05, allocations: 228.1 kB / 0.5182 GB, free: 1.352 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004209/1.054, allocations: 1.236 MB / 0.5194 GB, free: 92 kB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 8.395e-06/1.054, allocations: 8 kB / 0.5194 GB, free: 84 kB / 410.7 MB Notification: Performance of matching and sorting (n=243): time 0.3329/1.387, allocations: 10.94 MB / 0.5301 GB, free: 88.46 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006804/1.394, allocations: 3.52 MB / 0.5336 GB, free: 86.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005247/1.399, allocations: 1.933 MB / 0.5355 GB, free: 86.72 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006887/1.4, allocations: 82.55 kB / 0.5355 GB, free: 86.69 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001736/1.402, allocations: 1.37 MB / 0.5369 GB, free: 86.17 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001398/1.403, allocations: 0.8159 MB / 0.5377 GB, free: 85.75 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003521/1.404, allocations: 52.59 kB / 0.5377 GB, free: 85.75 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002203/1.404, allocations: 420.2 kB / 0.5381 GB, free: 85.44 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003576/1.408, allocations: 1.256 MB / 0.5393 GB, free: 85.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004236/1.412, allocations: 1.896 MB / 0.5412 GB, free: 84.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004169/1.416, allocations: 1.523 MB / 0.5427 GB, free: 84.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.385e-05/1.416, allocations: 3.875 kB / 0.5427 GB, free: 84.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=346) (initialization): time 0.01093/1.427, allocations: 3.675 MB / 0.5463 GB, free: 84.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.287e-05/1.427, allocations: 11.03 kB / 0.5463 GB, free: 84.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-05/1.427, allocations: 19.16 kB / 0.5463 GB, free: 84.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002092/1.429, allocations: 0.4931 MB / 0.5468 GB, free: 84.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005491/1.435, allocations: 0.6763 MB / 0.5474 GB, free: 84.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00783/1.443, allocations: 4.633 MB / 0.552 GB, free: 81.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004334/1.447, allocations: 200.9 kB / 0.5522 GB, free: 81.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008327/1.448, allocations: 113 kB / 0.5523 GB, free: 81.83 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition1,$PRE.motor.uniformNoise.state[1],motor.uniformNoise.state[1],$PRE.motor.uniformNoise.state[2],motor.uniformNoise.state[2],$PRE.motor.uniformNoise.state[3],motor.uniformNoise.state[3],$PRE.motor.uniformNoise.state[4],motor.uniformNoise.state[4],$PRE.motor.uniformNoise.r,motor.uniformNoise.r,$PRE.motor.uniformNoise.r_raw,motor.uniformNoise.r_raw,gearbox.lossyGear.tau_aPos,gearbox.lossyGear.startForward,gearbox.lossyGear.startBackward,gearbox.lossyGear.locked,$PRE.gearbox.lossyGear.mode,gearbox.lossyGear.mode,gearbox.lossyGear.ideal,motor.uniformNoise.localSeed,motor.uniformNoise.actualGlobalSeed,globalSeed.seed,globalSeed.id_impure) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (315): * Single equations (assignments): 309 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0008644/1.449, allocations: 273.8 kB / 0.5525 GB, free: 81.72 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001093/1.45, allocations: 263.2 kB / 0.5528 GB, free: 81.59 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01105/1.461, allocations: 3.556 MB / 0.5563 GB, free: 81.42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.39e-05/1.461, allocations: 26.81 kB / 0.5563 GB, free: 81.42 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.674e-05/1.461, allocations: 3.906 kB / 0.5563 GB, free: 81.42 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.34e-05/1.461, allocations: 14.14 kB / 0.5563 GB, free: 81.42 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02814/1.489, allocations: 9.255 MB / 0.5653 GB, free: 78.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.587e-05/1.49, allocations: 3.344 kB / 0.5653 GB, free: 78.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004284/1.494, allocations: 465.9 kB / 0.5658 GB, free: 78.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002933/1.497, allocations: 0.6514 MB / 0.5664 GB, free: 78.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000624/1.498, allocations: 53.98 kB / 0.5665 GB, free: 78.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01312/1.511, allocations: 7.707 MB / 0.574 GB, free: 72.47 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005883/1.517, allocations: 3.29 MB / 0.5772 GB, free: 70.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0146/1.531, allocations: 5.349 MB / 0.5824 GB, free: 67.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002651/1.534, allocations: 0.6434 MB / 0.5831 GB, free: 67.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00114/1.535, allocations: 54.88 kB / 0.5831 GB, free: 67.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00366/1.539, allocations: 163 kB / 0.5833 GB, free: 67.36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009871/1.54, allocations: 201.7 kB / 0.5835 GB, free: 67.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002883/1.54, allocations: 69.72 kB / 0.5835 GB, free: 67.31 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004051/1.544, allocations: 1.475 MB / 0.585 GB, free: 66.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.61e-07/1.544, allocations: 0 / 0.585 GB, free: 66.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005268/1.55, allocations: 0.8575 MB / 0.5858 GB, free: 66.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 ($STATESET1.x,controller.speed_PI.x,controller.positionToSpeed.x,controller.position_PI.x,gearbox.phi_rel,gearbox.w_rel,slewRateLimiter.y,rodMass.s,rodMass.v,elastoGap.s_rel,elastoGap.v_rel) * Number of discrete variables: 12 ($whenCondition1,motor.uniformNoise.state[1],motor.uniformNoise.state[2],motor.uniformNoise.state[3],motor.uniformNoise.state[4],motor.uniformNoise.r,motor.uniformNoise.r_raw,gearbox.lossyGear.tau_aPos,gearbox.lossyGear.startForward,gearbox.lossyGear.startBackward,gearbox.lossyGear.locked,gearbox.lossyGear.mode) * Number of discrete states: 5 (motor.uniformNoise.state[1],motor.uniformNoise.state[2],motor.uniformNoise.state[3],motor.uniformNoise.state[4],gearbox.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (203): * Single equations (assignments): 197 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(3,100.0%) 11} * Non-linear torn systems: 1 {2 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.01625/1.566, allocations: 6.768 MB / 0.5924 GB, free: 63.21 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009513/1.575, allocations: 3.606 MB / 0.5959 GB, free: 61.61 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/1.576, allocations: 0 / 0.5959 GB, free: 61.61 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006196/1.582, allocations: 2.198 MB / 0.5981 GB, free: 60.53 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005395/1.587, allocations: 0.5724 MB / 0.5986 GB, free: 60.37 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0238/1.611, allocations: 6.87 MB / 0.6054 GB, free: 55.08 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003706/1.615, allocations: 2.423 MB / 0.6077 GB, free: 53.17 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003901/1.619, allocations: 1.341 MB / 0.609 GB, free: 51.94 MB / 410.7 MB Notification: Performance of SimCode: time 1.794e-06/1.619, allocations: 0 / 0.609 GB, free: 51.94 MB / 410.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_ActuatorWithNoiseCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoiseCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoiseCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoiseInitialize.cpp:3064:3: error: use of undeclared identifier '$PRE_P_motor_P_uniformNoise_P_state_'; did you mean '_motor_P_uniformNoise_P_state_'? $PRE_P_motor_P_uniformNoise_P_state_.assign(tmp178); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _motor_P_uniformNoise_P_state_ ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoise.h:481:33: note: '_motor_P_uniformNoise_P_state_' declared here StatArrayDim1 _motor_P_uniformNoise_P_state_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoiseCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoiseFMU.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_ActuatorWithNoiseCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoiseCalcHelperMain.o] Error 1