Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 1.703/1.703, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.904e-05/2.92e-05, allocations: 0 / 225 MB, free: 2.824 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2153, allocations: 38.77 MB / 263.8 MB, free: 9.887 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1396/0.355, allocations: 91.96 MB / 355.7 MB, free: 13.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.3553, allocations: 87.95 kB / 355.8 MB, free: 13.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5589/0.9142, allocations: 110.4 MB / 466.2 MB, free: 7.738 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.065e-06/0.9143, allocations: 0 / 466.2 MB, free: 7.738 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002991/0.9146, allocations: 108 kB / 466.3 MB, free: 7.633 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1738 * Number of variables: 1738 Notification: Performance of Generate backend data structure: time 0.01467/0.9293, allocations: 4.905 MB / 471.2 MB, free: 2.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.9293, allocations: 12.03 kB / 471.2 MB, free: 2.648 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03607/0.9654, allocations: 6.9 MB / 478.1 MB, free: 11.72 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02254/0.988, allocations: 6.757 MB / 484.9 MB, free: 4.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005949/0.9886, allocations: 394.2 kB / 485.3 MB, free: 4.523 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002389/0.991, allocations: 0.5076 MB / 485.8 MB, free: 4.016 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03629/1.027, allocations: 12.48 MB / 498.3 MB, free: 6.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002885/1.028, allocations: 63.38 kB / 498.3 MB, free: 6.508 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001632/1.029, allocations: 239.9 kB / 498.6 MB, free: 6.273 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00209/1.031, allocations: 1.044 MB / 499.6 MB, free: 5.227 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2395/1.271, allocations: 10.19 MB / 0.4978 GB, free: 58.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06552/1.337, allocations: 50.09 MB / 0.5468 GB, free: 30.85 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01634/1.353, allocations: 4.742 MB / 0.5514 GB, free: 29.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00319/1.356, allocations: 1.886 MB / 0.5532 GB, free: 28.43 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01356/1.37, allocations: 7.06 MB / 0.5601 GB, free: 24.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/1.37, allocations: 51.22 kB / 0.5602 GB, free: 24.54 MB / 346.7 MB Notification: Performance of pre-optimization done (n=179): time 6.236e-06/1.37, allocations: 0 / 0.5602 GB, free: 24.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=224): time 0.07467/1.445, allocations: 17.09 MB / 0.5769 GB, free: 19.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.837e-05/1.445, allocations: 206.9 kB / 0.5771 GB, free: 19.63 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008334/1.453, allocations: 3.877 MB / 0.5808 GB, free: 18.21 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003795/1.453, allocations: 60.86 kB / 0.5809 GB, free: 18.15 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002468/1.456, allocations: 3.438 MB / 0.5843 GB, free: 15.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009611/1.457, allocations: 0.8362 MB / 0.5851 GB, free: 14.46 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005422/1.458, allocations: 127.9 kB / 0.5852 GB, free: 14.34 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003675/1.458, allocations: 0.5826 MB / 0.5858 GB, free: 13.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00425/1.462, allocations: 2.106 MB / 0.5878 GB, free: 11.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00635/1.469, allocations: 5.807 MB / 0.5935 GB, free: 4.719 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006316/1.475, allocations: 3.504 MB / 0.5969 GB, free: 1.848 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.816e-05/1.475, allocations: 40 kB / 0.597 GB, free: 1.809 MB / 346.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02167/1.497, allocations: 8.135 MB / 0.6049 GB, free: 10.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001309/1.497, allocations: 64.94 kB / 0.605 GB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001977/1.497, allocations: 128 kB / 0.6051 GB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004303/1.501, allocations: 1.033 MB / 0.6061 GB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006334/1.508, allocations: 1.416 MB / 0.6075 GB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01369/1.522, allocations: 6.859 MB / 0.6142 GB, free: 2.441 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006323/1.528, allocations: 337.6 kB / 0.6145 GB, free: 2.145 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001349/1.529, allocations: 383 kB / 0.6149 GB, free: 1.777 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 43 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 764 * 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%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00152/1.531, allocations: 0.6018 MB / 0.6155 GB, free: 1.176 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001019/1.532, allocations: 402.8 kB / 0.6158 GB, free: 0.7773 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01384/1.546, allocations: 3.815 MB / 0.6196 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-05/1.546, allocations: 20 kB / 0.6196 GB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.036e-05/1.546, allocations: 8 kB / 0.6196 GB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.758e-05/1.546, allocations: 18.56 kB / 0.6196 GB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02665/1.573, allocations: 9.82 MB / 0.6292 GB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-05/1.573, allocations: 4 kB / 0.6292 GB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00225/1.575, allocations: 358.5 kB / 0.6295 GB, free: 5.961 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003817/1.579, allocations: 0.7891 MB / 0.6303 GB, free: 5.199 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003945/1.579, allocations: 44 kB / 0.6304 GB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2319/1.811, allocations: 5.576 MB / 0.6358 GB, free: 83.42 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.479e-05/1.811, allocations: 9.25 kB / 0.6358 GB, free: 83.42 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01363/1.825, allocations: 6.938 MB / 0.6426 GB, free: 81.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002305/1.827, allocations: 0.7119 MB / 0.6433 GB, free: 81.83 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001112/1.828, allocations: 42.81 kB / 0.6433 GB, free: 81.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002917/1.831, allocations: 103.2 kB / 0.6434 GB, free: 81.83 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005996/1.832, allocations: 144 kB / 0.6436 GB, free: 81.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002252/1.832, allocations: 69.2 kB / 0.6436 GB, free: 81.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006367/1.839, allocations: 2.722 MB / 0.6463 GB, free: 81.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.138e-06/1.839, allocations: 3.719 kB / 0.6463 GB, free: 81.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007586/1.846, allocations: 1.172 MB / 0.6474 GB, free: 81.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (176): * Single equations (assignments): 172 * 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%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008089/1.847, allocations: 221.8 kB / 0.6476 GB, free: 81.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01002/1.857, allocations: 5.092 MB / 0.6526 GB, free: 81.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.366e-06/1.857, allocations: 3.531 kB / 0.6526 GB, free: 81.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003337/1.86, allocations: 1.734 MB / 0.6543 GB, free: 81.26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003653/1.864, allocations: 0.5119 MB / 0.6548 GB, free: 81.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02362/1.888, allocations: 9.554 MB / 0.6641 GB, free: 79.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008712/1.897, allocations: 3.976 MB / 0.668 GB, free: 78.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001505/1.898, allocations: 316.7 kB / 0.6683 GB, free: 78.5 MB / 378.7 MB Notification: Performance of SimCode: time 2.685e-06/1.898, allocations: 0 / 0.6683 GB, free: 78.5 MB / 378.7 MB Notification: Performance of Templates: time 0.1254/2.024, allocations: 85.38 MB / 0.7517 GB, free: 22.02 MB / 378.7 MB