Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadModel(ModelicaTest): time 2.444/2.444, allocations: 269 MB / 284.1 MB, free: 3.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.393e-05/3.355e-05, allocations: 4 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1333, allocations: 61.88 MB / 410.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.3692/0.5026, allocations: 28.7 MB / 439.6 MB, free: 14.58 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02276/0.5254, allocations: 7.124 MB / 446.7 MB, free: 9.918 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008305/0.5338, allocations: 151 kB / 446.9 MB, free: 9.895 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006276/0.5401, allocations: 1.435 MB / 448.3 MB, free: 9.418 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01879/0.559, allocations: 4.154 MB / 452.5 MB, free: 7.438 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003399/0.5624, allocations: 0.5376 MB / 453 MB, free: 7.223 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.063/0.6255, allocations: 23.99 MB / 477 MB, free: 5.488 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005819/0.6314, allocations: 2.631 MB / 479.6 MB, free: 2.82 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001916/0.6333, allocations: 0.7481 MB / 480.4 MB, free: 2.07 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002608/0.636, allocations: 1.188 MB / 481.6 MB, free: 0.8789 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003008/0.639, allocations: 0.9169 MB / 482.5 MB, free: 15.96 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000969/0.64, allocations: 128 kB / 482.6 MB, free: 15.84 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002069/0.6421, allocations: 1.34 MB / 484 MB, free: 14.49 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001073/0.6432, allocations: 232 kB / 484.2 MB, free: 14.27 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008345/0.6516, allocations: 4.853 MB / 489 MB, free: 9.406 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.6517, allocations: 0 / 489 MB, free: 9.406 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.6517, allocations: 0 / 489 MB, free: 9.406 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002156/0.6519, allocations: 0 / 489 MB, free: 9.406 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.0117/0.6636, allocations: 3.476 MB / 492.5 MB, free: 5.867 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.206e-05/0.6637, allocations: 12.03 kB / 492.5 MB, free: 5.855 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1799/0.8436, allocations: 10.42 MB / 0.4912 GB, free: 11.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008948/0.8526, allocations: 2.441 MB / 0.4935 GB, free: 8.906 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002825/0.8529, allocations: 204.8 kB / 0.4937 GB, free: 8.703 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00145/0.8544, allocations: 267.8 kB / 0.494 GB, free: 8.441 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02352/0.878, allocations: 8.58 MB / 0.5024 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001835/0.8782, allocations: 43.58 kB / 0.5024 GB, free: 15.19 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009393/0.8792, allocations: 127.9 kB / 0.5025 GB, free: 15.06 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005415/0.8846, allocations: 1.735 MB / 0.5042 GB, free: 13.33 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02339/0.908, allocations: 7.225 MB / 0.5113 GB, free: 6.094 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06168/0.9698, allocations: 34.03 MB / 0.5445 GB, free: 2.98 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01547/0.9853, allocations: 3.462 MB / 0.5479 GB, free: 15.38 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0197/1.005, allocations: 7.28 MB / 0.555 GB, free: 7.828 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.329e-05/1.005, allocations: 51.5 kB / 0.5551 GB, free: 7.77 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 5.801e-06/1.005, allocations: 0 / 0.5551 GB, free: 7.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=188): time 0.1397/1.145, allocations: 19.56 MB / 0.5742 GB, free: 3.996 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001721/1.145, allocations: 201.2 kB / 0.5743 GB, free: 3.758 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01048/1.156, allocations: 3.449 MB / 0.5777 GB, free: 328 kB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005124/1.156, allocations: 57.69 kB / 0.5778 GB, free: 264 kB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00295/1.159, allocations: 2.756 MB / 0.5805 GB, free: 13.46 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001186/1.16, allocations: 0.7212 MB / 0.5812 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004868/1.161, allocations: 112 kB / 0.5813 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004625/1.161, allocations: 0.5586 MB / 0.5818 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005481/1.167, allocations: 2.069 MB / 0.5838 GB, free: 9.98 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008909/1.176, allocations: 5.605 MB / 0.5893 GB, free: 2.602 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008449/1.184, allocations: 3.342 MB / 0.5926 GB, free: 15.26 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.822e-05/1.185, allocations: 36 kB / 0.5926 GB, free: 15.22 MB / 0.5105 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02877/1.213, allocations: 8.539 MB / 0.601 GB, free: 6.668 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/1.213, allocations: 63.95 kB / 0.601 GB, free: 6.605 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001821/1.214, allocations: 124.9 kB / 0.6011 GB, free: 6.484 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008918/1.223, allocations: 1.423 MB / 0.6025 GB, free: 5.059 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007949/1.231, allocations: 1.295 MB / 0.6038 GB, free: 3.762 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3619/1.593, allocations: 8.835 MB / 0.6124 GB, free: 161.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005758/1.598, allocations: 301.6 kB / 0.6127 GB, free: 161.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001128/1.6, allocations: 355.5 kB / 0.613 GB, free: 161.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (695): * Single equations (assignments): 691 * 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 {(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004774/1.604, allocations: 1.862 MB / 0.6149 GB, free: 161.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008525/1.605, allocations: 339.4 kB / 0.6152 GB, free: 161.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0149/1.62, allocations: 3.768 MB / 0.6189 GB, free: 159.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.157e-05/1.62, allocations: 20.3 kB / 0.6189 GB, free: 159.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.148e-05/1.62, allocations: 8.938 kB / 0.6189 GB, free: 159.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-05/1.62, allocations: 9.594 kB / 0.6189 GB, free: 159.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02747/1.648, allocations: 8.187 MB / 0.6269 GB, free: 156.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.669e-05/1.648, allocations: 1.406 kB / 0.6269 GB, free: 156.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002403/1.65, allocations: 255.8 kB / 0.6271 GB, free: 156.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008115/1.658, allocations: 1.176 MB / 0.6283 GB, free: 156.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003419/1.659, allocations: 36.19 kB / 0.6283 GB, free: 156.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01924/1.678, allocations: 8.129 MB / 0.6363 GB, free: 152.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/1.678, allocations: 3.234 kB / 0.6363 GB, free: 152.9 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01785/1.696, allocations: 6.34 MB / 0.6425 GB, free: 150.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/1.697, allocations: 391.2 kB / 0.6428 GB, free: 150.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00082/1.698, allocations: 29.05 kB / 0.6429 GB, free: 150.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002429/1.7, allocations: 79.53 kB / 0.6429 GB, free: 150.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004287/1.701, allocations: 119.7 kB / 0.643 GB, free: 150.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002035/1.701, allocations: 52.53 kB / 0.6431 GB, free: 150.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004938/1.706, allocations: 2.409 MB / 0.6454 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.11e-07/1.706, allocations: 0 / 0.6454 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00607/1.712, allocations: 0.9915 MB / 0.6464 GB, free: 149.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 126 * 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%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006965/1.713, allocations: 185 kB / 0.6466 GB, free: 149.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01105/1.724, allocations: 5.169 MB / 0.6516 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/1.724, allocations: 4 kB / 0.6516 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003629/1.728, allocations: 1.737 MB / 0.6533 GB, free: 144.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0027/1.73, allocations: 363.6 kB / 0.6537 GB, free: 144 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02072/1.751, allocations: 10.27 MB / 0.6637 GB, free: 133.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004796/1.756, allocations: 3.047 MB / 0.6667 GB, free: 130.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001383/1.757, allocations: 267.4 kB / 0.6669 GB, free: 130.5 MB / 0.5105 GB Notification: Performance of SimCode: time 1.563e-06/1.757, allocations: 0 / 0.6669 GB, free: 130.5 MB / 0.5105 GB Notification: Performance of Templates: time 0.1208/1.878, allocations: 66.91 MB / 0.7323 GB, free: 63.53 MB / 0.5105 GB