Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.223/2.223, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.824e-05/2.826e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1167, allocations: 48.7 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4545/0.5713, allocations: 91.98 MB / 408.3 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.5716, allocations: 76.41 kB / 408.4 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8118/1.383, allocations: 126.2 MB / 0.5221 GB, free: 88.03 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.444e-06/1.383, allocations: 0 / 0.5221 GB, free: 88.03 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003987/1.384, allocations: 113 kB / 0.5222 GB, free: 88.03 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2208 * Number of variables: 2208 Notification: Performance of Generate backend data structure: time 0.02727/1.411, allocations: 6.239 MB / 0.5283 GB, free: 85.6 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/1.411, allocations: 6.875 kB / 0.5283 GB, free: 85.6 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04815/1.459, allocations: 6.458 MB / 0.5346 GB, free: 85.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0281/1.488, allocations: 8.557 MB / 0.5429 GB, free: 83.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003375/1.488, allocations: 183.5 kB / 0.5431 GB, free: 83.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003613/1.492, allocations: 351.1 kB / 0.5434 GB, free: 83.74 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02434/1.516, allocations: 10.54 MB / 0.5537 GB, free: 77.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03586/1.552, allocations: 13.7 MB / 0.5671 GB, free: 62.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003749/1.552, allocations: 59.48 kB / 0.5672 GB, free: 62.58 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002802/1.555, allocations: 28 kB / 0.5672 GB, free: 62.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004006/1.559, allocations: 1.69 MB / 0.5689 GB, free: 60.87 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1137/1.673, allocations: 53.27 MB / 0.6209 GB, free: 7.016 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01176/1.685, allocations: 6.621 MB / 0.6273 GB, free: 176 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0104/1.695, allocations: 4.61 MB / 0.6318 GB, free: 11.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003361/1.699, allocations: 2.216 MB / 0.634 GB, free: 8.98 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.023e-05/1.699, allocations: 68.98 kB / 0.6341 GB, free: 8.902 MB / 426.7 MB Notification: Performance of pre-optimization done (n=369): time 8.686e-06/1.699, allocations: 4 kB / 0.6341 GB, free: 8.898 MB / 426.7 MB Notification: Performance of matching and sorting (n=431): time 0.4376/2.136, allocations: 35.84 MB / 0.6691 GB, free: 92.78 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.644e-05/2.137, allocations: 117.4 kB / 0.6692 GB, free: 92.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008108/2.145, allocations: 3.512 MB / 0.6726 GB, free: 92.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001293/2.146, allocations: 28.61 kB / 0.6726 GB, free: 92.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003373/2.149, allocations: 3.9 MB / 0.6764 GB, free: 90.19 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002796/2.152, allocations: 1.487 MB / 0.6779 GB, free: 89.25 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001111/2.153, allocations: 0 / 0.6779 GB, free: 89.25 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006815/2.154, allocations: 0.6632 MB / 0.6785 GB, free: 88.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009062/2.163, allocations: 3.82 MB / 0.6823 GB, free: 87.88 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01172/2.175, allocations: 7.84 MB / 0.6899 GB, free: 81.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01209/2.187, allocations: 5.493 MB / 0.6953 GB, free: 79.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001443/2.187, allocations: 41.34 kB / 0.6953 GB, free: 79.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=1074) (initialization): time 0.04124/2.229, allocations: 13.33 MB / 0.7084 GB, free: 75.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001135/2.229, allocations: 63.22 kB / 0.7084 GB, free: 75.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002048/2.229, allocations: 146.2 kB / 0.7086 GB, free: 75.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01332/2.242, allocations: 2.607 MB / 0.7111 GB, free: 75.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01494/2.257, allocations: 2.056 MB / 0.7131 GB, free: 75.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02775/2.285, allocations: 12.91 MB / 0.7257 GB, free: 65.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01012/2.295, allocations: 341.3 kB / 0.726 GB, free: 65.35 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002637/2.298, allocations: 458.1 kB / 0.7265 GB, free: 64.93 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 639 * Number of states: 0 () * Number of discrete variables: 45 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (977): * Single equations (assignments): 969 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004174/2.302, allocations: 484.9 kB / 0.7269 GB, free: 64.45 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03109/2.333, allocations: 9.241 MB / 0.736 GB, free: 57 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002181/2.336, allocations: 458.2 kB / 0.7364 GB, free: 56.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0327/2.368, allocations: 10.26 MB / 0.7464 GB, free: 48.49 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001463/2.368, allocations: 68.55 kB / 0.7465 GB, free: 48.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.261e-05/2.368, allocations: 13.38 kB / 0.7465 GB, free: 48.42 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00011/2.369, allocations: 17.48 kB / 0.7465 GB, free: 48.42 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06091/2.43, allocations: 19.74 MB / 0.7658 GB, free: 29.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.763e-05/2.43, allocations: 12 kB / 0.7658 GB, free: 29.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007778/2.437, allocations: 0.808 MB / 0.7666 GB, free: 29.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01285/2.45, allocations: 2.389 MB / 0.7689 GB, free: 26.63 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001354/2.452, allocations: 20 kB / 0.7689 GB, free: 26.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02553/2.477, allocations: 11.69 MB / 0.7804 GB, free: 14.69 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.682e-05/2.477, allocations: 15.94 kB / 0.7804 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0407/2.518, allocations: 16.16 MB / 0.7962 GB, free: 13.76 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005255/2.523, allocations: 1.147 MB / 0.7973 GB, free: 12.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002509/2.526, allocations: 24.92 kB / 0.7973 GB, free: 12.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006346/2.532, allocations: 239.6 kB / 0.7975 GB, free: 12.33 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001998/2.534, allocations: 270 kB / 0.7978 GB, free: 12.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001042/2.535, allocations: 116 kB / 0.7979 GB, free: 11.95 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.321/2.856, allocations: 2.361 MB / 0.8002 GB, free: 99.68 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.092e-06/2.857, allocations: 0 / 0.8002 GB, free: 99.68 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01401/2.871, allocations: 1.461 MB / 0.8016 GB, free: 99.68 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (346): * Single equations (assignments): 338 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05058/2.921, allocations: 19.45 MB / 0.8206 GB, free: 94.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02232/2.944, allocations: 9.484 MB / 0.8299 GB, free: 93.84 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.602e-05/2.944, allocations: 3.688 kB / 0.8299 GB, free: 93.84 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01065/2.954, allocations: 4.169 MB / 0.834 GB, free: 93.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005784/2.96, allocations: 496.7 kB / 0.8344 GB, free: 93.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06584/3.026, allocations: 15.79 MB / 0.8499 GB, free: 87.93 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01244/3.039, allocations: 4.761 MB / 0.8545 GB, free: 86.39 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009209/3.048, allocations: 2.988 MB / 0.8574 GB, free: 83.98 MB / 442.7 MB Notification: Performance of SimCode: time 2.114e-06/3.048, allocations: 10.47 kB / 0.8574 GB, free: 83.98 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.328/8.376, allocations: 172.3 MB / 1.026 GB, free: 101.7 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat