Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.304/2.304, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.147e-05/4.16e-05, allocations: 3.562 kB / 249.8 MB, free: 5.254 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1199, allocations: 44.52 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5026/0.6226, allocations: 92.13 MB / 386.4 MB, free: 4.359 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003264/0.6229, allocations: 82.2 kB / 386.5 MB, free: 4.348 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3992/1.022, allocations: 72.39 MB / 458.9 MB, free: 12.65 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.865e-06/1.022, allocations: 3.938 kB / 458.9 MB, free: 12.65 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002382/1.022, allocations: 68 kB / 459 MB, free: 12.58 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1323 * Number of variables: 1323 Notification: Performance of Generate backend data structure: time 0.01509/1.038, allocations: 3.429 MB / 462.4 MB, free: 9.098 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.148e-05/1.038, allocations: 12.03 kB / 462.4 MB, free: 9.086 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02142/1.059, allocations: 2.257 MB / 464.7 MB, free: 6.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01831/1.077, allocations: 3.889 MB / 468.6 MB, free: 2.883 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003135/1.078, allocations: 120 kB / 468.7 MB, free: 2.766 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002172/1.08, allocations: 212 kB / 468.9 MB, free: 2.559 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01689/1.097, allocations: 5.5 MB / 474.4 MB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02394/1.121, allocations: 8.451 MB / 482.8 MB, free: 3.641 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002221/1.121, allocations: 63.39 kB / 482.9 MB, free: 3.578 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009341/1.122, allocations: 28 kB / 482.9 MB, free: 3.551 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002951/1.125, allocations: 0.978 MB / 483.9 MB, free: 2.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4276/1.553, allocations: 43.41 MB / 0.515 GB, free: 63.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00751/1.56, allocations: 2.687 MB / 0.5176 GB, free: 63.24 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004457/1.565, allocations: 1.622 MB / 0.5192 GB, free: 63.21 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001033/1.566, allocations: 0.5497 MB / 0.5197 GB, free: 62.73 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/1.566, allocations: 47.84 kB / 0.5198 GB, free: 62.7 MB / 394.7 MB Notification: Performance of pre-optimization done (n=145): time 6.772e-06/1.566, allocations: 0 / 0.5198 GB, free: 62.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=162): time 0.1011/1.667, allocations: 16.15 MB / 0.5355 GB, free: 60.21 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.967e-05/1.667, allocations: 151.8 kB / 0.5357 GB, free: 60.05 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01072/1.678, allocations: 2.602 MB / 0.5382 GB, free: 59.75 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007112/1.679, allocations: 25.7 kB / 0.5382 GB, free: 59.71 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004532/1.683, allocations: 2.75 MB / 0.5409 GB, free: 58.3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001417/1.685, allocations: 0.6152 MB / 0.5415 GB, free: 57.95 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008362/1.686, allocations: 0 / 0.5415 GB, free: 57.95 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005437/1.686, allocations: 0.5417 MB / 0.542 GB, free: 57.63 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005147/1.692, allocations: 1.797 MB / 0.5438 GB, free: 57.61 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007912/1.7, allocations: 5.279 MB / 0.549 GB, free: 52.54 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008112/1.708, allocations: 3.046 MB / 0.5519 GB, free: 51.66 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001748/1.708, allocations: 37.34 kB / 0.552 GB, free: 51.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=739) (initialization): time 0.02705/1.735, allocations: 7.35 MB / 0.5591 GB, free: 49.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/1.735, allocations: 61.56 kB / 0.5592 GB, free: 49.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001961/1.735, allocations: 123.3 kB / 0.5593 GB, free: 49.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008552/1.744, allocations: 1.299 MB / 0.5606 GB, free: 49.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009423/1.753, allocations: 1.307 MB / 0.5619 GB, free: 49.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0158/1.769, allocations: 5.821 MB / 0.5675 GB, free: 46.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00771/1.777, allocations: 249.5 kB / 0.5678 GB, free: 46.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001657/1.779, allocations: 351.1 kB / 0.5681 GB, free: 46.43 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 571 * Number of states: 0 () * Number of discrete variables: 33 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (696): * Single equations (assignments): 692 * 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.001664/1.78, allocations: 415.7 kB / 0.5685 GB, free: 46.09 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01624/1.797, allocations: 3.462 MB / 0.5719 GB, free: 45.05 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00138/1.798, allocations: 274.4 kB / 0.5722 GB, free: 44.9 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03325/1.831, allocations: 3.151 MB / 0.5752 GB, free: 42.59 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.203e-05/1.832, allocations: 16.7 kB / 0.5753 GB, free: 42.58 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.352e-05/1.832, allocations: 8 kB / 0.5753 GB, free: 42.57 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.351e-05/1.832, allocations: 6.797 kB / 0.5753 GB, free: 42.57 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06301/1.895, allocations: 6.917 MB / 0.582 GB, free: 37.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.715e-05/1.895, allocations: 4 kB / 0.582 GB, free: 37.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005046/1.9, allocations: 243.2 kB / 0.5823 GB, free: 36.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01373/1.914, allocations: 1.094 MB / 0.5833 GB, free: 36.24 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006136/1.914, allocations: 15.52 kB / 0.5833 GB, free: 36.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02489/1.939, allocations: 5.454 MB / 0.5887 GB, free: 31.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.224e-05/1.939, allocations: 3.953 kB / 0.5887 GB, free: 31.5 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02843/1.968, allocations: 5.54 MB / 0.5941 GB, free: 26.82 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003293/1.971, allocations: 0.5383 MB / 0.5946 GB, free: 26.31 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001481/1.973, allocations: 7.953 kB / 0.5946 GB, free: 26.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004575/1.977, allocations: 89.67 kB / 0.5947 GB, free: 26.25 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006259/1.978, allocations: 85.41 kB / 0.5948 GB, free: 26.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002216/1.978, allocations: 44 kB / 0.5948 GB, free: 26.16 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004211/1.982, allocations: 1.711 MB / 0.5965 GB, free: 24.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.983, allocations: 0 / 0.5965 GB, free: 24.68 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007546/1.99, allocations: 0.7717 MB / 0.5972 GB, free: 23.91 MB / 394.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 (126): * Single equations (assignments): 122 * 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.01816/2.008, allocations: 6.35 MB / 0.6034 GB, free: 18.43 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01149/2.02, allocations: 4.413 MB / 0.6078 GB, free: 14.45 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/2.02, allocations: 8 kB / 0.6078 GB, free: 14.45 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003922/2.024, allocations: 1.467 MB / 0.6092 GB, free: 13.13 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002626/2.026, allocations: 240.6 kB / 0.6094 GB, free: 12.92 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03139/2.058, allocations: 7.66 MB / 0.6169 GB, free: 6.414 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006663/2.065, allocations: 2.902 MB / 0.6197 GB, free: 3.906 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.009707/2.074, allocations: 1.767 MB / 0.6215 GB, free: 2.137 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004345/2.079, allocations: 1.554 MB / 0.623 GB, free: 0.582 MB / 394.7 MB Notification: Performance of SimCode: time 1.643e-06/2.079, allocations: 0 / 0.623 GB, free: 0.582 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6039/2.683, allocations: 61.63 MB / 0.6832 GB, free: 94.65 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002932/2.683, allocations: 168.7 kB / 0.6833 GB, free: 94.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.07/8.753, allocations: 7.906 kB / 0.6833 GB, free: 94.46 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat