Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007482/0.0007481, allocations: 92.78 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005318/0.005319, allocations: 170.1 kB / 16.26 MB, free: 6.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.4 MB / 222.4 MB, free: 5.801 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3279/0.3279, allocations: 38.04 MB / 308.8 MB, free: 10.16 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006377/0.0006377, allocations: 16 kB / 377 MB, free: 14.83 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1079, allocations: 57.52 MB / 434.6 MB, free: 5.215 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.2294/0.3373, allocations: 41.22 MB / 475.8 MB, free: 30.17 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02159/0.359, allocations: 9.144 MB / 484.9 MB, free: 25.81 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007127/0.3662, allocations: 172.8 kB / 485.1 MB, free: 25.79 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001283/0.3675, allocations: 0.5427 MB / 485.6 MB, free: 25.58 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004108/0.3716, allocations: 1.891 MB / 487.5 MB, free: 24.78 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001182/0.3728, allocations: 0.5256 MB / 488.1 MB, free: 24.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005375/0.3782, allocations: 6.148 MB / 494.2 MB, free: 22.69 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00624/0.3844, allocations: 4.837 MB / 499 MB, free: 20.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001823/0.3863, allocations: 1.203 MB / 0.4885 GB, free: 20.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003131/0.3894, allocations: 2.071 MB / 0.4905 GB, free: 19.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005231/0.39, allocations: 170 kB / 0.4907 GB, free: 19.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002445/0.3924, allocations: 1.093 MB / 0.4918 GB, free: 19.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002689/0.3951, allocations: 1.904 MB / 0.4936 GB, free: 18.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002957/0.3981, allocations: 2.27 MB / 0.4959 GB, free: 17.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01128/0.4094, allocations: 7.646 MB / 0.5033 GB, free: 14.4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.4094, allocations: 0 / 0.5033 GB, free: 14.4 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.4094, allocations: 1.125 kB / 0.5033 GB, free: 14.4 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003058/0.4098, allocations: 0 / 0.5033 GB, free: 14.4 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1897 * Number of variables: 1897 Notification: Performance of Generate backend data structure: time 0.01448/0.4242, allocations: 4.46 MB / 0.5077 GB, free: 11.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.4243, allocations: 9.906 kB / 0.5077 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01267/0.437, allocations: 3.289 MB / 0.5109 GB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006457/0.4435, allocations: 2.386 MB / 0.5132 GB, free: 8.062 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003013/0.4439, allocations: 277.5 kB / 0.5135 GB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0018/0.4457, allocations: 361.7 kB / 0.5138 GB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02536/0.471, allocations: 12.72 MB / 0.5263 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001375/0.4712, allocations: 35.72 kB / 0.5263 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005668/0.4718, allocations: 167.8 kB / 0.5264 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004251/0.4761, allocations: 2.762 MB / 0.5291 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0231/0.4992, allocations: 11.64 MB / 0.5405 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06397/0.5632, allocations: 40.57 MB / 0.5801 GB, free: 5.582 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009994/0.5732, allocations: 5.014 MB / 0.585 GB, free: 348 kB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00304/0.5763, allocations: 2.413 MB / 0.5874 GB, free: 13.91 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009211/0.5855, allocations: 6.866 MB / 0.5941 GB, free: 6.68 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.867e-05/0.5856, allocations: 52.56 kB / 0.5941 GB, free: 6.617 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 3.957e-06/0.5856, allocations: 0 / 0.5941 GB, free: 6.617 MB / 462.1 MB Notification: Performance of matching and sorting (n=259): time 0.04919/0.6348, allocations: 19.41 MB / 0.6131 GB, free: 3.07 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.6349, allocations: 73.41 kB / 0.6132 GB, free: 2.988 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004928/0.6398, allocations: 3.206 MB / 0.6163 GB, free: 15.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003032/0.6401, allocations: 57.7 kB / 0.6164 GB, free: 15.71 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002088/0.6422, allocations: 3.309 MB / 0.6196 GB, free: 12.35 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009547/0.6432, allocations: 0.9714 MB / 0.6205 GB, free: 11.36 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006867/0.6439, allocations: 0.5392 MB / 0.6211 GB, free: 10.82 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.28e-05/0.644, allocations: 301.1 kB / 0.6213 GB, free: 10.52 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003747/0.6477, allocations: 2.515 MB / 0.6238 GB, free: 8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00601/0.6538, allocations: 5.918 MB / 0.6296 GB, free: 416 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2367/0.8905, allocations: 9.161 MB / 0.6385 GB, free: 137.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-05/0.8906, allocations: 34.31 kB / 0.6386 GB, free: 137.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.01887/0.9095, allocations: 10.22 MB / 0.6485 GB, free: 134.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.648e-05/0.9096, allocations: 53.44 kB / 0.6486 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000137/0.9098, allocations: 118.5 kB / 0.6487 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008244/0.918, allocations: 2.38 MB / 0.651 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004305/0.9223, allocations: 1.374 MB / 0.6524 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01631/0.9387, allocations: 10.71 MB / 0.6628 GB, free: 129.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005027/0.9437, allocations: 335.3 kB / 0.6632 GB, free: 129.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009784/0.9447, allocations: 362.5 kB / 0.6635 GB, free: 129.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 540 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (747): * Single equations (assignments): 739 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,5), (3,27)} Notification: Performance of prepare postOptimizeDAE: time 0.005404/0.9501, allocations: 2.449 MB / 0.6659 GB, free: 128.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005409/0.9507, allocations: 306.3 kB / 0.6662 GB, free: 128.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00791/0.9586, allocations: 4.71 MB / 0.6708 GB, free: 126.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.99e-05/0.9587, allocations: 51.45 kB / 0.6708 GB, free: 126.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.9587, allocations: 2.375 kB / 0.6708 GB, free: 126.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.082e-05/0.9587, allocations: 9.281 kB / 0.6708 GB, free: 126.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01733/0.9761, allocations: 11.02 MB / 0.6816 GB, free: 123 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.096e-05/0.9761, allocations: 3.688 kB / 0.6816 GB, free: 123 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001643/0.9778, allocations: 423.2 kB / 0.682 GB, free: 122.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001822/0.9796, allocations: 0.7034 MB / 0.6827 GB, free: 122.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001711/0.9798, allocations: 67.73 kB / 0.6828 GB, free: 122.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002061/0.9819, allocations: 2.402 MB / 0.6851 GB, free: 121.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.9819, allocations: 11.88 kB / 0.6851 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008302/0.9902, allocations: 7.225 MB / 0.6922 GB, free: 116.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001197/0.9914, allocations: 352.6 kB / 0.6925 GB, free: 116.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004109/0.9918, allocations: 51.2 kB / 0.6926 GB, free: 116.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/0.9932, allocations: 137.1 kB / 0.6927 GB, free: 116.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000343/0.9935, allocations: 143.4 kB / 0.6928 GB, free: 116.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001644/0.9937, allocations: 79.41 kB / 0.6929 GB, free: 116.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002889/0.9966, allocations: 1.949 MB / 0.6948 GB, free: 114.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.9966, allocations: 0 / 0.6948 GB, free: 114.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004262/1.001, allocations: 1.143 MB / 0.6959 GB, free: 113.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 203 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004298/1.001, allocations: 199.8 kB / 0.6961 GB, free: 113.3 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1919:5-1921:161:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1913:5-1915:161:writable] Warning: Variable freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1916:5-1918:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.008094/1.009, allocations: 6.236 MB / 0.7022 GB, free: 107.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.024e-06/1.009, allocations: 8.188 kB / 0.7022 GB, free: 107.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003468/1.013, allocations: 2.561 MB / 0.7047 GB, free: 105.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003939/1.017, allocations: 473.4 kB / 0.7052 GB, free: 104.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01931/1.036, allocations: 14.16 MB / 0.719 GB, free: 90.67 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003723/1.04, allocations: 3.797 MB / 0.7227 GB, free: 86.84 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004405/1.044, allocations: 2.079 MB / 0.7247 GB, free: 84.75 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006875/1.045, allocations: 247.4 kB / 0.725 GB, free: 84.51 MB / 494.1 MB Notification: Performance of SimCode: time 7.62e-07/1.045, allocations: 0 / 0.725 GB, free: 84.51 MB / 494.1 MB Notification: Performance of Templates: time 0.06058/1.106, allocations: 40.33 MB / 0.7644 GB, free: 44.28 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) Environment - environmentSimulation: