Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001432/0.001437, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.964/1.964, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001136/0.001136, allocations: 87.64 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.325e-05/2.334e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3376/0.3377, allocations: 47.57 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2116/0.5494, allocations: 123.9 MB / 486.3 MB, free: 10.25 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003099/0.5497, allocations: 82.7 kB / 486.4 MB, free: 10.18 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6022/1.152, allocations: 78.3 MB / 0.5514 GB, free: 92.27 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.984e-06/1.152, allocations: 0 / 0.5514 GB, free: 92.27 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003906/1.152, allocations: 87.88 kB / 0.5515 GB, free: 92.19 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 814 * Number of variables: 814 Notification: Performance of Generate backend data structure: time 0.01302/1.165, allocations: 3.299 MB / 0.5547 GB, free: 88.83 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/1.166, allocations: 11.97 kB / 0.5548 GB, free: 88.82 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003255/1.169, allocations: 460.1 kB / 0.5552 GB, free: 88.37 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008483/1.177, allocations: 2.555 MB / 0.5577 GB, free: 85.8 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006841/1.178, allocations: 267.2 kB / 0.5579 GB, free: 85.52 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001392/1.179, allocations: 187.9 kB / 0.5581 GB, free: 85.34 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0102/1.19, allocations: 3.308 MB / 0.5614 GB, free: 82.02 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01173/1.201, allocations: 3.642 MB / 0.5649 GB, free: 78.24 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001512/1.202, allocations: 15.91 kB / 0.5649 GB, free: 78.23 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004578/1.202, allocations: 0 / 0.5649 GB, free: 78.23 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001709/1.202, allocations: 146.1 kB / 0.5651 GB, free: 78.08 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03529/1.238, allocations: 13.42 MB / 0.5782 GB, free: 64.43 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004649/1.242, allocations: 2.052 MB / 0.5802 GB, free: 62.29 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002901/1.245, allocations: 1.143 MB / 0.5813 GB, free: 61.15 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000522/1.246, allocations: 229 kB / 0.5815 GB, free: 60.9 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0029/1.249, allocations: 1.209 MB / 0.5827 GB, free: 59.66 MB / 395.1 MB Notification: Performance of pre-optimization done (n=197): time 5.59e-06/1.249, allocations: 3.938 kB / 0.5827 GB, free: 59.66 MB / 395.1 MB Notification: Performance of matching and sorting (n=250): time 0.03156/1.28, allocations: 9.474 MB / 0.5919 GB, free: 50.16 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.654e-05/1.281, allocations: 192.2 kB / 0.5921 GB, free: 49.94 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004123/1.285, allocations: 1.639 MB / 0.5937 GB, free: 48.27 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006608/1.285, allocations: 37.69 kB / 0.5938 GB, free: 48.22 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001515/1.287, allocations: 1.405 MB / 0.5951 GB, free: 46.8 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001317/1.288, allocations: 0.8045 MB / 0.5959 GB, free: 45.98 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002997/1.289, allocations: 0 / 0.5959 GB, free: 45.98 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0002348/1.289, allocations: 420.5 kB / 0.5963 GB, free: 45.57 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003153/1.292, allocations: 1.228 MB / 0.5975 GB, free: 44.34 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003879/1.296, allocations: 1.845 MB / 0.5993 GB, free: 42.24 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004208/1.3, allocations: 1.51 MB / 0.6008 GB, free: 40.71 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.11e-05/1.3, allocations: 4 kB / 0.6008 GB, free: 40.71 MB / 395.1 MB Notification: Performance of matching and sorting (n=353) (initialization): time 0.01021/1.311, allocations: 3.49 MB / 0.6042 GB, free: 37.16 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.331e-05/1.311, allocations: 12 kB / 0.6042 GB, free: 37.15 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.222e-05/1.311, allocations: 23.98 kB / 0.6042 GB, free: 37.12 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001928/1.313, allocations: 499.5 kB / 0.6047 GB, free: 36.62 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005513/1.318, allocations: 0.6942 MB / 0.6054 GB, free: 35.93 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007193/1.325, allocations: 4.478 MB / 0.6098 GB, free: 31.23 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004138/1.33, allocations: 151.8 kB / 0.6099 GB, free: 31.08 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008062/1.331, allocations: 116 kB / 0.61 GB, free: 30.97 MB / 395.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gearbox.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gearbox.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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 (322): * Single equations (assignments): 316 * 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.0008743/1.331, allocations: 191.8 kB / 0.6102 GB, free: 30.78 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0095/1.341, allocations: 3.18 MB / 0.6133 GB, free: 27.58 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001213/1.342, allocations: 245 kB / 0.6136 GB, free: 27.34 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01009/1.352, allocations: 3.4 MB / 0.6169 GB, free: 23.91 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.223e-05/1.352, allocations: 24 kB / 0.6169 GB, free: 23.89 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.421e-05/1.352, allocations: 4 kB / 0.6169 GB, free: 23.88 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.737e-05/1.352, allocations: 15.95 kB / 0.6169 GB, free: 23.87 MB / 395.1 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.02642/1.379, allocations: 8.9 MB / 0.6256 GB, free: 14.89 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-05/1.379, allocations: 4.188 kB / 0.6256 GB, free: 14.89 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004363/1.383, allocations: 491.3 kB / 0.6261 GB, free: 14.41 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002847/1.386, allocations: 0.6357 MB / 0.6267 GB, free: 13.76 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006158/1.387, allocations: 23.97 kB / 0.6267 GB, free: 13.73 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01233/1.399, allocations: 7.503 MB / 0.634 GB, free: 5.895 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005603/1.405, allocations: 3.238 MB / 0.6372 GB, free: 2.531 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01542/1.42, allocations: 5.293 MB / 0.6424 GB, free: 13.13 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002986/1.423, allocations: 0.6306 MB / 0.643 GB, free: 12.48 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001323/1.425, allocations: 16 kB / 0.643 GB, free: 12.46 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003873/1.429, allocations: 127.8 kB / 0.6431 GB, free: 12.34 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001116/1.43, allocations: 197.7 kB / 0.6433 GB, free: 12.14 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004416/1.43, allocations: 72.08 kB / 0.6434 GB, free: 12.07 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.003807/1.434, allocations: 1.226 MB / 0.6446 GB, free: 10.82 MB / 411.1 MB Notification: Performance of sort global known variables: time 6.51e-07/1.434, allocations: 4 kB / 0.6446 GB, free: 10.82 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.005484/1.44, allocations: 0.738 MB / 0.6453 GB, free: 10.08 MB / 411.1 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 (208): * Single equations (assignments): 202 * 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.01901/1.459, allocations: 6.695 MB / 0.6518 GB, free: 3.352 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.3194/1.778, allocations: 3.499 MB / 0.6553 GB, free: 103.1 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 1.224e-05/1.778, allocations: 0 / 0.6553 GB, free: 103.1 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006073/1.785, allocations: 2.149 MB / 0.6574 GB, free: 102.7 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005095/1.79, allocations: 478.1 kB / 0.6578 GB, free: 102.7 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02564/1.815, allocations: 6.703 MB / 0.6644 GB, free: 101.3 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005038/1.82, allocations: 2.428 MB / 0.6667 GB, free: 100.6 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004356/1.825, allocations: 1.36 MB / 0.6681 GB, free: 100.6 MB / 411.1 MB Notification: Performance of SimCode: time 2.054e-06/1.825, allocations: 0.625 kB / 0.6681 GB, free: 100.6 MB / 411.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoiseCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoiseCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoiseCalcHelperMain.cpp:31: ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoiseInitialize.cpp:3137: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(tmp180); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _motor_P_uniformNoise_P_state_ ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoise.h:482:33: note: '_motor_P_uniformNoise_P_state_' declared here StatArrayDim1 _motor_P_uniformNoise_P_state_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoiseCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoiseFMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoiseCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoiseCalcHelperMain.o] Error 1