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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 2.03/2.03, allocations: 224.7 MB / 241.1 MB, free: 1.656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.895e-05/2.895e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1102, allocations: 50.42 MB / 345 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.07049/0.1808, allocations: 45.67 MB / 390.7 MB, free: 11.13 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02986/0.2107, allocations: 10.7 MB / 401.4 MB, free: 404 kB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01017/0.2209, allocations: 251.4 kB / 401.6 MB, free: 152 kB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.3142/0.5351, allocations: 2.331 MB / 403.9 MB, free: 3.48 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0265/0.5617, allocations: 6.492 MB / 410.4 MB, free: 3.371 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005156/0.5669, allocations: 0.8556 MB / 411.3 MB, free: 3.355 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1144/0.6813, allocations: 47.21 MB / 458.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01351/0.6949, allocations: 5.98 MB / 464.5 MB, free: 6.965 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00323/0.6982, allocations: 1.064 MB / 465.5 MB, free: 6.258 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004081/0.7023, allocations: 1.627 MB / 467.2 MB, free: 5.051 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003988/0.7064, allocations: 1.109 MB / 468.3 MB, free: 4.16 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001644/0.7081, allocations: 172 kB / 468.4 MB, free: 3.992 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003683/0.7118, allocations: 1.948 MB / 470.4 MB, free: 2.555 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002098/0.7139, allocations: 340 kB / 470.7 MB, free: 2.223 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01275/0.7267, allocations: 7.544 MB / 478.3 MB, free: 11.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.7268, allocations: 0 / 478.3 MB, free: 11.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.7268, allocations: 0 / 478.3 MB, free: 11.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003319/0.7272, allocations: 4 kB / 478.3 MB, free: 11.66 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01631/0.7435, allocations: 4.821 MB / 483.1 MB, free: 7.047 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.7436, allocations: 8.031 kB / 483.1 MB, free: 7.039 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1201/0.8637, allocations: 11.63 MB / 494.7 MB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01397/0.8777, allocations: 3.904 MB / 498.6 MB, free: 7.629 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004608/0.8782, allocations: 310.2 kB / 498.9 MB, free: 7.359 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002481/0.8807, allocations: 441.4 kB / 499.4 MB, free: 6.965 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04189/0.9226, allocations: 12.46 MB / 0.4998 GB, free: 9.957 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002974/0.923, allocations: 46.94 kB / 0.4999 GB, free: 9.93 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001958/0.925, allocations: 188.3 kB / 0.5 GB, free: 9.781 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006207/0.9312, allocations: 2.032 MB / 0.502 GB, free: 7.777 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03756/0.9689, allocations: 10.54 MB / 0.5123 GB, free: 13.42 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08593/1.055, allocations: 44.28 MB / 0.5556 GB, free: 496 kB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02352/1.078, allocations: 4.842 MB / 0.5603 GB, free: 11.51 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01949/1.098, allocations: 7.094 MB / 0.5672 GB, free: 4.199 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.59e-05/1.098, allocations: 62.27 kB / 0.5673 GB, free: 4.133 MB / 474.7 MB Notification: Performance of pre-optimization done (n=179): time 7.033e-06/1.098, allocations: 0 / 0.5673 GB, free: 4.133 MB / 474.7 MB Notification: Performance of matching and sorting (n=223): time 0.4191/1.517, allocations: 19.45 MB / 0.5863 GB, free: 176.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.885e-05/1.517, allocations: 213.3 kB / 0.5865 GB, free: 176.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008944/1.526, allocations: 4.223 MB / 0.5906 GB, free: 174.7 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000522/1.527, allocations: 59.08 kB / 0.5907 GB, free: 174.7 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00279/1.53, allocations: 3.438 MB / 0.594 GB, free: 172 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001225/1.531, allocations: 0.8314 MB / 0.5948 GB, free: 171.4 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006317/1.532, allocations: 126.1 kB / 0.5949 GB, free: 171.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003942/1.532, allocations: 0.5733 MB / 0.5955 GB, free: 170.8 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005443/1.537, allocations: 2.203 MB / 0.5977 GB, free: 170.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008258/1.546, allocations: 5.929 MB / 0.6034 GB, free: 164.1 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008212/1.554, allocations: 3.557 MB / 0.6069 GB, free: 161.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.471e-05/1.554, allocations: 43.94 kB / 0.607 GB, free: 161.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.0253/1.58, allocations: 8.821 MB / 0.6156 GB, free: 152.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.303e-05/1.58, allocations: 64.25 kB / 0.6156 GB, free: 152.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001407/1.58, allocations: 132 kB / 0.6158 GB, free: 152.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006184/1.586, allocations: 1.238 MB / 0.617 GB, free: 151.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008279/1.594, allocations: 1.411 MB / 0.6183 GB, free: 149.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01672/1.611, allocations: 7.757 MB / 0.6259 GB, free: 142 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006997/1.618, allocations: 344.1 kB / 0.6263 GB, free: 141.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001176/1.619, allocations: 385.5 kB / 0.6266 GB, free: 141.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 46 (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.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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (766): * Single equations (assignments): 762 * 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.005779/1.625, allocations: 2.435 MB / 0.629 GB, free: 138.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/1.626, allocations: 406.8 kB / 0.6294 GB, free: 138.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01249/1.639, allocations: 3.883 MB / 0.6332 GB, free: 134.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.577e-05/1.639, allocations: 24 kB / 0.6332 GB, free: 134.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.671e-05/1.639, allocations: 8 kB / 0.6332 GB, free: 134.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.045e-05/1.639, allocations: 13.59 kB / 0.6332 GB, free: 134.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02896/1.668, allocations: 10.18 MB / 0.6432 GB, free: 124.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.201e-05/1.668, allocations: 7.953 kB / 0.6432 GB, free: 124.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003098/1.671, allocations: 344 kB / 0.6435 GB, free: 123.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005749/1.677, allocations: 0.989 MB / 0.6445 GB, free: 122.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004239/1.677, allocations: 45.97 kB / 0.6445 GB, free: 122.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01457/1.692, allocations: 6.425 MB / 0.6508 GB, free: 116.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/1.692, allocations: 7.938 kB / 0.6508 GB, free: 116.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01757/1.71, allocations: 7.225 MB / 0.6578 GB, free: 108.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001399/1.711, allocations: 475.6 kB / 0.6583 GB, free: 108.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001132/1.712, allocations: 36 kB / 0.6583 GB, free: 108.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003088/1.715, allocations: 111.9 kB / 0.6584 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004986/1.716, allocations: 147.4 kB / 0.6586 GB, free: 108 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002232/1.716, allocations: 63.98 kB / 0.6586 GB, free: 107.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006642/1.723, allocations: 3.004 MB / 0.6616 GB, free: 104.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.42e-07/1.723, allocations: 0 / 0.6616 GB, free: 104.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007287/1.73, allocations: 1.193 MB / 0.6627 GB, free: 103.7 MB / 474.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.0009991/1.731, allocations: 239.4 kB / 0.663 GB, free: 103.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01245/1.744, allocations: 5.463 MB / 0.6683 GB, free: 98.04 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/1.744, allocations: 4 kB / 0.6683 GB, free: 98.04 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004358/1.748, allocations: 1.835 MB / 0.6701 GB, free: 96.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004433/1.753, allocations: 0.5057 MB / 0.6706 GB, free: 95.69 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02898/1.782, allocations: 13.51 MB / 0.6838 GB, free: 82.07 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007827/1.79, allocations: 3.979 MB / 0.6877 GB, free: 78.06 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001764/1.791, allocations: 319.4 kB / 0.688 GB, free: 77.75 MB / 474.7 MB Notification: Performance of SimCode: time 1.442e-06/1.791, allocations: 0 / 0.688 GB, free: 77.75 MB / 474.7 MB Notification: Performance of Templates: time 0.4761/2.267, allocations: 87.32 MB / 0.7733 GB, free: 155.7 MB / 474.7 MB