Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.96/1.96, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.863e-05/2.86e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.3021, allocations: 44.49 MB / 294.2 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1318/0.4339, allocations: 72.39 MB / 366.6 MB, free: 9.504 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/0.4343, allocations: 67.95 kB / 366.7 MB, free: 9.438 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01587/0.4501, allocations: 3.58 MB / 370.2 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.4502, allocations: 0 / 370.2 MB, free: 5.844 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.091e-05/0.4502, allocations: 4 kB / 370.2 MB, free: 5.84 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008426/0.4511, allocations: 470.3 kB / 370.7 MB, free: 5.336 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.4512, allocations: 12.03 kB / 370.7 MB, free: 5.324 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.84e-05/0.4513, allocations: 23.72 kB / 370.7 MB, free: 5.301 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003533/0.4516, allocations: 235.3 kB / 371 MB, free: 5.027 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.143e-05/0.4517, allocations: 8 kB / 371 MB, free: 5.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.29e-05/0.4517, allocations: 12 kB / 371 MB, free: 5.008 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003346/0.4521, allocations: 113 kB / 371.1 MB, free: 4.898 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004039/0.4525, allocations: 169 kB / 371.3 MB, free: 4.719 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.4525, allocations: 7.844 kB / 371.3 MB, free: 4.711 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.321e-05/0.4526, allocations: 0 / 371.3 MB, free: 4.711 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.4526, allocations: 8 kB / 371.3 MB, free: 4.703 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001393/0.454, allocations: 0.6505 MB / 371.9 MB, free: 4.012 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003118/0.4543, allocations: 130.5 kB / 372 MB, free: 3.875 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.4545, allocations: 64.84 kB / 372.1 MB, free: 3.809 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.891e-05/0.4546, allocations: 0 / 372.1 MB, free: 3.809 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.4546, allocations: 38.86 kB / 372.1 MB, free: 3.762 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 2.354e-06/0.4546, allocations: 0 / 372.1 MB, free: 3.762 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.00188/0.4565, allocations: 0.7525 MB / 372.9 MB, free: 2.918 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.4566, allocations: 55.41 kB / 373 MB, free: 2.852 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000194/0.4568, allocations: 145.5 kB / 373.1 MB, free: 2.703 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.4568, allocations: 25.7 kB / 373.1 MB, free: 2.672 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.457, allocations: 206.7 kB / 373.3 MB, free: 2.469 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.482e-05/0.457, allocations: 82.75 kB / 373.4 MB, free: 2.387 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.221e-05/0.4571, allocations: 0 / 373.4 MB, free: 2.387 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.4572, allocations: 326.8 kB / 373.7 MB, free: 2.059 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.4574, allocations: 45.59 kB / 373.8 MB, free: 2.016 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.4575, allocations: 96.72 kB / 373.9 MB, free: 1.906 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001742/0.4577, allocations: 59.97 kB / 373.9 MB, free: 1.848 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.4577, allocations: 0 / 373.9 MB, free: 1.848 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005887/0.4583, allocations: 202.2 kB / 374.1 MB, free: 1.641 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.4584, allocations: 11.98 kB / 374.1 MB, free: 1.629 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.4584, allocations: 0 / 374.1 MB, free: 1.629 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002338/0.4587, allocations: 28.84 kB / 374.2 MB, free: 1.598 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003936/0.4591, allocations: 47.97 kB / 374.2 MB, free: 1.551 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001616/0.4607, allocations: 1.327 MB / 375.5 MB, free: 112 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002416/0.461, allocations: 4 kB / 375.5 MB, free: 108 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.265e-05/0.461, allocations: 4 kB / 375.5 MB, free: 104 kB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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 prepare postOptimizeDAE: time 0.0001601/0.4612, allocations: 123.3 kB / 375.7 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005212/0.4617, allocations: 186.1 kB / 375.8 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.32e-05/0.4618, allocations: 15.81 kB / 375.9 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.388e-05/0.4619, allocations: 21.97 kB / 375.9 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.4619, allocations: 0 / 375.9 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.4619, allocations: 11.88 kB / 375.9 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.4619, allocations: 3.984 kB / 375.9 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001238/0.4632, allocations: 0.5832 MB / 376.5 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.4632, allocations: 0 / 376.5 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004451/0.4637, allocations: 51.92 kB / 376.5 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002037/0.4639, allocations: 41.02 kB / 376.6 MB, free: 14.99 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.695e-05/0.464, allocations: 7.953 kB / 376.6 MB, free: 14.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/0.4655, allocations: 1.324 MB / 377.9 MB, free: 13.55 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.4656, allocations: 0 / 377.9 MB, free: 13.55 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007951/0.4664, allocations: 389.6 kB / 378.3 MB, free: 13.13 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.574e-05/0.4665, allocations: 88.92 kB / 378.4 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.928e-05/0.4665, allocations: 0 / 378.4 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002194/0.4668, allocations: 8.031 kB / 378.4 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.354e-05/0.4669, allocations: 19.92 kB / 378.4 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.217e-05/0.4669, allocations: 11.95 kB / 378.4 MB, free: 12.98 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001315/0.4671, allocations: 111.3 kB / 378.5 MB, free: 12.88 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4671, allocations: 4 kB / 378.5 MB, free: 12.87 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005044/0.4676, allocations: 52 kB / 378.6 MB, free: 12.82 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * 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.001162/0.4688, allocations: 1.055 MB / 379.6 MB, free: 11.72 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006857/0.4695, allocations: 253.6 kB / 379.9 MB, free: 11.46 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4695, allocations: 0 / 379.9 MB, free: 11.46 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003976/0.4699, allocations: 190.1 kB / 380.1 MB, free: 11.27 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004817/0.4704, allocations: 36.81 kB / 380.1 MB, free: 11.23 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001827/0.4722, allocations: 0.6009 MB / 380.7 MB, free: 10.59 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003625/0.4726, allocations: 0.7519 MB / 381.4 MB, free: 9.805 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001581/0.4728, allocations: 67.41 kB / 381.5 MB, free: 9.738 MB / 330.7 MB Notification: Performance of SimCode: time 1.042e-06/0.4728, allocations: 0 / 381.5 MB, free: 9.738 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.568/3.04, allocations: 4.277 MB / 385.8 MB, free: 5.465 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat does not exist to compare? outputFormat=mat