Running command: "" <> buildModelFMU(ModelicaTest.Rotational.InitializationConversion.SpringDamper,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_InitializationConversion_SpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.971/1.971, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.542e-05/4.547e-05, allocations: 4 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.127, allocations: 48.7 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4075/0.5346, allocations: 75.82 MB / 397.6 MB, free: 14.12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002731/0.535, allocations: 71.95 kB / 397.7 MB, free: 14.05 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03806/0.573, allocations: 8.338 MB / 406.1 MB, free: 5.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.5731, allocations: 0 / 406.1 MB, free: 5.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.423e-05/0.5731, allocations: 8 kB / 406.1 MB, free: 5.672 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001429/0.5746, allocations: 0.6386 MB / 406.7 MB, free: 4.988 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.5747, allocations: 12.03 kB / 406.7 MB, free: 4.977 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001502/0.5748, allocations: 90.47 kB / 406.8 MB, free: 4.879 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.575, allocations: 55.34 kB / 406.9 MB, free: 4.824 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005163/0.5755, allocations: 303.2 kB / 407.1 MB, free: 4.488 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.443e-05/0.5756, allocations: 37 kB / 407.2 MB, free: 4.453 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/0.5757, allocations: 51.91 kB / 407.2 MB, free: 4.402 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.5768, allocations: 418.3 kB / 407.6 MB, free: 3.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.729e-05/0.5769, allocations: 7.906 kB / 407.7 MB, free: 3.973 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.831e-05/0.5769, allocations: 20 kB / 407.7 MB, free: 3.953 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.902e-05/0.577, allocations: 15.95 kB / 407.7 MB, free: 3.938 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008232/0.5778, allocations: 299.7 kB / 408 MB, free: 3.645 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002705/0.5805, allocations: 1.16 MB / 409.1 MB, free: 2.43 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.5817, allocations: 481.2 kB / 409.6 MB, free: 1.918 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00048/0.5822, allocations: 203 kB / 409.8 MB, free: 1.715 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.625e-05/0.5822, allocations: 8.375 kB / 409.8 MB, free: 1.707 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.96e-05/0.5823, allocations: 39 kB / 409.9 MB, free: 1.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=62): time 4.258e-06/0.5823, allocations: 0 / 409.9 MB, free: 1.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=74): time 0.004379/0.5867, allocations: 1.993 MB / 411.8 MB, free: 15.5 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.57e-05/0.5868, allocations: 85.67 kB / 411.9 MB, free: 15.4 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000355/0.5872, allocations: 227.4 kB / 412.2 MB, free: 15.17 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.624e-05/0.5872, allocations: 33.7 kB / 412.2 MB, free: 15.13 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001946/0.5874, allocations: 263.4 kB / 412.4 MB, free: 14.87 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002712/0.5877, allocations: 264.1 kB / 412.7 MB, free: 14.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.524e-05/0.5878, allocations: 12 kB / 412.7 MB, free: 14.6 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.588, allocations: 350.7 kB / 413.1 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004362/0.5884, allocations: 145.6 kB / 413.2 MB, free: 14.11 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005341/0.589, allocations: 258.9 kB / 413.5 MB, free: 13.81 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005272/0.5895, allocations: 202 kB / 413.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.5895, allocations: 0 / 413.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.001306/0.5908, allocations: 0.5348 MB / 414.2 MB, free: 13.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.5909, allocations: 4.281 kB / 414.2 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.5909, allocations: 8 kB / 414.2 MB, free: 13.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.448e-05/0.591, allocations: 11.95 kB / 414.2 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/0.5921, allocations: 183.7 kB / 414.4 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.961e-05/0.5922, allocations: 4 kB / 414.4 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004998/0.5927, allocations: 24 kB / 414.4 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.424e-05/0.5928, allocations: 24 kB / 414.4 MB, free: 12.82 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 97 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001801/0.593, allocations: 152.7 kB / 414.6 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.5931, allocations: 43.44 kB / 414.6 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001735/0.5933, allocations: 59.64 kB / 414.7 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/0.5933, allocations: 8 kB / 414.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.5933, allocations: 3.953 kB / 414.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.5933, allocations: 3.984 kB / 414.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003135/0.5965, allocations: 1.446 MB / 416.1 MB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.5965, allocations: 0 / 416.1 MB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001314/0.5979, allocations: 159.9 kB / 416.3 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.831e-05/0.5979, allocations: 8.344 kB / 416.3 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.405e-05/0.598, allocations: 27.94 kB / 416.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-05/0.598, allocations: 8 kB / 416.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/0.598, allocations: 7.938 kB / 416.4 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001825/0.5999, allocations: 1.017 MB / 417.4 MB, free: 9.645 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001804/0.6001, allocations: 124.5 kB / 417.5 MB, free: 9.504 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.654e-05/0.6002, allocations: 23.95 kB / 417.5 MB, free: 9.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004806/0.6007, allocations: 19.98 kB / 417.5 MB, free: 9.461 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.6008, allocations: 44.31 kB / 417.6 MB, free: 9.418 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-05/0.6009, allocations: 24 kB / 417.6 MB, free: 9.395 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002627/0.6011, allocations: 179.1 kB / 417.8 MB, free: 9.223 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6012, allocations: 0 / 417.8 MB, free: 9.223 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007584/0.6019, allocations: 148 kB / 417.9 MB, free: 9.078 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (inertia6.phi,inertia6.w,relativeStates.phi_rel,relativeStates.w_rel,inertia4.phi,inertia4.w,inertia5.phi,inertia5.w,springDamper1.phi_rel,springDamper1.w_rel,springDamper2.phi_rel,springDamper2.w_rel,springDamper3.phi_rel,springDamper3.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 74 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002586/0.6045, allocations: 2.422 MB / 420.3 MB, free: 6.547 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.6057, allocations: 442.1 kB / 420.8 MB, free: 6.113 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.6058, allocations: 0 / 420.8 MB, free: 6.113 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005131/0.6063, allocations: 231.4 kB / 421 MB, free: 5.891 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.6074, allocations: 105.1 kB / 421.1 MB, free: 5.785 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004614/0.612, allocations: 1.709 MB / 422.8 MB, free: 3.984 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006017/0.6127, allocations: 0.8566 MB / 423.7 MB, free: 3.102 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004106/0.6131, allocations: 172 kB / 423.8 MB, free: 2.934 MB / 346.7 MB Notification: Performance of SimCode: time 9.82e-07/0.6131, allocations: 0 / 423.8 MB, free: 2.934 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.66/3.273, allocations: 7.842 MB / 431.7 MB, free: 11.1 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.InitializationConversion.SpringDamper_res.mat does not exist to compare? outputFormat=mat