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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 2.061/2.061, allocations: 194.9 MB / 211.2 MB, free: 7.801 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.036e-05/3.071e-05, allocations: 4 kB / 258.8 MB, free: 8.145 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3104, allocations: 44.5 MB / 303.3 MB, free: 12.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.07951/0.39, allocations: 43.78 MB / 347.1 MB, free: 1.738 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02914/0.4192, allocations: 10.36 MB / 357.4 MB, free: 7.348 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009737/0.429, allocations: 239.4 kB / 357.7 MB, free: 7.113 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007833/0.4369, allocations: 2.282 MB / 359.9 MB, free: 4.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02313/0.46, allocations: 6.256 MB / 366.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004752/0.4648, allocations: 0.8657 MB / 367.1 MB, free: 13.68 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.04996/0.5148, allocations: 17.03 MB / 384.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01245/0.5273, allocations: 5.974 MB / 390.1 MB, free: 6.613 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002693/0.5301, allocations: 1.06 MB / 391.1 MB, free: 5.551 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003564/0.5337, allocations: 1.617 MB / 392.7 MB, free: 3.93 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00354/0.5373, allocations: 1.159 MB / 393.9 MB, free: 2.77 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001381/0.5387, allocations: 172 kB / 394.1 MB, free: 2.602 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003155/0.5419, allocations: 1.948 MB / 396 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001716/0.5437, allocations: 340 kB / 396.4 MB, free: 324 kB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01202/0.5557, allocations: 7.579 MB / 403.9 MB, free: 8.719 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.5558, allocations: 3.938 kB / 403.9 MB, free: 8.715 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.026e-06/0.5558, allocations: 0 / 403.9 MB, free: 8.715 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003006/0.5561, allocations: 0 / 403.9 MB, free: 8.715 MB / 346.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.01632/0.5724, allocations: 4.843 MB / 408.8 MB, free: 3.801 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.5725, allocations: 12.03 kB / 408.8 MB, free: 3.789 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1202/0.6927, allocations: 11.62 MB / 420.4 MB, free: 8.145 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0139/0.7066, allocations: 4.238 MB / 424.6 MB, free: 3.848 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004222/0.7071, allocations: 307.9 kB / 424.9 MB, free: 3.543 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002213/0.7093, allocations: 439.6 kB / 425.4 MB, free: 3.113 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3054/1.015, allocations: 12.45 MB / 437.8 MB, free: 103.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000224/1.015, allocations: 52.84 kB / 437.9 MB, free: 103.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001032/1.016, allocations: 182 kB / 438.1 MB, free: 103.1 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004547/1.021, allocations: 1.977 MB / 440 MB, free: 102.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03251/1.053, allocations: 10.51 MB / 450.5 MB, free: 93.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07107/1.124, allocations: 44.19 MB / 494.7 MB, free: 48.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02123/1.146, allocations: 4.841 MB / 499.6 MB, free: 43.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01695/1.163, allocations: 7.123 MB / 0.4948 GB, free: 35.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.92e-05/1.163, allocations: 51.56 kB / 0.4949 GB, free: 35.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=179): time 6.382e-06/1.163, allocations: 4 kB / 0.4949 GB, free: 35.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=223): time 0.1381/1.301, allocations: 19.57 MB / 0.514 GB, free: 16.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.463e-05/1.301, allocations: 201.9 kB / 0.5142 GB, free: 15.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009466/1.311, allocations: 4.212 MB / 0.5183 GB, free: 11.56 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005145/1.311, allocations: 61.45 kB / 0.5183 GB, free: 11.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00281/1.314, allocations: 3.429 MB / 0.5217 GB, free: 8.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001328/1.315, allocations: 0.8319 MB / 0.5225 GB, free: 7.246 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006599/1.316, allocations: 128 kB / 0.5226 GB, free: 7.121 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004049/1.316, allocations: 0.5676 MB / 0.5232 GB, free: 6.543 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005703/1.322, allocations: 2.199 MB / 0.5253 GB, free: 4.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009917/1.332, allocations: 5.91 MB / 0.5311 GB, free: 12.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01278/1.345, allocations: 3.542 MB / 0.5346 GB, free: 9.039 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001535/1.345, allocations: 36 kB / 0.5346 GB, free: 9.004 MB / 378.7 MB Notification: Performance of matching and sorting (n=827) (initialization): time 0.03937/1.385, allocations: 8.812 MB / 0.5432 GB, free: 184 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001722/1.385, allocations: 60 kB / 0.5433 GB, free: 124 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003277/1.385, allocations: 132 kB / 0.5434 GB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009356/1.395, allocations: 1.231 MB / 0.5446 GB, free: 14.76 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01177/1.406, allocations: 1.411 MB / 0.546 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02117/1.428, allocations: 7.73 MB / 0.5535 GB, free: 5.484 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007074/1.435, allocations: 347.3 kB / 0.5538 GB, free: 5.145 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001412/1.436, allocations: 380 kB / 0.5542 GB, free: 4.773 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 596 * 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 (763): * Single equations (assignments): 759 * 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.006591/1.443, allocations: 2.453 MB / 0.5566 GB, free: 2.309 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001158/1.444, allocations: 406.8 kB / 0.557 GB, free: 1.906 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01482/1.459, allocations: 3.873 MB / 0.5608 GB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.989e-05/1.459, allocations: 27.52 kB / 0.5608 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.849e-05/1.459, allocations: 4 kB / 0.5608 GB, free: 13.99 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.688e-05/1.459, allocations: 11.97 kB / 0.5608 GB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03569/1.495, allocations: 10.19 MB / 0.5708 GB, free: 3.664 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.026e-05/1.495, allocations: 8 kB / 0.5708 GB, free: 3.656 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003241/1.498, allocations: 339.5 kB / 0.5711 GB, free: 3.324 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006313/1.504, allocations: 0.9929 MB / 0.5721 GB, free: 2.328 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004518/1.505, allocations: 40 kB / 0.5721 GB, free: 2.289 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3058/1.811, allocations: 6.422 MB / 0.5784 GB, free: 135.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.498e-06/1.811, allocations: 6.438 kB / 0.5784 GB, free: 135.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01752/1.828, allocations: 7.222 MB / 0.5854 GB, free: 132.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002466/1.831, allocations: 0.7362 MB / 0.5862 GB, free: 131.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001226/1.832, allocations: 39.67 kB / 0.5862 GB, free: 131.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00337/1.836, allocations: 110.4 kB / 0.5863 GB, free: 131.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005937/1.836, allocations: 145.9 kB / 0.5864 GB, free: 131.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002235/1.836, allocations: 61.41 kB / 0.5865 GB, free: 131.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006696/1.843, allocations: 2.996 MB / 0.5894 GB, free: 130.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.21e-07/1.843, allocations: 0 / 0.5894 GB, free: 130.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007526/1.851, allocations: 1.189 MB / 0.5906 GB, free: 130.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (173): * Single equations (assignments): 169 * 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.001028/1.852, allocations: 228.3 kB / 0.5908 GB, free: 130.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01283/1.865, allocations: 5.453 MB / 0.5961 GB, free: 128.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/1.865, allocations: 3.906 kB / 0.5961 GB, free: 128.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004595/1.869, allocations: 1.83 MB / 0.5979 GB, free: 127.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004379/1.874, allocations: 0.5066 MB / 0.5984 GB, free: 127.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03801/1.912, allocations: 13.51 MB / 0.6116 GB, free: 116 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0227/1.935, allocations: 3.968 MB / 0.6155 GB, free: 112.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002368/1.937, allocations: 319.4 kB / 0.6158 GB, free: 111.9 MB / 410.7 MB Notification: Performance of SimCode: time 1.432e-06/1.937, allocations: 0 / 0.6158 GB, free: 111.9 MB / 410.7 MB Notification: Performance of Templates: time 0.2158/2.153, allocations: 87.15 MB / 0.7009 GB, free: 24.62 MB / 410.7 MB