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: translateModel(Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise,tolerance=1e-05,outputFormat="mat",numberOfIntervals=1600,variableFilter="time|controller.busdelay.y|controller.positionToSpeed.x|controller.position_PI.x|controller.speed_PI.x|elastoGap.s_rel|elastoGap.v_rel|gearbox.phi_rel|gearbox.w_rel|rodMass.s|rodMass.v|slewRateLimiter.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise") Notification: Performance of loadModel(Modelica): time 1.963/1.963, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.000349, allocations: 12 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09674/0.09712, allocations: 44.5 MB / 309 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5684/0.6656, allocations: 119.2 MB / 428.2 MB, free: 4.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003123/0.6659, allocations: 89.2 kB / 428.3 MB, free: 4.473 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3964/1.062, allocations: 78.7 MB / 0.4951 GB, free: 13.66 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.857e-06/1.062, allocations: 0 / 0.4951 GB, free: 13.66 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006383/1.063, allocations: 87.81 kB / 0.4952 GB, free: 13.57 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.02395/1.087, allocations: 3.678 MB / 0.4988 GB, free: 9.824 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.223e-05/1.087, allocations: 8.031 kB / 0.4988 GB, free: 9.816 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004742/1.092, allocations: 455.5 kB / 0.4992 GB, free: 9.367 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01544/1.107, allocations: 2.569 MB / 0.5017 GB, free: 6.746 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001393/1.109, allocations: 359.2 kB / 0.5021 GB, free: 6.375 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00194/1.111, allocations: 311.9 kB / 0.5024 GB, free: 6.07 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02414/1.135, allocations: 4.227 MB / 0.5065 GB, free: 1.699 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002818/1.135, allocations: 11.89 kB / 0.5065 GB, free: 1.688 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001241/1.137, allocations: 128 kB / 0.5066 GB, free: 1.562 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003174/1.137, allocations: 142 kB / 0.5068 GB, free: 1.422 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02105/1.158, allocations: 3.678 MB / 0.5104 GB, free: 13.73 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3591/1.517, allocations: 13.98 MB / 0.524 GB, free: 86.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006546/1.524, allocations: 2.196 MB / 0.5262 GB, free: 86.01 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006572/1.525, allocations: 227.8 kB / 0.5264 GB, free: 85.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004447/1.529, allocations: 1.34 MB / 0.5277 GB, free: 85.71 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 7.394e-06/1.529, allocations: 3.812 kB / 0.5277 GB, free: 85.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=243): time 0.05948/1.589, allocations: 13.33 MB / 0.5407 GB, free: 84.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006766/1.595, allocations: 3.638 MB / 0.5443 GB, free: 82.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006162/1.602, allocations: 2.206 MB / 0.5464 GB, free: 82.44 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000736/1.603, allocations: 78.45 kB / 0.5465 GB, free: 82.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001761/1.604, allocations: 1.376 MB / 0.5478 GB, free: 81.88 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001561/1.606, allocations: 0.8211 MB / 0.5486 GB, free: 81.47 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003379/1.606, allocations: 51.22 kB / 0.5487 GB, free: 81.47 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000235/1.607, allocations: 419.5 kB / 0.5491 GB, free: 81.16 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003833/1.61, allocations: 1.307 MB / 0.5504 GB, free: 81.15 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004683/1.615, allocations: 1.953 MB / 0.5523 GB, free: 80.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004697/1.62, allocations: 1.568 MB / 0.5538 GB, free: 80.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.298e-05/1.62, allocations: 7.219 kB / 0.5538 GB, free: 80.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=346) (initialization): time 0.01174/1.632, allocations: 3.778 MB / 0.5575 GB, free: 80.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.157e-05/1.632, allocations: 14.06 kB / 0.5575 GB, free: 80.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.067e-05/1.632, allocations: 22.05 kB / 0.5575 GB, free: 80.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002103/1.634, allocations: 0.4985 MB / 0.558 GB, free: 80.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005395/1.639, allocations: 0.685 MB / 0.5587 GB, free: 80.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008457/1.648, allocations: 4.737 MB / 0.5633 GB, free: 77.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004497/1.652, allocations: 203.5 kB / 0.5635 GB, free: 77.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007485/1.653, allocations: 109.2 kB / 0.5636 GB, free: 77.54 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.003929/1.657, allocations: 1.087 MB / 0.5647 GB, free: 77.41 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001112/1.658, allocations: 264.9 kB / 0.5649 GB, free: 77.28 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01268/1.671, allocations: 3.757 MB / 0.5686 GB, free: 76.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.198e-05/1.671, allocations: 27.02 kB / 0.5686 GB, free: 76.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.546e-05/1.671, allocations: 6.094 kB / 0.5686 GB, free: 76.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.44e-05/1.671, allocations: 11.44 kB / 0.5686 GB, free: 76.27 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.02884/1.7, allocations: 9.445 MB / 0.5779 GB, free: 72.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.637e-05/1.7, allocations: 3.531 kB / 0.5779 GB, free: 72.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004128/1.704, allocations: 470.8 kB / 0.5783 GB, free: 72.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002977/1.707, allocations: 0.6511 MB / 0.5789 GB, free: 71.97 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005879/1.708, allocations: 60.86 kB / 0.579 GB, free: 71.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01403/1.722, allocations: 7.934 MB / 0.5868 GB, free: 66.26 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006096/1.728, allocations: 3.407 MB / 0.5901 GB, free: 64.05 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01664/1.745, allocations: 5.574 MB / 0.5955 GB, free: 61.65 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002608/1.748, allocations: 0.648 MB / 0.5962 GB, free: 61.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001168/1.749, allocations: 52.31 kB / 0.5962 GB, free: 61.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003559/1.752, allocations: 170.4 kB / 0.5964 GB, free: 61.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008326/1.753, allocations: 199.2 kB / 0.5966 GB, free: 61.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000269/1.754, allocations: 72.84 kB / 0.5966 GB, free: 61.12 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004142/1.758, allocations: 1.494 MB / 0.5981 GB, free: 60.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.523e-05/1.758, allocations: 3.906 kB / 0.5981 GB, free: 60.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00519/1.763, allocations: 0.8545 MB / 0.5989 GB, free: 60.41 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.001956/1.765, allocations: 0.6004 MB / 0.5995 GB, free: 60.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01086/1.776, allocations: 3.787 MB / 0.6032 GB, free: 58.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/1.776, allocations: 0.875 kB / 0.6032 GB, free: 58.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006813/1.783, allocations: 2.315 MB / 0.6055 GB, free: 57.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005374/1.788, allocations: 0.5747 MB / 0.606 GB, free: 57.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02323/1.811, allocations: 8.64 MB / 0.6145 GB, free: 50.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004404/1.816, allocations: 2.426 MB / 0.6168 GB, free: 48.65 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001972/1.818, allocations: 221.3 kB / 0.6171 GB, free: 48.45 MB / 410.7 MB Notification: Performance of SimCode: time 1.714e-06/1.818, allocations: 0 / 0.6171 GB, free: 48.45 MB / 410.7 MB Notification: Performance of Templates: time 0.4892/2.307, allocations: 109.9 MB / 0.7244 GB, free: 76.41 MB / 410.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.makefile b'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=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -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\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoiseCalcHelperMain.cpp:29:\n./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoiseInitialize.cpp:3053:3: error: use of undeclared identifier \'$PRE_P_motor_P_uniformNoise_P_state_\'; did you mean \'_motor_P_uniformNoise_P_state_\'?\n $PRE_P_motor_P_uniformNoise_P_state_.assign(tmp178);\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n _motor_P_uniformNoise_P_state_\n./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.h:481:33: note: \'_motor_P_uniformNoise_P_state_\' declared here\n StatArrayDim1 _motor_P_uniformNoise_P_state_;\n ^\n1 error generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoiseCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoiseCalcHelperMain.o] Error 1\n'