Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.725/1.725, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003592/0.0003593, allocations: 12 kB / 263.9 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07914/0.07952, allocations: 44.5 MB / 308.4 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5028/0.5824, allocations: 119.2 MB / 427.7 MB, free: 6.004 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000349/0.5828, allocations: 87.58 kB / 427.8 MB, free: 5.957 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3057/0.8885, allocations: 78.7 MB / 0.4946 GB, free: 15.5 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.324e-06/0.8886, allocations: 3.938 kB / 0.4946 GB, free: 15.5 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004325/0.889, allocations: 95.8 kB / 0.4947 GB, free: 15.4 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.01226/0.9013, allocations: 3.67 MB / 0.4983 GB, free: 11.66 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.9014, allocations: 8.031 kB / 0.4983 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002668/0.9041, allocations: 451.5 kB / 0.4987 GB, free: 11.21 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007992/0.9121, allocations: 2.573 MB / 0.5012 GB, free: 8.586 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006691/0.9128, allocations: 363.2 kB / 0.5016 GB, free: 8.211 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001094/0.9139, allocations: 307.9 kB / 0.5019 GB, free: 7.91 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01199/0.9259, allocations: 4.2 MB / 0.506 GB, free: 3.566 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001295/0.9261, allocations: 15.83 kB / 0.506 GB, free: 3.551 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005153/0.9266, allocations: 136 kB / 0.5061 GB, free: 3.418 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001895/0.9268, allocations: 142 kB / 0.5062 GB, free: 3.277 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01138/0.9382, allocations: 3.678 MB / 0.5098 GB, free: 15.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0342/0.9724, allocations: 13.98 MB / 0.5235 GB, free: 1.242 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2299/1.202, allocations: 2.191 MB / 0.5256 GB, free: 88.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004231/1.203, allocations: 235.8 kB / 0.5259 GB, free: 88.43 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003266/1.206, allocations: 1.325 MB / 0.5271 GB, free: 88.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 5.914e-06/1.206, allocations: 0.8438 kB / 0.5271 GB, free: 88.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=243): time 0.04083/1.247, allocations: 13.33 MB / 0.5402 GB, free: 86.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005505/1.253, allocations: 3.639 MB / 0.5437 GB, free: 85.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004347/1.257, allocations: 1.967 MB / 0.5456 GB, free: 85.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005272/1.258, allocations: 76.23 kB / 0.5457 GB, free: 85.06 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001315/1.259, allocations: 1.374 MB / 0.5471 GB, free: 84.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009915/1.26, allocations: 0.8121 MB / 0.5478 GB, free: 84.12 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002361/1.26, allocations: 56.86 kB / 0.5479 GB, free: 84.12 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002006/1.26, allocations: 423.4 kB / 0.5483 GB, free: 83.81 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003193/1.264, allocations: 1.309 MB / 0.5496 GB, free: 83.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003794/1.267, allocations: 1.936 MB / 0.5515 GB, free: 83.13 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003835/1.271, allocations: 1.569 MB / 0.553 GB, free: 83.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-05/1.271, allocations: 7.312 kB / 0.553 GB, free: 83.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=346) (initialization): time 0.009039/1.28, allocations: 3.781 MB / 0.5567 GB, free: 82.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.369e-05/1.28, allocations: 11.69 kB / 0.5567 GB, free: 82.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.111e-05/1.28, allocations: 21.25 kB / 0.5567 GB, free: 82.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001649/1.282, allocations: 0.4915 MB / 0.5572 GB, free: 82.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003842/1.286, allocations: 0.6802 MB / 0.5579 GB, free: 82.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007102/1.293, allocations: 4.747 MB / 0.5625 GB, free: 80.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003007/1.296, allocations: 204.4 kB / 0.5627 GB, free: 80.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003784/1.297, allocations: 110.8 kB / 0.5628 GB, free: 80.2 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.002731/1.299, allocations: 1.089 MB / 0.5639 GB, free: 80.08 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007526/1.3, allocations: 265.4 kB / 0.5641 GB, free: 79.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009072/1.309, allocations: 3.755 MB / 0.5678 GB, free: 78.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.291e-05/1.309, allocations: 24.41 kB / 0.5678 GB, free: 78.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/1.309, allocations: 6.406 kB / 0.5678 GB, free: 78.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.932e-05/1.309, allocations: 14.62 kB / 0.5678 GB, free: 78.45 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.02155/1.331, allocations: 9.447 MB / 0.5771 GB, free: 74.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-05/1.331, allocations: 7.75 kB / 0.5771 GB, free: 74.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002613/1.334, allocations: 464.4 kB / 0.5775 GB, free: 74.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002359/1.336, allocations: 0.6562 MB / 0.5782 GB, free: 74.14 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003631/1.336, allocations: 57.02 kB / 0.5782 GB, free: 74.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01132/1.348, allocations: 7.933 MB / 0.586 GB, free: 68.44 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004942/1.353, allocations: 3.402 MB / 0.5893 GB, free: 66.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01287/1.366, allocations: 5.69 MB / 0.5948 GB, free: 63.69 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002074/1.368, allocations: 0.6526 MB / 0.5955 GB, free: 63.26 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006562/1.368, allocations: 51.22 kB / 0.5955 GB, free: 63.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002233/1.371, allocations: 165.3 kB / 0.5957 GB, free: 63.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005801/1.371, allocations: 205.5 kB / 0.5959 GB, free: 63.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002276/1.371, allocations: 69.06 kB / 0.5959 GB, free: 63.15 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003381/1.375, allocations: 1.497 MB / 0.5974 GB, free: 62.55 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.87e-07/1.375, allocations: 0 / 0.5974 GB, free: 62.55 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004046/1.379, allocations: 0.8505 MB / 0.5982 GB, free: 62.45 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.001416/1.38, allocations: 0.6093 MB / 0.5988 GB, free: 62.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008361/1.389, allocations: 3.79 MB / 0.6025 GB, free: 60.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/1.389, allocations: 2.734 kB / 0.6025 GB, free: 60.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005031/1.394, allocations: 2.316 MB / 0.6048 GB, free: 59.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003639/1.398, allocations: 0.5617 MB / 0.6053 GB, free: 59.36 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01656/1.414, allocations: 8.623 MB / 0.6138 GB, free: 52.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002534/1.417, allocations: 2.429 MB / 0.6161 GB, free: 50.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001378/1.418, allocations: 217 kB / 0.6163 GB, free: 50.57 MB / 410.7 MB Notification: Performance of SimCode: time 1.671e-06/1.418, allocations: 0 / 0.6163 GB, free: 50.57 MB / 410.7 MB Notification: Performance of Templates: time 0.3626/1.781, allocations: 109.9 MB / 0.7237 GB, free: 79.57 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=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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'