Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.971/1.971, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.652e-05/3.658e-05, allocations: 4 kB / 255.4 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0981/0.09818, allocations: 44.5 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4175/0.5158, allocations: 73.06 MB / 373 MB, free: 12.81 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002734/0.5161, allocations: 70.83 kB / 373.1 MB, free: 12.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01627/0.5324, allocations: 3.772 MB / 376.8 MB, free: 12.25 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5324, allocations: 1.188 kB / 376.9 MB, free: 12.25 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.907e-05/0.5325, allocations: 4.469 kB / 376.9 MB, free: 12.25 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007883/0.5333, allocations: 474.3 kB / 377.3 MB, free: 11.86 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.96e-05/0.5333, allocations: 10.38 kB / 377.3 MB, free: 11.86 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.26e-05/0.5334, allocations: 56.17 kB / 377.4 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.261e-05/0.5335, allocations: 23.06 kB / 377.4 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003406/0.5339, allocations: 237.2 kB / 377.6 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.5339, allocations: 15.06 kB / 377.7 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.671e-05/0.534, allocations: 32.31 kB / 377.7 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004715/0.5345, allocations: 182.2 kB / 377.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.512e-05/0.5345, allocations: 1.438 kB / 377.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.085e-05/0.5345, allocations: 7.953 kB / 377.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.5346, allocations: 5.125 kB / 377.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000397/0.535, allocations: 122.9 kB / 378 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.5364, allocations: 0.6304 MB / 378.6 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003848/0.5368, allocations: 159.3 kB / 378.8 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/0.537, allocations: 98.59 kB / 378.9 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.448e-05/0.5371, allocations: 3 kB / 378.9 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.5371, allocations: 33.34 kB / 378.9 MB, free: 11.14 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.176e-06/0.5371, allocations: 1 kB / 378.9 MB, free: 11.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002444/0.5396, allocations: 0.9905 MB / 379.9 MB, free: 10.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.597e-05/0.5396, allocations: 55.62 kB / 380 MB, free: 10.54 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002242/0.5399, allocations: 161.6 kB / 380.1 MB, free: 10.44 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/0.5399, allocations: 30.39 kB / 380.1 MB, free: 10.41 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.325e-05/0.54, allocations: 198.8 kB / 380.3 MB, free: 10.24 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.5401, allocations: 116.8 kB / 380.5 MB, free: 10.17 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.807e-05/0.5402, allocations: 4.969 kB / 380.5 MB, free: 10.17 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.055e-05/0.5402, allocations: 326.2 kB / 380.8 MB, free: 9.852 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001807/0.5404, allocations: 63.59 kB / 380.8 MB, free: 9.852 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000209/0.5406, allocations: 90.06 kB / 380.9 MB, free: 9.828 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.5409, allocations: 79.31 kB / 381 MB, free: 9.828 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.5409, allocations: 0 / 381 MB, free: 9.828 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007164/0.5416, allocations: 276.7 kB / 381.3 MB, free: 9.758 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.5417, allocations: 6.969 kB / 381.3 MB, free: 9.758 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.5417, allocations: 2.781 kB / 381.3 MB, free: 9.758 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002732/0.542, allocations: 39.83 kB / 381.3 MB, free: 9.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004735/0.5425, allocations: 60.97 kB / 381.4 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001774/0.5443, allocations: 1.565 MB / 382.9 MB, free: 8.391 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003118/0.5446, allocations: 9.984 kB / 383 MB, free: 8.391 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.911e-05/0.5447, allocations: 13.42 kB / 383 MB, free: 8.387 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * 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%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001123/0.5448, allocations: 127.2 kB / 383.1 MB, free: 8.273 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.619e-05/0.5449, allocations: 17.88 kB / 383.1 MB, free: 8.266 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.121e-05/0.5449, allocations: 32.56 kB / 383.1 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.545, allocations: 7.078 kB / 383.2 MB, free: 8.254 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.545, allocations: 1.094 kB / 383.2 MB, free: 8.254 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.545, allocations: 7.297 kB / 383.2 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001548/0.5466, allocations: 0.7594 MB / 383.9 MB, free: 7.855 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.251e-06/0.5466, allocations: 5.438 kB / 383.9 MB, free: 7.852 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005893/0.5472, allocations: 61.84 kB / 384 MB, free: 7.848 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002067/0.5474, allocations: 34.39 kB / 384 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.5475, allocations: 7.062 kB / 384 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.5487, allocations: 1.375 MB / 385.4 MB, free: 6.566 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.5488, allocations: 1.219 kB / 385.4 MB, free: 6.566 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009636/0.5498, allocations: 0.4886 MB / 385.9 MB, free: 6.324 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.675e-05/0.5499, allocations: 92.8 kB / 386 MB, free: 6.223 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.085e-05/0.5499, allocations: 8.219 kB / 386 MB, free: 6.223 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002408/0.5502, allocations: 10.38 kB / 386 MB, free: 6.223 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.531e-05/0.5503, allocations: 25.47 kB / 386 MB, free: 6.219 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-05/0.5503, allocations: 18.28 kB / 386 MB, free: 6.211 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000436/0.5508, allocations: 130.6 kB / 386.2 MB, free: 22.13 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.62e-07/0.5508, allocations: 0 / 386.2 MB, free: 22.13 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006529/0.5515, allocations: 67.97 kB / 386.2 MB, free: 22.13 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * Array equations: 0 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001545/0.553, allocations: 1.253 MB / 387.5 MB, free: 21.16 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008647/0.5539, allocations: 316.2 kB / 387.8 MB, free: 21.04 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.554, allocations: 3.938 kB / 387.8 MB, free: 21.03 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004744/0.5544, allocations: 227.8 kB / 388 MB, free: 20.92 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006028/0.5551, allocations: 35.16 kB / 388.1 MB, free: 20.91 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001919/0.557, allocations: 0.6774 MB / 388.7 MB, free: 20.48 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003932/0.5574, allocations: 0.7617 MB / 389.5 MB, free: 19.78 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/0.5576, allocations: 75.47 kB / 389.6 MB, free: 19.77 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5576, allocations: 0 / 389.6 MB, free: 19.77 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.743/3.301, allocations: 4.743 MB / 394.3 MB, free: 19.46 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat does not exist to compare? outputFormat=mat