Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadModel(Modelica): time 2.088/2.088, allocations: 224.8 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.66e-05/2.659e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1106, allocations: 50.41 MB / 345 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.04689/0.1575, allocations: 28.63 MB / 373.6 MB, free: 12.24 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0209/0.1785, allocations: 7.103 MB / 380.7 MB, free: 5.113 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006318/0.1848, allocations: 147.6 kB / 380.9 MB, free: 4.969 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005232/0.1901, allocations: 1.427 MB / 382.3 MB, free: 3.535 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01652/0.2067, allocations: 4.133 MB / 386.4 MB, free: 15.39 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003048/0.2098, allocations: 0.5342 MB / 386.9 MB, free: 14.86 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004341/0.2142, allocations: 1.412 MB / 388.4 MB, free: 13.44 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00637/0.2206, allocations: 2.981 MB / 391.3 MB, free: 10.42 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001675/0.2223, allocations: 0.6741 MB / 392 MB, free: 9.746 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002461/0.2248, allocations: 1.11 MB / 393.1 MB, free: 8.633 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00274/0.2276, allocations: 0.8348 MB / 394 MB, free: 7.797 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001106/0.2288, allocations: 119.9 kB / 394.1 MB, free: 7.68 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002086/0.2309, allocations: 1.251 MB / 395.3 MB, free: 6.426 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001095/0.232, allocations: 224 kB / 395.5 MB, free: 6.207 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007577/0.2396, allocations: 4.497 MB / 400 MB, free: 1.699 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2397, allocations: 0 / 400 MB, free: 1.699 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.2397, allocations: 4 kB / 400 MB, free: 1.695 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002093/0.2399, allocations: 0 / 400 MB, free: 1.695 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.335/0.5749, allocations: 3.404 MB / 403.5 MB, free: 51.52 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.238e-05/0.575, allocations: 11.34 kB / 403.5 MB, free: 51.52 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02181/0.5968, allocations: 2.241 MB / 405.7 MB, free: 51.27 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009025/0.6059, allocations: 1.913 MB / 407.6 MB, free: 50.33 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004969/0.6065, allocations: 204.4 kB / 407.8 MB, free: 50.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002124/0.6086, allocations: 273.2 kB / 408.1 MB, free: 50.2 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04318/0.6518, allocations: 10.08 MB / 418.2 MB, free: 44.46 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002039/0.6521, allocations: 43.55 kB / 418.2 MB, free: 44.42 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001365/0.6535, allocations: 131.8 kB / 418.3 MB, free: 44.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007039/0.6606, allocations: 1.852 MB / 420.2 MB, free: 42.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04022/0.7008, allocations: 8.638 MB / 428.8 MB, free: 33.84 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08512/0.786, allocations: 37.37 MB / 466.2 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04368/0.8298, allocations: 6.439 MB / 472.6 MB, free: 5.027 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02938/0.8592, allocations: 8.593 MB / 481.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.175e-05/0.8594, allocations: 47.56 kB / 481.3 MB, free: 12.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=150): time 7.474e-06/0.8594, allocations: 0 / 481.3 MB, free: 12.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=166): time 0.1851/1.044, allocations: 23.68 MB / 0.4931 GB, free: 4.305 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001338/1.045, allocations: 145.5 kB / 0.4932 GB, free: 4.133 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01164/1.056, allocations: 3.204 MB / 0.4964 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006035/1.057, allocations: 46.56 kB / 0.4964 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004066/1.061, allocations: 2.694 MB / 0.4991 GB, free: 14.19 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001687/1.063, allocations: 0.6464 MB / 0.4997 GB, free: 13.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00105/1.064, allocations: 112 kB / 0.4998 GB, free: 13.44 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0008212/1.065, allocations: 0.5423 MB / 0.5003 GB, free: 12.89 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00882/1.074, allocations: 2.022 MB / 0.5023 GB, free: 10.86 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01323/1.087, allocations: 5.42 MB / 0.5076 GB, free: 3.727 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01231/1.099, allocations: 3.218 MB / 0.5107 GB, free: 0.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001515/1.1, allocations: 39.94 kB / 0.5108 GB, free: 472 kB / 394.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.03966/1.139, allocations: 8.206 MB / 0.5188 GB, free: 8.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001808/1.139, allocations: 60.94 kB / 0.5188 GB, free: 8.191 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002833/1.14, allocations: 120 kB / 0.519 GB, free: 8.074 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01001/1.15, allocations: 1.319 MB / 0.5202 GB, free: 6.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01034/1.16, allocations: 1.275 MB / 0.5215 GB, free: 5.473 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02158/1.182, allocations: 6.267 MB / 0.5276 GB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009731/1.192, allocations: 323.2 kB / 0.5279 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001722/1.193, allocations: 336 kB / 0.5282 GB, free: 14.44 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (681): * Single equations (assignments): 677 * 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 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007065/1.201, allocations: 1.779 MB / 0.53 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001291/1.202, allocations: 311.9 kB / 0.5303 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02003/1.222, allocations: 3.587 MB / 0.5338 GB, free: 8.734 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.832e-05/1.222, allocations: 16 kB / 0.5338 GB, free: 8.719 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.191e-05/1.222, allocations: 4 kB / 0.5338 GB, free: 8.715 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.797e-05/1.222, allocations: 11.97 kB / 0.5338 GB, free: 8.703 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03805/1.26, allocations: 7.987 MB / 0.5416 GB, free: 0.6602 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.44e-05/1.26, allocations: 4 kB / 0.5416 GB, free: 0.6562 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002553/1.263, allocations: 259.6 kB / 0.5419 GB, free: 412 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007062/1.27, allocations: 1.12 MB / 0.543 GB, free: 15.28 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004058/1.27, allocations: 35.89 kB / 0.543 GB, free: 15.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01476/1.285, allocations: 5.886 MB / 0.5487 GB, free: 9.23 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/1.285, allocations: 0 / 0.5487 GB, free: 9.23 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01848/1.304, allocations: 6.135 MB / 0.5547 GB, free: 3.055 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001114/1.305, allocations: 369 kB / 0.5551 GB, free: 2.672 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008932/1.306, allocations: 23.95 kB / 0.5551 GB, free: 2.648 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00259/1.308, allocations: 115.8 kB / 0.5552 GB, free: 2.535 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000406/1.309, allocations: 88.88 kB / 0.5553 GB, free: 2.449 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002109/1.309, allocations: 44 kB / 0.5553 GB, free: 2.406 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005517/1.315, allocations: 2.224 MB / 0.5575 GB, free: 196 kB / 442.7 MB Notification: Performance of sort global known variables: time 6.02e-07/1.315, allocations: 0 / 0.5575 GB, free: 196 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.2976/1.612, allocations: 0.9338 MB / 0.5584 GB, free: 145.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 125 * 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%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009615/1.613, allocations: 183.6 kB / 0.5586 GB, free: 145.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01323/1.626, allocations: 4.946 MB / 0.5634 GB, free: 145 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/1.627, allocations: 0 / 0.5634 GB, free: 145 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004347/1.631, allocations: 1.627 MB / 0.565 GB, free: 144.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002514/1.633, allocations: 315.9 kB / 0.5653 GB, free: 144.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02275/1.656, allocations: 10.04 MB / 0.5751 GB, free: 139.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005056/1.661, allocations: 2.929 MB / 0.578 GB, free: 138.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001583/1.663, allocations: 266.6 kB / 0.5782 GB, free: 138.1 MB / 442.7 MB Notification: Performance of SimCode: time 1.593e-06/1.663, allocations: 0 / 0.5782 GB, free: 138.1 MB / 442.7 MB Notification: Performance of Templates: time 0.118/1.781, allocations: 64.33 MB / 0.6411 GB, free: 78.77 MB / 442.7 MB