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.00151/0.00151, allocations: 184.6 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.008/2.008, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001147/0.001147, allocations: 84.48 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004083/0.0004084, allocations: 12 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3461/0.3465, allocations: 47.56 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2113/0.5578, allocations: 124.6 MB / 499.2 MB, free: 3.941 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003354/0.5582, allocations: 91.95 kB / 499.3 MB, free: 3.852 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.58/1.138, allocations: 79.14 MB / 0.5649 GB, free: 52.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.655e-06/1.138, allocations: 0 / 0.5649 GB, free: 52.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003823/1.139, allocations: 91.88 kB / 0.565 GB, free: 52.5 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: 814 * Number of variables: 814 Notification: Performance of Generate backend data structure: time 0.01561/1.154, allocations: 3.693 MB / 0.5686 GB, free: 48.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/1.154, allocations: 16.03 kB / 0.5686 GB, free: 48.72 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002285/1.157, allocations: 450.8 kB / 0.5691 GB, free: 48.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002641/1.159, allocations: 463 kB / 0.5695 GB, free: 47.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008739/1.168, allocations: 2.573 MB / 0.572 GB, free: 45.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006907/1.169, allocations: 363.6 kB / 0.5724 GB, free: 44.81 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001315/1.17, allocations: 319.8 kB / 0.5727 GB, free: 44.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01288/1.183, allocations: 4.213 MB / 0.5768 GB, free: 40.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001823/1.183, allocations: 27.73 kB / 0.5768 GB, free: 40.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005004/1.184, allocations: 128 kB / 0.5769 GB, free: 39.99 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001752/1.184, allocations: 134.1 kB / 0.5771 GB, free: 39.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01495/1.199, allocations: 3.713 MB / 0.5807 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04146/1.241, allocations: 14.04 MB / 0.5944 GB, free: 21.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006241/1.247, allocations: 2.226 MB / 0.5966 GB, free: 19.42 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005935/1.248, allocations: 232.1 kB / 0.5968 GB, free: 19.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003974/1.252, allocations: 1.342 MB / 0.5981 GB, free: 17.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=193): time 5.751e-06/1.252, allocations: 3.938 kB / 0.5981 GB, free: 17.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=244): time 0.05051/1.302, allocations: 13.35 MB / 0.6111 GB, free: 4.309 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006148/1.308, allocations: 3.642 MB / 0.6147 GB, free: 500 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005301/1.314, allocations: 1.976 MB / 0.6166 GB, free: 14.49 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006839/1.314, allocations: 73.7 kB / 0.6167 GB, free: 14.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001875/1.316, allocations: 1.382 MB / 0.6181 GB, free: 13.01 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001567/1.318, allocations: 0.8164 MB / 0.6188 GB, free: 12.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003541/1.318, allocations: 56 kB / 0.6189 GB, free: 12.13 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003016/1.319, allocations: 420.4 kB / 0.6193 GB, free: 11.71 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004295/1.323, allocations: 1.317 MB / 0.6206 GB, free: 10.39 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005178/1.328, allocations: 1.942 MB / 0.6225 GB, free: 8.195 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005387/1.334, allocations: 1.585 MB / 0.624 GB, free: 6.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.562e-05/1.334, allocations: 11.94 kB / 0.624 GB, free: 6.578 MB / 394.7 MB Notification: Performance of matching and sorting (n=347) (initialization): time 0.01309/1.347, allocations: 3.802 MB / 0.6278 GB, free: 2.715 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.591e-05/1.347, allocations: 12 kB / 0.6278 GB, free: 2.703 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.235e-05/1.347, allocations: 20 kB / 0.6278 GB, free: 2.684 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002244/1.349, allocations: 0.5042 MB / 0.6283 GB, free: 2.168 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005825/1.355, allocations: 0.6826 MB / 0.6289 GB, free: 1.484 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01057/1.366, allocations: 4.734 MB / 0.6336 GB, free: 12.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004154/1.37, allocations: 211.7 kB / 0.6338 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005902/1.37, allocations: 108 kB / 0.6339 GB, free: 12.16 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 (316): * Single equations (assignments): 310 * 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.003654/1.374, allocations: 1.1 MB / 0.6349 GB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001026/1.375, allocations: 256.8 kB / 0.6352 GB, free: 10.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01293/1.388, allocations: 3.773 MB / 0.6389 GB, free: 6.992 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.224e-05/1.388, allocations: 24 kB / 0.6389 GB, free: 6.969 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/1.388, allocations: 4 kB / 0.6389 GB, free: 6.965 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.943e-05/1.388, allocations: 11.95 kB / 0.6389 GB, free: 6.953 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.3305/1.719, allocations: 9.482 MB / 0.6482 GB, free: 87.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.271e-05/1.719, allocations: 4.656 kB / 0.6482 GB, free: 87.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004266/1.723, allocations: 476.4 kB / 0.6486 GB, free: 87.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003097/1.726, allocations: 0.6551 MB / 0.6493 GB, free: 87.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006145/1.727, allocations: 55.53 kB / 0.6493 GB, free: 87.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01428/1.741, allocations: 7.935 MB / 0.6571 GB, free: 83.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006159/1.747, allocations: 3.391 MB / 0.6604 GB, free: 82.19 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01735/1.765, allocations: 5.717 MB / 0.666 GB, free: 81.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002538/1.767, allocations: 0.6472 MB / 0.6666 GB, free: 81.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00103/1.768, allocations: 55.33 kB / 0.6667 GB, free: 81.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003613/1.772, allocations: 166.2 kB / 0.6668 GB, free: 81.63 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001102/1.773, allocations: 203.6 kB / 0.667 GB, free: 81.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003683/1.774, allocations: 71.58 kB / 0.6671 GB, free: 81.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004563/1.778, allocations: 1.506 MB / 0.6685 GB, free: 81.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.01e-07/1.778, allocations: 0 / 0.6685 GB, free: 81.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005335/1.784, allocations: 0.8538 MB / 0.6694 GB, free: 81.48 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 (204): * Single equations (assignments): 198 * 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.0203/1.804, allocations: 7.149 MB / 0.6764 GB, free: 80.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01209/1.816, allocations: 3.818 MB / 0.6801 GB, free: 79.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/1.816, allocations: 1.219 kB / 0.6801 GB, free: 79.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007578/1.824, allocations: 2.326 MB / 0.6824 GB, free: 78.65 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005232/1.829, allocations: 0.5829 MB / 0.6829 GB, free: 78.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03059/1.86, allocations: 22.06 MB / 0.7045 GB, free: 60.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004204/1.864, allocations: 2.437 MB / 0.7069 GB, free: 59.87 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004315/1.868, allocations: 1.357 MB / 0.7082 GB, free: 58.8 MB / 410.7 MB Notification: Performance of SimCode: time 1.483e-06/1.868, allocations: 2.156 kB / 0.7082 GB, free: 58.8 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/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:3067: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/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_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoiseCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoiseCalcHelperMain.o] Error 1