Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.003/2.003, allocations: 194.9 MB / 208 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.025e-05/4.024e-05, allocations: 0 / 255.5 MB, free: 2.629 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1046, allocations: 44.51 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4824/0.587, allocations: 76.64 MB / 376.6 MB, free: 12.44 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002934/0.5874, allocations: 72.33 kB / 376.7 MB, free: 12.44 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04993/0.6373, allocations: 11.86 MB / 388.5 MB, free: 11.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.6374, allocations: 0 / 388.5 MB, free: 11.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.221e-05/0.6375, allocations: 26.25 kB / 388.6 MB, free: 11.34 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: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.002511/0.64, allocations: 0.8604 MB / 389.4 MB, free: 10.78 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.187e-05/0.6401, allocations: 11.66 kB / 389.4 MB, free: 10.78 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005022/0.6406, allocations: 135.6 kB / 389.6 MB, free: 10.74 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000259/0.6409, allocations: 93.44 kB / 389.7 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001401/0.6423, allocations: 0.4946 MB / 390.2 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.6e-05/0.6425, allocations: 64.44 kB / 390.2 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002884/0.6427, allocations: 97.19 kB / 390.3 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002322/0.6451, allocations: 0.7803 MB / 391.1 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.815e-05/0.6452, allocations: 11.5 kB / 391.1 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.897e-05/0.6453, allocations: 36.16 kB / 391.1 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.148e-05/0.6453, allocations: 23.41 kB / 391.2 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001553/0.6469, allocations: 467.3 kB / 391.6 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005579/0.6525, allocations: 3.069 MB / 394.7 MB, free: 8.602 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008995/0.6535, allocations: 263.2 kB / 395 MB, free: 8.527 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002581/0.6538, allocations: 121.4 kB / 395.1 MB, free: 8.5 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002201/0.654, allocations: 254.3 kB / 395.3 MB, free: 8.215 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.6541, allocations: 38.31 kB / 395.4 MB, free: 8.176 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 3.206e-06/0.6541, allocations: 0 / 395.4 MB, free: 8.176 MB / 314.7 MB Notification: Performance of matching and sorting (n=37): time 0.003178/0.6573, allocations: 1.412 MB / 396.8 MB, free: 7.203 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.979e-05/0.6574, allocations: 110.7 kB / 396.9 MB, free: 7.074 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004354/0.6578, allocations: 285.4 kB / 397.2 MB, free: 6.957 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.408e-05/0.6579, allocations: 37.33 kB / 397.2 MB, free: 6.926 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002201/0.6581, allocations: 401.3 kB / 397.6 MB, free: 6.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.6583, allocations: 140.4 kB / 397.7 MB, free: 6.594 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.948e-05/0.6583, allocations: 17.62 kB / 397.7 MB, free: 6.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.819e-05/0.6584, allocations: 350.7 kB / 398.1 MB, free: 6.273 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002752/0.6587, allocations: 104.2 kB / 398.2 MB, free: 6.273 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003483/0.6591, allocations: 251.3 kB / 398.4 MB, free: 6.094 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003903/0.6595, allocations: 142.4 kB / 398.6 MB, free: 6.082 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.6595, allocations: 0 / 398.6 MB, free: 6.082 MB / 314.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001096/0.6606, allocations: 462.2 kB / 399 MB, free: 5.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.637e-05/0.6607, allocations: 7.781 kB / 399 MB, free: 5.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.6607, allocations: 4.031 kB / 399 MB, free: 5.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003032/0.661, allocations: 36.64 kB / 399.1 MB, free: 5.973 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000774/0.6618, allocations: 118.6 kB / 399.2 MB, free: 5.965 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004225/0.6622, allocations: 0.5658 MB / 399.7 MB, free: 5.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000511/0.6628, allocations: 38.22 kB / 399.8 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-05/0.6629, allocations: 23.25 kB / 399.8 MB, free: 5.422 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 61 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001502/0.663, allocations: 129.7 kB / 399.9 MB, free: 5.309 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001322/0.6632, allocations: 39.12 kB / 400 MB, free: 5.289 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008412/0.664, allocations: 294.2 kB / 400.3 MB, free: 5.219 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.664, allocations: 7.75 kB / 400.3 MB, free: 5.219 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.6641, allocations: 0 / 400.3 MB, free: 5.219 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.6641, allocations: 3.656 kB / 400.3 MB, free: 5.219 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002545/0.6666, allocations: 1.077 MB / 401.3 MB, free: 20.76 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/0.6667, allocations: 3.844 kB / 401.3 MB, free: 20.76 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000861/0.6676, allocations: 88.05 kB / 401.4 MB, free: 20.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002399/0.6678, allocations: 34.53 kB / 401.5 MB, free: 20.75 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.757e-05/0.6679, allocations: 15.19 kB / 401.5 MB, free: 20.74 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004741/0.6684, allocations: 0.5472 MB / 402 MB, free: 20.22 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.6684, allocations: 3.938 kB / 402 MB, free: 20.22 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001315/0.6697, allocations: 0.7784 MB / 402.8 MB, free: 19.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001648/0.67, allocations: 114.9 kB / 402.9 MB, free: 19.61 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.114e-05/0.6701, allocations: 9.594 kB / 402.9 MB, free: 19.61 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004482/0.6705, allocations: 14.09 kB / 402.9 MB, free: 19.61 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.6706, allocations: 35.94 kB / 403 MB, free: 19.61 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.033e-05/0.6707, allocations: 15.67 kB / 403 MB, free: 19.6 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003618/0.6711, allocations: 222 kB / 403.2 MB, free: 19.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.6711, allocations: 0 / 403.2 MB, free: 19.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001032/0.6721, allocations: 130.6 kB / 403.3 MB, free: 19.51 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w,inertia2a.w,torqueToAngle2a.phi,inertia2b.phi,inertia2b.w,directInertia.inertia.w,directInertia.torqueToAngle.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002057/0.6742, allocations: 1.834 MB / 405.2 MB, free: 18.01 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009083/0.6752, allocations: 288.2 kB / 405.5 MB, free: 18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.6752, allocations: 4.062 kB / 405.5 MB, free: 17.99 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004362/0.6757, allocations: 146.7 kB / 405.6 MB, free: 17.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008009/0.6765, allocations: 64.42 kB / 405.7 MB, free: 17.97 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004287/0.6808, allocations: 1.527 MB / 407.2 MB, free: 17.11 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006594/0.6815, allocations: 0.946 MB / 408.1 MB, free: 16.4 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003785/0.6819, allocations: 43.12 kB / 408.2 MB, free: 16.39 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003852/0.6823, allocations: 264.7 kB / 408.4 MB, free: 16.38 MB / 330.7 MB Notification: Performance of SimCode: time 1.303e-06/0.6824, allocations: 0 / 408.4 MB, free: 16.38 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03459/0.717, allocations: 8.467 MB / 416.9 MB, free: 12.88 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000301/0.7173, allocations: 195.4 kB / 417.1 MB, free: 12.65 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.778/3.495, allocations: 0 / 417.1 MB, free: 12.65 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat