Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.068/2.068, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.444e-05/3.459e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3516, allocations: 44.5 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1645/0.5161, allocations: 87.36 MB / 381.6 MB, free: 10.5 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000328/0.5165, allocations: 87.94 kB / 381.7 MB, free: 10.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6214/1.138, allocations: 81.88 MB / 463.5 MB, free: 84.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.138, allocations: 0 / 463.5 MB, free: 84.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000217/1.138, allocations: 74.12 kB / 463.6 MB, free: 84.18 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: 1450 * Number of variables: 1450 Notification: Performance of Generate backend data structure: time 0.01372/1.152, allocations: 3.801 MB / 467.4 MB, free: 80.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/1.152, allocations: 12.03 kB / 467.4 MB, free: 80.38 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01956/1.172, allocations: 2.428 MB / 469.8 MB, free: 77.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01717/1.189, allocations: 5.034 MB / 474.9 MB, free: 72.9 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002773/1.189, allocations: 136 kB / 475 MB, free: 72.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002064/1.191, allocations: 243.9 kB / 475.2 MB, free: 72.53 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01427/1.205, allocations: 5.728 MB / 481 MB, free: 66.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02159/1.227, allocations: 8.887 MB / 489.9 MB, free: 56.85 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002534/1.227, allocations: 66.28 kB / 489.9 MB, free: 56.79 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001548/1.229, allocations: 32 kB / 490 MB, free: 56.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002328/1.231, allocations: 0.9824 MB / 490.9 MB, free: 55.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05846/1.29, allocations: 44.6 MB / 0.523 GB, free: 9.797 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003201/1.293, allocations: 1.825 MB / 0.5248 GB, free: 7.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001509/1.295, allocations: 0.7431 MB / 0.5255 GB, free: 7.066 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005707/1.295, allocations: 452 kB / 0.5259 GB, free: 6.555 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/1.295, allocations: 47.12 kB / 0.526 GB, free: 6.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=130): time 4.519e-06/1.295, allocations: 0 / 0.526 GB, free: 6.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=142): time 0.02212/1.317, allocations: 6.863 MB / 0.5327 GB, free: 15.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.56e-05/1.318, allocations: 149.2 kB / 0.5328 GB, free: 15.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00772/1.325, allocations: 2.974 MB / 0.5357 GB, free: 12.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002968/1.326, allocations: 25.7 kB / 0.5357 GB, free: 12.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003633/1.329, allocations: 3.115 MB / 0.5388 GB, free: 9.176 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009653/1.33, allocations: 0.5555 MB / 0.5393 GB, free: 8.613 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006004/1.331, allocations: 0 / 0.5393 GB, free: 8.613 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005408/1.331, allocations: 0.5629 MB / 0.5399 GB, free: 8.039 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004004/1.335, allocations: 1.39 MB / 0.5412 GB, free: 6.645 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008002/1.343, allocations: 5.233 MB / 0.5463 GB, free: 15.45 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006944/1.35, allocations: 2.705 MB / 0.549 GB, free: 12.74 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001364/1.351, allocations: 40 kB / 0.549 GB, free: 12.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=774) (initialization): time 0.01757/1.368, allocations: 5.628 MB / 0.5545 GB, free: 7.074 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001294/1.368, allocations: 65 kB / 0.5546 GB, free: 7.012 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002886/1.369, allocations: 136 kB / 0.5547 GB, free: 6.879 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000314/1.369, allocations: 208 kB / 0.5549 GB, free: 6.676 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009128/1.378, allocations: 1.427 MB / 0.5563 GB, free: 5.246 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003197/1.379, allocations: 271 kB / 0.5566 GB, free: 4.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006718/1.385, allocations: 267.4 kB / 0.5568 GB, free: 4.719 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001391/1.387, allocations: 375.3 kB / 0.5572 GB, free: 4.355 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 633 * 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 (750): * Single equations (assignments): 747 * 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.001039/1.388, allocations: 444.6 kB / 0.5576 GB, free: 3.91 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003827/1.392, allocations: 1.465 MB / 0.559 GB, free: 2.438 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007042/1.392, allocations: 308.1 kB / 0.5593 GB, free: 2.133 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002979/1.395, allocations: 0.9993 MB / 0.5603 GB, free: 1.125 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.099e-05/1.395, allocations: 16 kB / 0.5603 GB, free: 1.109 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/1.395, allocations: 0 / 0.5603 GB, free: 1.109 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.451e-05/1.396, allocations: 7.969 kB / 0.5603 GB, free: 1.102 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2862/1.682, allocations: 4.718 MB / 0.5649 GB, free: 98.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.38e-05/1.682, allocations: 15.44 kB / 0.5649 GB, free: 98.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001916/1.684, allocations: 264 kB / 0.5652 GB, free: 98.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.229e-05/1.684, allocations: 27.84 kB / 0.5652 GB, free: 98.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001266/1.684, allocations: 23.69 kB / 0.5652 GB, free: 98.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.334e-05/1.684, allocations: 32.98 kB / 0.5653 GB, free: 98.98 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.692e-05/1.684, allocations: 24.34 kB / 0.5653 GB, free: 98.98 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005789/1.69, allocations: 4.613 MB / 0.5698 GB, free: 96.09 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0017/1.692, allocations: 489.9 kB / 0.5703 GB, free: 96 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000887/1.692, allocations: 32.69 kB / 0.5703 GB, free: 95.99 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002388/1.695, allocations: 65.88 kB / 0.5704 GB, free: 95.99 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002974/1.695, allocations: 127.8 kB / 0.5705 GB, free: 95.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001504/1.695, allocations: 63.08 kB / 0.5706 GB, free: 95.98 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005116/1.7, allocations: 1.966 MB / 0.5725 GB, free: 95.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.172e-06/1.7, allocations: 0 / 0.5725 GB, free: 95.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006835/1.707, allocations: 0.7311 MB / 0.5732 GB, free: 95.84 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 70 * 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 (135): * Single equations (assignments): 132 * 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.00655/1.714, allocations: 9.167 MB / 0.5821 GB, free: 88.63 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007037/1.721, allocations: 3.231 MB / 0.5853 GB, free: 88.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.881e-05/1.721, allocations: 3.938 kB / 0.5853 GB, free: 88.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001335/1.722, allocations: 0.6578 MB / 0.5859 GB, free: 88.45 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003046/1.725, allocations: 345.4 kB / 0.5863 GB, free: 88.43 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02634/1.752, allocations: 8.334 MB / 0.5944 GB, free: 86.25 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006419/1.758, allocations: 3.147 MB / 0.5975 GB, free: 85.05 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00403/1.762, allocations: 1.805 MB / 0.5992 GB, free: 83.61 MB / 394.7 MB Notification: Performance of SimCode: time 2.034e-06/1.762, allocations: 0 / 0.5992 GB, free: 83.61 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.112/5.874, allocations: 70.73 MB / 0.6683 GB, free: 30.2 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat