Running command: translateModel(Modelica.Blocks.Examples.Noise.ActuatorWithNoise,tolerance=1e-05,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise") Notification: Performance of loadModel(Modelica): time 1.931/1.931, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.596e-05/3.615e-05, allocations: 4 kB / 292.1 MB, free: 8.816 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08692/0.08698, allocations: 50.41 MB / 342.5 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4177/0.5047, allocations: 125.3 MB / 467.9 MB, free: 1.438 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.505, allocations: 82.14 kB / 467.9 MB, free: 1.398 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5503/1.055, allocations: 79.59 MB / 0.5347 GB, free: 101 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.399e-06/1.055, allocations: 0 / 0.5347 GB, free: 101 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003668/1.056, allocations: 89.23 kB / 0.5348 GB, free: 101 MB / 442.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.01086/1.067, allocations: 3.301 MB / 0.538 GB, free: 99.74 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/1.067, allocations: 9.375 kB / 0.538 GB, free: 99.74 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002791/1.07, allocations: 461.9 kB / 0.5384 GB, free: 99.53 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007294/1.077, allocations: 2.56 MB / 0.5409 GB, free: 99.02 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006952/1.078, allocations: 354.7 kB / 0.5413 GB, free: 98.92 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001286/1.079, allocations: 326.9 kB / 0.5416 GB, free: 98.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01169/1.091, allocations: 4.047 MB / 0.5455 GB, free: 98.48 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000165/1.091, allocations: 12.09 kB / 0.5456 GB, free: 98.48 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000724/1.092, allocations: 129.7 kB / 0.5457 GB, free: 98.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001762/1.092, allocations: 140.9 kB / 0.5458 GB, free: 98.47 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009811/1.102, allocations: 3.453 MB / 0.5492 GB, free: 98.46 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03005/1.132, allocations: 14.03 MB / 0.5629 GB, free: 94.38 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004069/1.136, allocations: 2.072 MB / 0.5649 GB, free: 93.28 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002486/1.138, allocations: 1.201 MB / 0.5661 GB, free: 92.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004134/1.139, allocations: 228.8 kB / 0.5663 GB, free: 92.61 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002584/1.141, allocations: 1.239 MB / 0.5675 GB, free: 92.07 MB / 442.7 MB Notification: Performance of pre-optimization done (n=193): time 6.288e-06/1.141, allocations: 0 / 0.5675 GB, free: 92.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=244): time 0.03118/1.173, allocations: 10.96 MB / 0.5782 GB, free: 87.81 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005022/1.178, allocations: 3.524 MB / 0.5817 GB, free: 85.47 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003919/1.182, allocations: 1.958 MB / 0.5836 GB, free: 84.67 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005119/1.182, allocations: 76.86 kB / 0.5836 GB, free: 84.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001168/1.183, allocations: 1.389 MB / 0.585 GB, free: 83.46 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009229/1.184, allocations: 0.8184 MB / 0.5858 GB, free: 82.83 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002389/1.185, allocations: 54.78 kB / 0.5859 GB, free: 82.79 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/1.185, allocations: 415.9 kB / 0.5863 GB, free: 82.43 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002698/1.187, allocations: 1.263 MB / 0.5875 GB, free: 81.91 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003159/1.191, allocations: 1.88 MB / 0.5893 GB, free: 80.65 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003287/1.194, allocations: 1.533 MB / 0.5908 GB, free: 80 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.63e-05/1.194, allocations: 6.938 kB / 0.5908 GB, free: 80 MB / 442.7 MB Notification: Performance of matching and sorting (n=347) (initialization): time 0.008303/1.202, allocations: 3.637 MB / 0.5944 GB, free: 78.59 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.69e-05/1.202, allocations: 14.19 kB / 0.5944 GB, free: 78.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.974e-05/1.202, allocations: 18.34 kB / 0.5944 GB, free: 78.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001688/1.204, allocations: 0.489 MB / 0.5949 GB, free: 78.44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004269/1.208, allocations: 0.6951 MB / 0.5956 GB, free: 78.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006493/1.215, allocations: 4.64 MB / 0.6001 GB, free: 74.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003177/1.218, allocations: 199.1 kB / 0.6003 GB, free: 74.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005096/1.219, allocations: 120.2 kB / 0.6004 GB, free: 74.73 MB / 442.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.000648/1.219, allocations: 268.2 kB / 0.6007 GB, free: 74.49 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007066/1.22, allocations: 266.8 kB / 0.6009 GB, free: 74.36 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008282/1.228, allocations: 3.539 MB / 0.6044 GB, free: 72.89 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.383e-05/1.228, allocations: 27.81 kB / 0.6044 GB, free: 72.89 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/1.229, allocations: 3.625 kB / 0.6044 GB, free: 72.89 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.195e-05/1.229, allocations: 11.44 kB / 0.6044 GB, free: 72.89 MB / 442.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.02138/1.25, allocations: 9.266 MB / 0.6135 GB, free: 66.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.577e-05/1.25, allocations: 7.953 kB / 0.6135 GB, free: 66.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002879/1.253, allocations: 472.4 kB / 0.6139 GB, free: 65.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002243/1.255, allocations: 0.6517 MB / 0.6146 GB, free: 65.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004276/1.256, allocations: 54.8 kB / 0.6146 GB, free: 65.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0103/1.266, allocations: 7.709 MB / 0.6221 GB, free: 57.58 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00456/1.271, allocations: 3.29 MB / 0.6253 GB, free: 54.45 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01069/1.281, allocations: 5.368 MB / 0.6306 GB, free: 49.46 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002078/1.283, allocations: 0.6455 MB / 0.6312 GB, free: 48.88 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008869/1.284, allocations: 59.52 kB / 0.6313 GB, free: 48.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00247/1.287, allocations: 165.7 kB / 0.6314 GB, free: 48.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006356/1.288, allocations: 206.7 kB / 0.6316 GB, free: 48.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002598/1.288, allocations: 70.7 kB / 0.6317 GB, free: 48.52 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003169/1.291, allocations: 1.483 MB / 0.6331 GB, free: 47.15 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.49e-07/1.291, allocations: 0 / 0.6331 GB, free: 47.15 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004235/1.295, allocations: 0.8509 MB / 0.634 GB, free: 46.31 MB / 442.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.001533/1.297, allocations: 0.6025 MB / 0.6346 GB, free: 45.86 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007/1.304, allocations: 3.538 MB / 0.638 GB, free: 42.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/1.304, allocations: 0 / 0.638 GB, free: 42.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004329/1.308, allocations: 2.163 MB / 0.6401 GB, free: 40.46 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003722/1.312, allocations: 0.5811 MB / 0.6407 GB, free: 40 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01411/1.326, allocations: 6.027 MB / 0.6466 GB, free: 34.54 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002667/1.329, allocations: 2.435 MB / 0.649 GB, free: 32.62 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001453/1.33, allocations: 227.4 kB / 0.6492 GB, free: 32.43 MB / 442.7 MB Notification: Performance of SimCode: time 1.907e-06/1.33, allocations: 0 / 0.6492 GB, free: 32.43 MB / 442.7 MB Notification: Performance of Templates: time 0.3915/1.722, allocations: 110 MB / 0.7566 GB, free: 67.9 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoiseCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoiseCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoiseCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoiseFunctions.cpp:616:3: error: no matching function for call to 'ModelicaRandom_xorshift128plus' ModelicaRandom_xorshift128plus(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:74:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift128plus(_In_ int* state_in, ^ In file included from OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoiseCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoiseFunctions.cpp:703:3: error: no matching function for call to 'ModelicaRandom_xorshift64star' ModelicaRandom_xorshift64star(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:72:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift64star(_In_ int* state_in, ^ In file included from OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoiseCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoiseFunctions.cpp:897:3: error: no matching function for call to 'ModelicaRandom_setInternalState_xorshift1024star' ModelicaRandom_setInternalState_xorshift1024star(ConstArray(rngState_).getData(), rngState_.getDim(1), id__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:78:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_setInternalState_xorshift1024star( ^ In file included from OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoiseCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoiseInitialize.cpp:3066: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_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.h:482:33: note: '_motor_P_uniformNoise_P_state_' declared here StatArrayDim1 _motor_P_uniformNoise_P_state_; ^ 4 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoiseCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoiseCalcHelperMain.o] Error 1