Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.991/1.991, allocations: 194.9 MB / 208.5 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.244e-05/3.249e-05, allocations: 0 / 255.4 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09669/0.09675, allocations: 44.51 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4256/0.5224, allocations: 84.72 MB / 384.7 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/0.5227, allocations: 86.84 kB / 384.8 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2321/0.7548, allocations: 56.73 MB / 441.5 MB, free: 5.422 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.7549, allocations: 0 / 441.5 MB, free: 5.422 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001171/0.755, allocations: 44 kB / 441.5 MB, free: 5.379 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: 931 * Number of variables: 931 Notification: Performance of Generate backend data structure: time 0.009632/0.7646, allocations: 2.524 MB / 444.1 MB, free: 3.004 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.66e-05/0.7647, allocations: 15.95 kB / 444.1 MB, free: 2.988 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001501/0.7662, allocations: 483.2 kB / 444.5 MB, free: 2.699 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01583/0.7821, allocations: 1.972 MB / 446.5 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01336/0.7955, allocations: 3.269 MB / 449.8 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002109/0.7957, allocations: 179.1 kB / 450 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009413/0.7967, allocations: 238.9 kB / 450.2 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01781/0.8145, allocations: 6.687 MB / 456.9 MB, free: 7.211 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001513/0.8147, allocations: 55.52 kB / 456.9 MB, free: 7.156 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006063/0.8153, allocations: 123 kB / 457.1 MB, free: 7.059 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001699/0.817, allocations: 0.7033 MB / 457.8 MB, free: 6.352 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0172/0.8342, allocations: 5.57 MB / 463.3 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05377/0.8881, allocations: 33.29 MB / 496.6 MB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007924/0.8961, allocations: 2.275 MB / 498.9 MB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002416/0.8985, allocations: 1.011 MB / 499.9 MB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.098e-05/0.8986, allocations: 11.83 kB / 499.9 MB, free: 11.01 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.975e-05/0.8987, allocations: 46.31 kB / 500 MB, free: 10.96 MB / 394.7 MB Notification: Performance of pre-optimization done (n=98): time 3.807e-06/0.8987, allocations: 0 / 500 MB, free: 10.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=106): time 0.029/0.9277, allocations: 7.007 MB / 0.4951 GB, free: 3.824 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.748e-05/0.9278, allocations: 148.5 kB / 0.4952 GB, free: 3.648 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005731/0.9336, allocations: 2.478 MB / 0.4976 GB, free: 1.152 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003236/0.9339, allocations: 41.69 kB / 0.4977 GB, free: 1.105 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002147/0.9361, allocations: 2.064 MB / 0.4997 GB, free: 15.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007112/0.9368, allocations: 434.3 kB / 0.5001 GB, free: 14.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000352/0.9372, allocations: 80 kB / 0.5002 GB, free: 14.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004398/0.9376, allocations: 0.4926 MB / 0.5007 GB, free: 14.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003635/0.9413, allocations: 1.356 MB / 0.502 GB, free: 12.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005967/0.9473, allocations: 4.112 MB / 0.506 GB, free: 7.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006227/0.9535, allocations: 2.354 MB / 0.5083 GB, free: 4.805 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001176/0.9537, allocations: 28 kB / 0.5083 GB, free: 4.777 MB / 410.7 MB Notification: Performance of matching and sorting (n=564) (initialization): time 0.3258/1.28, allocations: 5.593 MB / 0.5138 GB, free: 106.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001478/1.28, allocations: 47.59 kB / 0.5138 GB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002322/1.28, allocations: 99.59 kB / 0.5139 GB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004152/1.284, allocations: 0.8 MB / 0.5147 GB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006029/1.29, allocations: 0.9988 MB / 0.5157 GB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008867/1.299, allocations: 4.099 MB / 0.5197 GB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005335/1.304, allocations: 279.7 kB / 0.52 GB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001009/1.306, allocations: 276 kB / 0.5202 GB, free: 105.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 15 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (528): * Single equations (assignments): 524 * 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,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008488/1.306, allocations: 434.9 kB / 0.5206 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006064/1.307, allocations: 235.4 kB / 0.5209 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006776/1.314, allocations: 1.839 MB / 0.5227 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.252e-05/1.314, allocations: 12.98 kB / 0.5227 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/1.314, allocations: 3.875 kB / 0.5227 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.808e-05/1.314, allocations: 12.53 kB / 0.5227 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01438/1.328, allocations: 4.784 MB / 0.5274 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.891e-05/1.328, allocations: 6.5 kB / 0.5274 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001264/1.33, allocations: 142.4 kB / 0.5275 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00344/1.333, allocations: 0.6346 MB / 0.5281 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001855/1.333, allocations: 22.16 kB / 0.5281 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006918/1.34, allocations: 3.631 MB / 0.5317 GB, free: 103.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/1.34, allocations: 0 / 0.5317 GB, free: 103.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008825/1.349, allocations: 3.746 MB / 0.5354 GB, free: 102.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/1.351, allocations: 442.1 kB / 0.5358 GB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003849/1.351, allocations: 16.44 kB / 0.5358 GB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001698/1.353, allocations: 77.59 kB / 0.5359 GB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002584/1.353, allocations: 57.23 kB / 0.5359 GB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/1.353, allocations: 36.58 kB / 0.536 GB, free: 102.6 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003545/1.357, allocations: 1.708 MB / 0.5376 GB, free: 102.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.232e-06/1.357, allocations: 0 / 0.5376 GB, free: 102.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00521/1.362, allocations: 0.649 MB / 0.5383 GB, free: 102.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009505/1.371, allocations: 4.687 MB / 0.5428 GB, free: 100.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007046/1.379, allocations: 3.186 MB / 0.5459 GB, free: 100.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/1.379, allocations: 0 / 0.5459 GB, free: 100.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001756/1.38, allocations: 0.9178 MB / 0.5468 GB, free: 100.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/1.382, allocations: 226.7 kB / 0.5471 GB, free: 100.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01542/1.398, allocations: 5.516 MB / 0.5524 GB, free: 98.21 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00278/1.4, allocations: 2.238 MB / 0.5546 GB, free: 97.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002139/1.403, allocations: 1.081 MB / 0.5557 GB, free: 96.37 MB / 410.7 MB Notification: Performance of SimCode: time 1.493e-06/1.403, allocations: 0 / 0.5557 GB, free: 96.37 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.669/5.072, allocations: 60 MB / 0.6143 GB, free: 53.56 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat does not exist to compare? outputFormat=mat