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.002111/0.002111, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.105/2.105, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001133/0.001133, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.568e-05/3.595e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09976/0.09983, allocations: 47.58 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5084/0.6083, allocations: 124.5 MB / 493.7 MB, free: 1.258 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003008/0.6087, allocations: 78.27 kB / 493.8 MB, free: 1.219 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6222/1.231, allocations: 79.17 MB / 0.5595 GB, free: 97.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/1.231, allocations: 0 / 0.5595 GB, free: 97.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004197/1.231, allocations: 88.88 kB / 0.5596 GB, free: 97.14 MB / 410.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.01325/1.245, allocations: 3.299 MB / 0.5628 GB, free: 95.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/1.245, allocations: 11.62 kB / 0.5628 GB, free: 95.75 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001948/1.247, allocations: 447.3 kB / 0.5633 GB, free: 95.69 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003204/1.25, allocations: 458.5 kB / 0.5637 GB, free: 95.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008839/1.259, allocations: 2.554 MB / 0.5662 GB, free: 94.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008179/1.26, allocations: 359 kB / 0.5665 GB, free: 94.85 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001535/1.261, allocations: 321.5 kB / 0.5669 GB, free: 94.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01443/1.276, allocations: 4.097 MB / 0.5709 GB, free: 93.37 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002023/1.276, allocations: 15.25 kB / 0.5709 GB, free: 93.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001036/1.277, allocations: 127.9 kB / 0.571 GB, free: 93.27 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001927/1.277, allocations: 142.8 kB / 0.5711 GB, free: 93.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01161/1.289, allocations: 3.502 MB / 0.5745 GB, free: 91.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03674/1.326, allocations: 14.04 MB / 0.5883 GB, free: 84.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005002/1.331, allocations: 2.093 MB / 0.5903 GB, free: 83.09 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003186/1.334, allocations: 1.203 MB / 0.5915 GB, free: 82.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005444/1.335, allocations: 235.4 kB / 0.5917 GB, free: 82.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003088/1.338, allocations: 1.237 MB / 0.5929 GB, free: 81.87 MB / 410.7 MB Notification: Performance of pre-optimization done (n=193): time 7.024e-06/1.338, allocations: 0 / 0.5929 GB, free: 81.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=244): time 0.0389/1.377, allocations: 10.97 MB / 0.6036 GB, free: 75.49 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005881/1.383, allocations: 3.522 MB / 0.6071 GB, free: 72.13 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00445/1.387, allocations: 1.95 MB / 0.609 GB, free: 70.33 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006718/1.388, allocations: 80.98 kB / 0.609 GB, free: 70.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001377/1.389, allocations: 1.374 MB / 0.6104 GB, free: 68.97 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001246/1.39, allocations: 0.8234 MB / 0.6112 GB, free: 68.23 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00028/1.391, allocations: 52 kB / 0.6112 GB, free: 68.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001789/1.391, allocations: 423.7 kB / 0.6116 GB, free: 67.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003089/1.394, allocations: 1.26 MB / 0.6129 GB, free: 66.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003689/1.398, allocations: 1.898 MB / 0.6147 GB, free: 64.59 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003862/1.402, allocations: 1.528 MB / 0.6162 GB, free: 63.21 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.377e-05/1.402, allocations: 5.781 kB / 0.6162 GB, free: 63.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=347) (initialization): time 0.01062/1.412, allocations: 3.687 MB / 0.6198 GB, free: 59.81 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.924e-05/1.413, allocations: 16 kB / 0.6198 GB, free: 59.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-05/1.413, allocations: 16 kB / 0.6199 GB, free: 59.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00191/1.415, allocations: 499.5 kB / 0.6203 GB, free: 59.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005319/1.42, allocations: 0.6844 MB / 0.621 GB, free: 58.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007415/1.427, allocations: 4.637 MB / 0.6255 GB, free: 54.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004211/1.432, allocations: 202.6 kB / 0.6257 GB, free: 54.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000784/1.432, allocations: 115.5 kB / 0.6258 GB, free: 53.93 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 (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.0007983/1.433, allocations: 272.2 kB / 0.6261 GB, free: 53.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009783/1.434, allocations: 260.5 kB / 0.6263 GB, free: 53.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01066/1.445, allocations: 3.557 MB / 0.6298 GB, free: 50.31 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.717e-05/1.445, allocations: 24 kB / 0.6298 GB, free: 50.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/1.445, allocations: 4 kB / 0.6298 GB, free: 50.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-05/1.445, allocations: 13.59 kB / 0.6299 GB, free: 50.29 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.02539/1.471, allocations: 9.309 MB / 0.6389 GB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.399e-05/1.471, allocations: 3.953 kB / 0.6389 GB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004285/1.475, allocations: 471.4 kB / 0.6394 GB, free: 40.83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002915/1.478, allocations: 0.6429 MB / 0.64 GB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005987/1.479, allocations: 55.97 kB / 0.6401 GB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01269/1.491, allocations: 7.707 MB / 0.6476 GB, free: 32.03 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005736/1.497, allocations: 3.294 MB / 0.6508 GB, free: 28.59 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01359/1.511, allocations: 5.363 MB / 0.6561 GB, free: 23.13 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0025/1.513, allocations: 0.6539 MB / 0.6567 GB, free: 22.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00104/1.514, allocations: 52 kB / 0.6567 GB, free: 22.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003602/1.518, allocations: 163.8 kB / 0.6569 GB, free: 22.24 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001026/1.519, allocations: 205.7 kB / 0.6571 GB, free: 22.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003366/1.519, allocations: 67.97 kB / 0.6572 GB, free: 21.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003837/1.523, allocations: 1.487 MB / 0.6586 GB, free: 20.47 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.144e-06/1.523, allocations: 112 / 0.6586 GB, free: 20.47 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00471/1.528, allocations: 0.8514 MB / 0.6594 GB, free: 19.62 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 (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.01551/1.544, allocations: 6.791 MB / 0.6661 GB, free: 12.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008775/1.552, allocations: 3.608 MB / 0.6696 GB, free: 9.137 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.649e-06/1.552, allocations: 0 / 0.6696 GB, free: 9.137 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00552/1.558, allocations: 2.199 MB / 0.6717 GB, free: 6.879 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00524/1.563, allocations: 0.5976 MB / 0.6723 GB, free: 6.293 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02242/1.586, allocations: 6.889 MB / 0.6791 GB, free: 15.33 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004517/1.59, allocations: 2.443 MB / 0.6814 GB, free: 12.86 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004381/1.595, allocations: 1.347 MB / 0.6828 GB, free: 11.51 MB / 426.7 MB Notification: Performance of SimCode: time 1.633e-06/1.595, allocations: 4 kB / 0.6828 GB, free: 11.51 MB / 426.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:3077: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