Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.977/1.977, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.652e-05/2.656e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.303, allocations: 44.5 MB / 294.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1881/0.4911, allocations: 92.13 MB / 386.3 MB, free: 5.82 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003238/0.4915, allocations: 95.92 kB / 386.4 MB, free: 5.727 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5547/1.046, allocations: 72.38 MB / 458.8 MB, free: 88.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.795e-06/1.046, allocations: 4 kB / 458.8 MB, free: 88.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002887/1.047, allocations: 63.81 kB / 458.9 MB, free: 88.36 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.01686/1.063, allocations: 3.43 MB / 462.3 MB, free: 86.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.377e-05/1.064, allocations: 7.875 kB / 462.3 MB, free: 86.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02397/1.088, allocations: 2.264 MB / 464.6 MB, free: 84.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02019/1.108, allocations: 3.9 MB / 468.5 MB, free: 80.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002061/1.108, allocations: 116 kB / 468.6 MB, free: 80.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001704/1.11, allocations: 208 kB / 468.8 MB, free: 79.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0146/1.124, allocations: 5.5 MB / 474.3 MB, free: 74.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02443/1.149, allocations: 8.447 MB / 482.7 MB, free: 64.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002258/1.149, allocations: 59.41 kB / 482.8 MB, free: 64.87 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009954/1.15, allocations: 32 kB / 482.8 MB, free: 64.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002852/1.153, allocations: 0.9739 MB / 483.8 MB, free: 63.87 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09319/1.246, allocations: 43.42 MB / 0.5149 GB, free: 19.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004787/1.251, allocations: 2.686 MB / 0.5175 GB, free: 16.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00287/1.254, allocations: 1.622 MB / 0.5191 GB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007322/1.255, allocations: 0.5477 MB / 0.5196 GB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/1.255, allocations: 51.48 kB / 0.5197 GB, free: 14.11 MB / 362.7 MB Notification: Performance of pre-optimization done (n=145): time 4.528e-06/1.255, allocations: 0 / 0.5197 GB, free: 14.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=162): time 0.06141/1.316, allocations: 16.16 MB / 0.5354 GB, free: 13.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.602e-05/1.316, allocations: 146 kB / 0.5356 GB, free: 13.67 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006012/1.322, allocations: 2.598 MB / 0.5381 GB, free: 11.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004396/1.323, allocations: 29.64 kB / 0.5381 GB, free: 11.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002973/1.326, allocations: 2.747 MB / 0.5408 GB, free: 8.238 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001219/1.327, allocations: 0.617 MB / 0.5414 GB, free: 7.613 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006005/1.328, allocations: 0 / 0.5414 GB, free: 7.613 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005055/1.328, allocations: 0.5542 MB / 0.542 GB, free: 7.047 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004738/1.333, allocations: 1.799 MB / 0.5437 GB, free: 5.238 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008383/1.341, allocations: 5.275 MB / 0.5489 GB, free: 14.19 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007744/1.349, allocations: 3.045 MB / 0.5518 GB, free: 11.14 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001256/1.349, allocations: 36 kB / 0.5519 GB, free: 11.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=739) (initialization): time 0.02535/1.375, allocations: 7.291 MB / 0.559 GB, free: 3.812 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001201/1.375, allocations: 60 kB / 0.5591 GB, free: 3.754 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002089/1.375, allocations: 124 kB / 0.5592 GB, free: 3.633 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00754/1.383, allocations: 1.299 MB / 0.5604 GB, free: 2.332 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008571/1.391, allocations: 1.314 MB / 0.5617 GB, free: 1.016 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3242/1.716, allocations: 5.808 MB / 0.5674 GB, free: 102.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006382/1.722, allocations: 248.5 kB / 0.5676 GB, free: 102.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001034/1.723, allocations: 352.2 kB / 0.568 GB, free: 102.1 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.001011/1.724, allocations: 414.9 kB / 0.5684 GB, free: 101.9 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01159/1.736, allocations: 3.481 MB / 0.5718 GB, free: 101.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006865/1.736, allocations: 274.3 kB / 0.572 GB, free: 101.9 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01073/1.747, allocations: 3.139 MB / 0.5751 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.473e-05/1.747, allocations: 15.75 kB / 0.5751 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.495e-05/1.747, allocations: 10.97 kB / 0.5751 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.418e-05/1.747, allocations: 11.72 kB / 0.5751 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01978/1.767, allocations: 6.896 MB / 0.5819 GB, free: 100.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.62e-05/1.767, allocations: 3.531 kB / 0.5819 GB, free: 100.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00225/1.769, allocations: 246.4 kB / 0.5821 GB, free: 100.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006263/1.776, allocations: 1.098 MB / 0.5832 GB, free: 100.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001841/1.776, allocations: 11.52 kB / 0.5832 GB, free: 100.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01186/1.788, allocations: 5.461 MB / 0.5885 GB, free: 98.23 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/1.788, allocations: 3.188 kB / 0.5885 GB, free: 98.23 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01404/1.802, allocations: 5.538 MB / 0.5939 GB, free: 96.23 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001656/1.803, allocations: 0.5441 MB / 0.5945 GB, free: 95.91 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006021/1.804, allocations: 3.656 kB / 0.5945 GB, free: 95.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002298/1.806, allocations: 86.95 kB / 0.5946 GB, free: 95.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003849/1.807, allocations: 89.12 kB / 0.5946 GB, free: 95.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001734/1.807, allocations: 39.69 kB / 0.5947 GB, free: 95.89 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003133/1.81, allocations: 1.704 MB / 0.5963 GB, free: 95.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.11e-07/1.81, allocations: 3.438 kB / 0.5963 GB, free: 95.25 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005814/1.816, allocations: 0.774 MB / 0.5971 GB, free: 95.25 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.0147/1.831, allocations: 6.344 MB / 0.6033 GB, free: 92.48 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009523/1.84, allocations: 4.415 MB / 0.6076 GB, free: 91.17 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/1.84, allocations: 0 / 0.6076 GB, free: 91.17 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00319/1.844, allocations: 1.466 MB / 0.609 GB, free: 89.97 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002047/1.846, allocations: 253.5 kB / 0.6093 GB, free: 89.75 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02554/1.871, allocations: 8.052 MB / 0.6171 GB, free: 83.07 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004911/1.876, allocations: 2.9 MB / 0.62 GB, free: 80.86 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003424/1.88, allocations: 1.595 MB / 0.6215 GB, free: 79.39 MB / 394.7 MB Notification: Performance of SimCode: time 1.282e-06/1.88, allocations: 0 / 0.6215 GB, free: 79.39 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.002/5.881, allocations: 81.45 MB / 0.7011 GB, free: 272 kB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat