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.ActuatorWithNoise.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.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 1.927/1.927, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003678/0.0003678, allocations: 16 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09314/0.09355, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4575/0.5511, allocations: 119.2 MB / 427.8 MB, free: 4.27 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/0.5515, allocations: 85.17 kB / 427.9 MB, free: 4.23 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3751/0.9266, allocations: 78.7 MB / 0.4947 GB, free: 13.48 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.9266, allocations: 0 / 0.4947 GB, free: 13.48 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004143/0.9271, allocations: 87.88 kB / 0.4948 GB, free: 13.39 MB / 394.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.01684/0.9439, allocations: 3.678 MB / 0.4984 GB, free: 9.645 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.883e-05/0.944, allocations: 12.03 kB / 0.4984 GB, free: 9.633 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002396/0.9464, allocations: 450.7 kB / 0.4988 GB, free: 9.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003434/0.9499, allocations: 455.5 kB / 0.4992 GB, free: 8.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0122/0.9621, allocations: 2.569 MB / 0.5018 GB, free: 6.109 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001127/0.9633, allocations: 359.2 kB / 0.5021 GB, free: 5.738 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001685/0.965, allocations: 311.9 kB / 0.5024 GB, free: 5.434 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03843/1.003, allocations: 4.204 MB / 0.5065 GB, free: 1.086 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001784/1.004, allocations: 15.83 kB / 0.5065 GB, free: 1.07 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000756/1.004, allocations: 136 kB / 0.5066 GB, free: 0.9375 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003015/1.005, allocations: 134.1 kB / 0.5068 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02191/1.027, allocations: 3.682 MB / 0.5104 GB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3126/1.339, allocations: 13.98 MB / 0.524 GB, free: 86.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005924/1.345, allocations: 2.194 MB / 0.5262 GB, free: 86.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005843/1.346, allocations: 227.6 kB / 0.5264 GB, free: 85.84 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004574/1.351, allocations: 1.334 MB / 0.5277 GB, free: 85.73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 6.001e-06/1.351, allocations: 2.297 kB / 0.5277 GB, free: 85.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=243): time 0.05744/1.408, allocations: 13.32 MB / 0.5407 GB, free: 84.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009121/1.417, allocations: 3.646 MB / 0.5442 GB, free: 82.67 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00694/1.424, allocations: 1.961 MB / 0.5462 GB, free: 82.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007446/1.425, allocations: 77.2 kB / 0.5462 GB, free: 82.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002077/1.427, allocations: 1.378 MB / 0.5476 GB, free: 81.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001713/1.429, allocations: 0.8147 MB / 0.5484 GB, free: 81.49 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004156/1.429, allocations: 51.75 kB / 0.5484 GB, free: 81.49 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002886/1.43, allocations: 417.7 kB / 0.5488 GB, free: 81.18 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005426/1.435, allocations: 1.317 MB / 0.5501 GB, free: 81.17 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005826/1.441, allocations: 1.933 MB / 0.552 GB, free: 80.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005839/1.447, allocations: 1.568 MB / 0.5535 GB, free: 80.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.733e-05/1.447, allocations: 9.531 kB / 0.5535 GB, free: 80.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=346) (initialization): time 0.01461/1.462, allocations: 3.784 MB / 0.5572 GB, free: 80.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.434e-05/1.462, allocations: 13.22 kB / 0.5572 GB, free: 80.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.34e-05/1.462, allocations: 17.69 kB / 0.5573 GB, free: 80.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002677/1.465, allocations: 0.507 MB / 0.5578 GB, free: 80.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006892/1.471, allocations: 0.6795 MB / 0.5584 GB, free: 80.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009237/1.481, allocations: 4.731 MB / 0.563 GB, free: 77.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00415/1.485, allocations: 199.1 kB / 0.5632 GB, free: 77.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006672/1.486, allocations: 118.3 kB / 0.5633 GB, free: 77.57 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 () * Number of clocked 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.003544/1.489, allocations: 1.086 MB / 0.5644 GB, free: 77.45 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001068/1.49, allocations: 263.3 kB / 0.5647 GB, free: 77.31 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0121/1.502, allocations: 3.757 MB / 0.5683 GB, free: 76.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.641e-05/1.502, allocations: 21.97 kB / 0.5683 GB, free: 76.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/1.503, allocations: 3.969 kB / 0.5684 GB, free: 76.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.005e-05/1.503, allocations: 14.98 kB / 0.5684 GB, free: 76.36 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.02666/1.529, allocations: 9.449 MB / 0.5776 GB, free: 72.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-05/1.529, allocations: 0 / 0.5776 GB, free: 72.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00411/1.533, allocations: 473.9 kB / 0.578 GB, free: 72.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002882/1.536, allocations: 0.6465 MB / 0.5787 GB, free: 72.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005183/1.537, allocations: 60.48 kB / 0.5787 GB, free: 72.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01345/1.55, allocations: 7.939 MB / 0.5865 GB, free: 66.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005844/1.556, allocations: 3.41 MB / 0.5898 GB, free: 64.14 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01597/1.572, allocations: 5.689 MB / 0.5954 GB, free: 61.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002488/1.575, allocations: 0.6427 MB / 0.596 GB, free: 61.18 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001021/1.576, allocations: 51.75 kB / 0.5961 GB, free: 61.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003517/1.579, allocations: 169.9 kB / 0.5962 GB, free: 61.11 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009278/1.58, allocations: 208.9 kB / 0.5964 GB, free: 61.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002737/1.581, allocations: 69.95 kB / 0.5965 GB, free: 61.06 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003875/1.585, allocations: 1.498 MB / 0.5979 GB, free: 60.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.02e-07/1.585, allocations: 0 / 0.5979 GB, free: 60.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004958/1.59, allocations: 0.8493 MB / 0.5988 GB, free: 60.36 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) * Number of clocked states: 0 () * 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.01825/1.608, allocations: 7.135 MB / 0.6057 GB, free: 56.83 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01031/1.618, allocations: 3.794 MB / 0.6094 GB, free: 54.64 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/1.618, allocations: 0 / 0.6094 GB, free: 54.64 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006317/1.625, allocations: 2.311 MB / 0.6117 GB, free: 52.55 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004895/1.63, allocations: 0.5592 MB / 0.6122 GB, free: 52.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02704/1.657, allocations: 22.03 MB / 0.6338 GB, free: 30.67 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003141/1.66, allocations: 2.435 MB / 0.6361 GB, free: 28.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003584/1.664, allocations: 1.338 MB / 0.6374 GB, free: 27.53 MB / 410.7 MB Notification: Performance of SimCode: time 1.222e-06/1.664, allocations: 3.938 kB / 0.6375 GB, free: 27.52 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:3051: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