Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadModel(ModelicaTest): time 1.868/1.868, allocations: 209.3 MB / 221.9 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.458e-05/3.48e-05, allocations: 4 kB / 273.1 MB, free: 3.672 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08635/0.0864, allocations: 48.7 MB / 321.8 MB, free: 2.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3578/0.4443, allocations: 92.1 MB / 413.9 MB, free: 2.918 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.4446, allocations: 75.92 kB / 413.9 MB, free: 2.906 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2899/0.7345, allocations: 72.91 MB / 486.8 MB, free: 1.773 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.351e-06/0.7345, allocations: 0 / 486.8 MB, free: 1.773 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001921/0.7347, allocations: 64 kB / 486.9 MB, free: 1.711 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1216 * Number of variables: 1216 Notification: Performance of Generate backend data structure: time 0.0107/0.7454, allocations: 3.266 MB / 490.2 MB, free: 14.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/0.7455, allocations: 8.031 kB / 490.2 MB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02266/0.7682, allocations: 4.243 MB / 494.4 MB, free: 10.12 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01398/0.7822, allocations: 4.2 MB / 498.6 MB, free: 5.867 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000396/0.7826, allocations: 258.4 kB / 498.9 MB, free: 5.613 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001537/0.7842, allocations: 335.8 kB / 499.2 MB, free: 5.285 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02009/0.8043, allocations: 8.171 MB / 0.4955 GB, free: 12.15 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002016/0.8046, allocations: 59.5 kB / 0.4955 GB, free: 12.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001118/0.8057, allocations: 167.9 kB / 0.4957 GB, free: 11.93 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00158/0.8073, allocations: 0.8096 MB / 0.4965 GB, free: 11.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01642/0.8237, allocations: 6.42 MB / 0.5027 GB, free: 4.691 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2961/1.12, allocations: 39.76 MB / 0.5416 GB, free: 72.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006222/1.126, allocations: 2.232 MB / 0.5438 GB, free: 71.73 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001896/1.128, allocations: 1.062 MB / 0.5448 GB, free: 71.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00043/1.129, allocations: 325.5 kB / 0.5451 GB, free: 71.42 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/1.129, allocations: 47.12 kB / 0.5452 GB, free: 71.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 6.043e-06/1.129, allocations: 0 / 0.5452 GB, free: 71.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.03276/1.161, allocations: 9.396 MB / 0.5543 GB, free: 68.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.41e-05/1.162, allocations: 199.2 kB / 0.5545 GB, free: 68.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006043/1.168, allocations: 3.248 MB / 0.5577 GB, free: 68.44 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002487/1.168, allocations: 52.42 kB / 0.5577 GB, free: 68.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001747/1.17, allocations: 2.628 MB / 0.5603 GB, free: 67.08 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000601/1.17, allocations: 0.557 MB / 0.5608 GB, free: 66.78 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003848/1.171, allocations: 104.4 kB / 0.5609 GB, free: 66.78 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003201/1.171, allocations: 0.5341 MB / 0.5615 GB, free: 66.46 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003083/1.174, allocations: 1.591 MB / 0.563 GB, free: 66.44 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004757/1.179, allocations: 4.979 MB / 0.5679 GB, free: 62.01 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005013/1.184, allocations: 2.83 MB / 0.5707 GB, free: 61.99 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.55e-05/1.184, allocations: 33.66 kB / 0.5707 GB, free: 61.99 MB / 426.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01422/1.198, allocations: 6.109 MB / 0.5766 GB, free: 61.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/1.198, allocations: 56.16 kB / 0.5767 GB, free: 61.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001328/1.199, allocations: 121.9 kB / 0.5768 GB, free: 61.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009091/1.2, allocations: 346.4 kB / 0.5771 GB, free: 61.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00526/1.205, allocations: 1.239 MB / 0.5784 GB, free: 61.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003614/1.208, allocations: 2.7 MB / 0.581 GB, free: 59.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00526/1.214, allocations: 292.5 kB / 0.5813 GB, free: 59.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009221/1.215, allocations: 337.9 kB / 0.5816 GB, free: 59.78 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 554 * Number of states: 0 () * Number of discrete variables: 24 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 660 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001009/1.216, allocations: 0.5183 MB / 0.5821 GB, free: 59.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006658/1.216, allocations: 309.7 kB / 0.5824 GB, free: 59.18 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003554/1.22, allocations: 1.687 MB / 0.584 GB, free: 58.51 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.643e-05/1.22, allocations: 19.48 kB / 0.5841 GB, free: 58.51 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/1.22, allocations: 2.75 kB / 0.5841 GB, free: 58.51 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.748e-05/1.22, allocations: 6.672 kB / 0.5841 GB, free: 58.51 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01294/1.233, allocations: 5.38 MB / 0.5893 GB, free: 56.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/1.233, allocations: 3.719 kB / 0.5893 GB, free: 56.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001588/1.235, allocations: 224.8 kB / 0.5895 GB, free: 56.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006813/1.235, allocations: 156.2 kB / 0.5897 GB, free: 56.31 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001729/1.236, allocations: 20.62 kB / 0.5897 GB, free: 56.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002642/1.238, allocations: 2.142 MB / 0.5918 GB, free: 54.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.699e-06/1.238, allocations: 3.938 kB / 0.5918 GB, free: 54.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006335/1.245, allocations: 3.765 MB / 0.5955 GB, free: 52.89 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001511/1.246, allocations: 0.5305 MB / 0.596 GB, free: 52.54 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006208/1.247, allocations: 27.75 kB / 0.596 GB, free: 52.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001809/1.249, allocations: 70.72 kB / 0.5961 GB, free: 52.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/1.249, allocations: 70.09 kB / 0.5962 GB, free: 52.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001377/1.249, allocations: 43.95 kB / 0.5962 GB, free: 52.48 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00472/1.254, allocations: 2.271 MB / 0.5984 GB, free: 51.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.351e-06/1.254, allocations: 0 / 0.5984 GB, free: 51.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005838/1.26, allocations: 0.8033 MB / 0.5992 GB, free: 51.59 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 108 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004542/1.26, allocations: 151.5 kB / 0.5994 GB, free: 51.47 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00728/1.267, allocations: 3.743 MB / 0.603 GB, free: 50.16 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.268, allocations: 0 / 0.603 GB, free: 50.16 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001892/1.269, allocations: 1.048 MB / 0.604 GB, free: 49.72 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002282/1.272, allocations: 345.3 kB / 0.6044 GB, free: 49.55 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01413/1.286, allocations: 6.282 MB / 0.6105 GB, free: 45.81 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004585/1.291, allocations: 2.833 MB / 0.6133 GB, free: 43.63 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001148/1.292, allocations: 250.9 kB / 0.6135 GB, free: 43.39 MB / 426.7 MB Notification: Performance of SimCode: time 1.927e-06/1.292, allocations: 0 / 0.6135 GB, free: 43.39 MB / 426.7 MB Notification: Performance of Templates: time 0.08768/1.379, allocations: 59.79 MB / 0.6719 GB, free: 7.422 MB / 442.7 MB