Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.924/1.924, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.899e-05/2.897e-05, allocations: 0 / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1028, allocations: 48.71 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4107/0.5135, allocations: 75.01 MB / 391.3 MB, free: 1.285 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/0.5139, allocations: 70.47 kB / 391.4 MB, free: 1.25 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02504/0.5389, allocations: 5.73 MB / 397.1 MB, free: 12.61 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.539, allocations: 0 / 397.1 MB, free: 12.61 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.249e-05/0.539, allocations: 12 kB / 397.1 MB, free: 12.6 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001165/0.5402, allocations: 0.5558 MB / 397.7 MB, free: 12.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.5403, allocations: 8.031 kB / 397.7 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.5404, allocations: 51.47 kB / 397.7 MB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000403/0.5408, allocations: 261.7 kB / 398 MB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.5408, allocations: 12 kB / 398 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.423e-05/0.5409, allocations: 27.91 kB / 398 MB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004972/0.5415, allocations: 164.4 kB / 398.2 MB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007462/0.5422, allocations: 319.7 kB / 398.5 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.815e-05/0.5423, allocations: 15.78 kB / 398.5 MB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.864e-05/0.5423, allocations: 3.953 kB / 398.5 MB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.537e-05/0.5424, allocations: 12 kB / 398.5 MB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003171/0.5455, allocations: 1.647 MB / 400.2 MB, free: 9.676 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005205/0.5461, allocations: 239.2 kB / 400.4 MB, free: 9.41 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001514/0.5463, allocations: 78.31 kB / 400.5 MB, free: 9.324 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.044e-05/0.5463, allocations: 7.188 kB / 400.5 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.065e-05/0.5464, allocations: 46.31 kB / 400.5 MB, free: 9.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=26): time 3.807e-06/0.5464, allocations: 0 / 400.5 MB, free: 9.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.0006027/0.547, allocations: 173.1 kB / 400.7 MB, free: 9.117 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.5471, allocations: 209.6 kB / 400.9 MB, free: 8.863 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002906/0.5474, allocations: 215.4 kB / 401.1 MB, free: 8.68 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.5475, allocations: 29.7 kB / 401.2 MB, free: 8.645 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.5477, allocations: 304.1 kB / 401.5 MB, free: 8.375 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.5478, allocations: 122.4 kB / 401.6 MB, free: 8.277 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.978e-05/0.5478, allocations: 0 / 401.6 MB, free: 8.277 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.548, allocations: 330.8 kB / 401.9 MB, free: 7.953 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001965/0.5482, allocations: 72.19 kB / 402 MB, free: 7.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005222/0.5487, allocations: 396.5 kB / 402.4 MB, free: 7.41 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003497/0.5491, allocations: 140.3 kB / 402.5 MB, free: 7.309 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/0.5491, allocations: 4 kB / 402.5 MB, free: 7.305 MB / 330.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00103/0.5502, allocations: 412.1 kB / 402.9 MB, free: 6.957 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.967e-05/0.5502, allocations: 11.98 kB / 402.9 MB, free: 6.945 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.197e-05/0.5502, allocations: 12.91 kB / 402.9 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.658e-05/0.5503, allocations: 16 kB / 402.9 MB, free: 6.918 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008579/0.5512, allocations: 155.1 kB / 403.1 MB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.894e-05/0.5512, allocations: 23.92 kB / 403.1 MB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004577/0.5517, allocations: 55.66 kB / 403.2 MB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.929e-05/0.5517, allocations: 38.12 kB / 403.2 MB, free: 6.66 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * 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.0001456/0.5519, allocations: 123.9 kB / 403.3 MB, free: 6.535 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005355/0.5524, allocations: 190.4 kB / 403.5 MB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.5526, allocations: 31.62 kB / 403.5 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.5528, allocations: 35.5 kB / 403.6 MB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.5528, allocations: 4 kB / 403.6 MB, free: 6.305 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.5528, allocations: 4 kB / 403.6 MB, free: 6.301 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.5528, allocations: 0 / 403.6 MB, free: 6.301 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001869/0.5547, allocations: 0.5832 MB / 404.2 MB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.5547, allocations: 4 kB / 404.2 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009229/0.5557, allocations: 87.89 kB / 404.3 MB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.306e-06/0.5557, allocations: 4 kB / 404.3 MB, free: 5.637 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.975e-05/0.5557, allocations: 11.69 kB / 404.3 MB, free: 5.629 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.5557, allocations: 7.875 kB / 404.3 MB, free: 5.621 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.5558, allocations: 4 kB / 404.3 MB, free: 5.617 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008237/0.5566, allocations: 0.8768 MB / 405.2 MB, free: 4.711 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/0.5568, allocations: 120.8 kB / 405.3 MB, free: 4.578 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.366e-05/0.5569, allocations: 11.92 kB / 405.3 MB, free: 4.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005519/0.5574, allocations: 8 kB / 405.3 MB, free: 4.562 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.478e-05/0.5575, allocations: 23.92 kB / 405.3 MB, free: 4.539 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/0.5576, allocations: 12.19 kB / 405.3 MB, free: 4.531 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002027/0.5578, allocations: 158 kB / 405.5 MB, free: 4.402 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.5578, allocations: 0 / 405.5 MB, free: 4.402 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001068/0.5589, allocations: 95.77 kB / 405.6 MB, free: 4.309 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * 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.00133/0.5602, allocations: 1.976 MB / 407.6 MB, free: 2.324 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005926/0.5608, allocations: 223.5 kB / 407.8 MB, free: 2.152 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.5608, allocations: 0 / 407.8 MB, free: 2.152 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001722/0.561, allocations: 75.36 kB / 407.9 MB, free: 2.094 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009808/0.562, allocations: 52.81 kB / 407.9 MB, free: 2.051 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00401/0.566, allocations: 1.642 MB / 409.5 MB, free: 400 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005158/0.5666, allocations: 0.803 MB / 410.4 MB, free: 15.56 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002189/0.5668, allocations: 121.6 kB / 410.5 MB, free: 15.52 MB / 346.7 MB Notification: Performance of SimCode: time 2.885e-06/0.5668, allocations: 0 / 410.5 MB, free: 15.52 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.504/3.071, allocations: 5.43 MB / 415.9 MB, free: 10.17 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat