Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.11/2.11, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.27e-05/3.282e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1224, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4552/0.5777, allocations: 75.5 MB / 397.3 MB, free: 14.42 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002603/0.578, allocations: 67.97 kB / 397.4 MB, free: 14.35 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02599/0.604, allocations: 5.833 MB / 403.2 MB, free: 8.512 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.6041, allocations: 0 / 403.2 MB, free: 8.512 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.945e-05/0.6041, allocations: 8 kB / 403.2 MB, free: 8.504 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001279/0.6054, allocations: 0.5805 MB / 403.8 MB, free: 7.879 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.528e-05/0.6055, allocations: 12.03 kB / 403.8 MB, free: 7.867 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001706/0.6057, allocations: 80.38 kB / 403.9 MB, free: 7.781 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000155/0.6058, allocations: 47.39 kB / 404 MB, free: 7.734 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005817/0.6064, allocations: 278 kB / 404.2 MB, free: 7.422 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.677e-05/0.6065, allocations: 28.78 kB / 404.3 MB, free: 7.395 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001243/0.6066, allocations: 40 kB / 404.3 MB, free: 7.355 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001222/0.6079, allocations: 354.2 kB / 404.6 MB, free: 6.992 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.53e-05/0.608, allocations: 8 kB / 404.6 MB, free: 6.984 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.842e-05/0.608, allocations: 12 kB / 404.7 MB, free: 6.973 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.277e-05/0.6081, allocations: 15.95 kB / 404.7 MB, free: 6.957 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008586/0.6089, allocations: 207.9 kB / 404.9 MB, free: 6.754 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00312/0.6121, allocations: 1.101 MB / 406 MB, free: 5.594 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.6132, allocations: 343.5 kB / 406.3 MB, free: 5.23 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005215/0.6137, allocations: 158.6 kB / 406.5 MB, free: 5.066 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.953e-05/0.6138, allocations: 4 kB / 406.5 MB, free: 5.062 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.008e-05/0.6138, allocations: 38.56 kB / 406.5 MB, free: 5.016 MB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 4.538e-06/0.6139, allocations: 4 kB / 406.5 MB, free: 5.012 MB / 330.7 MB Notification: Performance of matching and sorting (n=57): time 0.006962/0.6208, allocations: 2.278 MB / 408.8 MB, free: 2.461 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.621, allocations: 114.7 kB / 408.9 MB, free: 2.324 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00049/0.6215, allocations: 215.2 kB / 409.1 MB, free: 2.113 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.298e-05/0.6216, allocations: 37.7 kB / 409.2 MB, free: 2.07 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002215/0.6218, allocations: 235.1 kB / 409.4 MB, free: 1.84 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003071/0.6222, allocations: 201 kB / 409.6 MB, free: 1.641 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.805e-05/0.6222, allocations: 8 kB / 409.6 MB, free: 1.633 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002155/0.6225, allocations: 334.8 kB / 409.9 MB, free: 1.297 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005503/0.623, allocations: 117.1 kB / 410 MB, free: 1.184 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006731/0.6237, allocations: 207.9 kB / 410.2 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000654/0.6244, allocations: 144.4 kB / 410.4 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.6244, allocations: 4 kB / 410.4 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002231/0.6267, allocations: 0.511 MB / 410.9 MB, free: 280 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.135e-05/0.6267, allocations: 4 kB / 410.9 MB, free: 276 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.749e-05/0.6268, allocations: 4 kB / 410.9 MB, free: 272 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00858/0.6354, allocations: 122.9 kB / 411 MB, free: 140 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.6364, allocations: 103.8 kB / 411.1 MB, free: 36 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01215/0.6486, allocations: 4.664 MB / 415.8 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006058/0.6493, allocations: 19.98 kB / 415.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.744e-05/0.6494, allocations: 20 kB / 415.8 MB, free: 10.93 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 (51): * Single equations (assignments): 48 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002262/0.6496, allocations: 128.9 kB / 415.9 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002122/0.6498, allocations: 35.64 kB / 416 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001868/0.65, allocations: 57.94 kB / 416 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.6501, allocations: 4 kB / 416 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.697e-05/0.6501, allocations: 7.938 kB / 416 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.012e-05/0.6501, allocations: 11.92 kB / 416.1 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01185/0.662, allocations: 1.297 MB / 417.4 MB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.508e-05/0.6621, allocations: 7.953 kB / 417.4 MB, free: 9.301 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005496/0.6676, allocations: 104 kB / 417.5 MB, free: 9.199 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006379/0.6682, allocations: 94.53 kB / 417.6 MB, free: 9.098 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.943e-05/0.6683, allocations: 12.09 kB / 417.6 MB, free: 9.086 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009517/0.6778, allocations: 4.1 MB / 421.7 MB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/0.6779, allocations: 4.031 kB / 421.7 MB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002507/0.6804, allocations: 0.9394 MB / 422.6 MB, free: 3.578 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002861/0.6807, allocations: 140.7 kB / 422.7 MB, free: 3.422 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/0.6809, allocations: 16.12 kB / 422.8 MB, free: 3.406 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006621/0.6815, allocations: 23.98 kB / 422.8 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.6817, allocations: 39.94 kB / 422.8 MB, free: 3.344 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.426e-05/0.6818, allocations: 16 kB / 422.8 MB, free: 3.328 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003351/0.6822, allocations: 175.1 kB / 423 MB, free: 3.156 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.6822, allocations: 0 / 423 MB, free: 3.156 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003208/0.6854, allocations: 124 kB / 423.1 MB, free: 3.035 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00256/0.688, allocations: 1.833 MB / 425 MB, free: 1.141 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001747/0.6898, allocations: 0.7189 MB / 425.7 MB, free: 392 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.6898, allocations: 192 / 425.7 MB, free: 392 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.6911, allocations: 0.5648 MB / 426.3 MB, free: 15.78 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007033/0.6918, allocations: 50.89 kB / 426.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00301/0.6948, allocations: 1.042 MB / 427.3 MB, free: 14.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005793/0.6955, allocations: 0.8281 MB / 428.2 MB, free: 13.78 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003243/0.6958, allocations: 135.4 kB / 428.3 MB, free: 13.65 MB / 362.7 MB Notification: Performance of SimCode: time 1.232e-06/0.6958, allocations: 0 / 428.3 MB, free: 13.65 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.942/3.638, allocations: 10.51 MB / 438.8 MB, free: 3.113 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat does not exist to compare? outputFormat=mat