Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 1.837/1.837, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.34e-05/4.369e-05, allocations: 4 kB / 255.4 MB, free: 3.207 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.104, allocations: 44.5 MB / 299.9 MB, free: 6.641 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3413/0.4453, allocations: 88.02 MB / 387.9 MB, free: 20.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/0.4456, allocations: 86.03 kB / 388 MB, free: 20.64 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3075/0.7531, allocations: 83.59 MB / 471.6 MB, free: 0.875 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.7531, allocations: 3.938 kB / 471.6 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002191/0.7534, allocations: 75.98 kB / 471.6 MB, free: 0.7969 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: 1450 * Number of variables: 1450 Notification: Performance of Generate backend data structure: time 0.01169/0.7651, allocations: 3.798 MB / 475.4 MB, free: 12.94 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.7651, allocations: 8.031 kB / 475.4 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01858/0.7837, allocations: 2.447 MB / 477.9 MB, free: 10.47 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01612/0.7999, allocations: 5.023 MB / 482.9 MB, free: 5.383 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004598/0.8004, allocations: 308.1 kB / 483.2 MB, free: 5.078 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001852/0.8023, allocations: 411.8 kB / 483.6 MB, free: 4.676 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02482/0.8271, allocations: 9.75 MB / 493.4 MB, free: 9.863 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002028/0.8274, allocations: 71.39 kB / 493.4 MB, free: 9.793 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000976/0.8284, allocations: 199.9 kB / 493.6 MB, free: 9.598 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002002/0.8304, allocations: 0.9863 MB / 494.6 MB, free: 8.605 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02034/0.8507, allocations: 7.347 MB / 0.4902 GB, free: 1.246 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3288/1.18, allocations: 45.39 MB / 0.5345 GB, free: 46.74 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007721/1.187, allocations: 2.683 MB / 0.5371 GB, free: 46.07 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001668/1.189, allocations: 0.8136 MB / 0.5379 GB, free: 46.04 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007045/1.196, allocations: 3.453 MB / 0.5413 GB, free: 44.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/1.196, allocations: 48.16 kB / 0.5414 GB, free: 44.71 MB / 394.7 MB Notification: Performance of pre-optimization done (n=127): time 5.577e-06/1.196, allocations: 0 / 0.5414 GB, free: 44.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=145): time 0.0266/1.223, allocations: 8.194 MB / 0.5494 GB, free: 41.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/1.223, allocations: 143.5 kB / 0.5495 GB, free: 41.82 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006398/1.229, allocations: 3.425 MB / 0.5528 GB, free: 41.49 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002179/1.23, allocations: 43.42 kB / 0.5529 GB, free: 41.46 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001884/1.232, allocations: 3.013 MB / 0.5558 GB, free: 39.84 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005752/1.232, allocations: 0.5839 MB / 0.5564 GB, free: 39.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003505/1.233, allocations: 111.2 kB / 0.5565 GB, free: 39.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003469/1.233, allocations: 0.5566 MB / 0.557 GB, free: 39.19 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003191/1.236, allocations: 1.467 MB / 0.5585 GB, free: 39.18 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005094/1.241, allocations: 5.149 MB / 0.5635 GB, free: 34.34 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00507/1.246, allocations: 2.757 MB / 0.5662 GB, free: 34.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001104/1.246, allocations: 39.41 kB / 0.5662 GB, free: 34.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01387/1.26, allocations: 5.902 MB / 0.572 GB, free: 33.97 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001053/1.261, allocations: 64.66 kB / 0.5721 GB, free: 33.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001541/1.261, allocations: 134.5 kB / 0.5722 GB, free: 33.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002184/1.261, allocations: 193.9 kB / 0.5724 GB, free: 33.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006053/1.267, allocations: 1.379 MB / 0.5737 GB, free: 33.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002226/1.267, allocations: 268 kB / 0.574 GB, free: 33.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005961/1.273, allocations: 371.4 kB / 0.5743 GB, free: 33.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001076/1.274, allocations: 363.9 kB / 0.5747 GB, free: 33.77 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 607 * Number of states: 0 () * Number of discrete variables: 33 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (726): * Single equations (assignments): 723 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001004/1.275, allocations: 0.5517 MB / 0.5752 GB, free: 33.36 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006672/1.276, allocations: 335.7 kB / 0.5755 GB, free: 33.18 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002402/1.278, allocations: 1.178 MB / 0.5767 GB, free: 32.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.155e-05/1.279, allocations: 18.66 kB / 0.5767 GB, free: 32.7 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/1.279, allocations: 4 kB / 0.5767 GB, free: 32.7 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.848e-05/1.279, allocations: 7.875 kB / 0.5767 GB, free: 32.7 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01187/1.291, allocations: 5.571 MB / 0.5822 GB, free: 30.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-05/1.291, allocations: 19.34 kB / 0.5822 GB, free: 30.14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001334/1.292, allocations: 272.9 kB / 0.5824 GB, free: 30.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.318e-05/1.292, allocations: 32.89 kB / 0.5825 GB, free: 30.11 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001244/1.292, allocations: 48.77 kB / 0.5825 GB, free: 30.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.684e-05/1.292, allocations: 35.88 kB / 0.5825 GB, free: 30.08 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.785e-05/1.292, allocations: 25.34 kB / 0.5826 GB, free: 30.08 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00457/1.297, allocations: 5.107 MB / 0.5876 GB, free: 25.87 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001503/1.298, allocations: 0.5177 MB / 0.5881 GB, free: 25.52 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006279/1.299, allocations: 49.77 kB / 0.5881 GB, free: 25.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002185/1.301, allocations: 90.08 kB / 0.5882 GB, free: 25.48 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002403/1.301, allocations: 136 kB / 0.5883 GB, free: 25.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001418/1.302, allocations: 74.62 kB / 0.5884 GB, free: 25.42 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004918/1.307, allocations: 2.36 MB / 0.5907 GB, free: 24.62 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.95e-07/1.307, allocations: 3.562 kB / 0.5907 GB, free: 24.62 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00632/1.313, allocations: 0.8673 MB / 0.5915 GB, free: 24.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 79 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 135 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005052/1.313, allocations: 203.1 kB / 0.5917 GB, free: 24.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006529/1.32, allocations: 3.274 MB / 0.5949 GB, free: 23.31 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-05/1.32, allocations: 0 / 0.5949 GB, free: 23.31 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001239/1.321, allocations: 0.6769 MB / 0.5956 GB, free: 23.09 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002789/1.324, allocations: 417.2 kB / 0.596 GB, free: 22.91 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01593/1.34, allocations: 7.32 MB / 0.6031 GB, free: 19.47 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005152/1.345, allocations: 3.167 MB / 0.6062 GB, free: 17.05 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009735/1.346, allocations: 277.9 kB / 0.6065 GB, free: 16.79 MB / 394.7 MB Notification: Performance of SimCode: time 1.946e-06/1.346, allocations: 3.938 kB / 0.6065 GB, free: 16.79 MB / 394.7 MB Notification: Performance of Templates: time 0.08264/1.429, allocations: 48.52 MB / 0.6539 GB, free: 10.72 MB / 426.7 MB