Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_Revolute",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.633/2.633, allocations: 235.2 MB / 242.3 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.178e-05/4.169e-05, allocations: 4 kB / 299.6 MB, free: 192 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.396/0.3961, allocations: 54.85 MB / 354.4 MB, free: 15.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1942/0.5903, allocations: 95.26 MB / 449.7 MB, free: 15.87 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003363/0.5907, allocations: 71.97 kB / 449.8 MB, free: 15.8 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7465/1.337, allocations: 84.09 MB / 0.5213 GB, free: 43.06 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.404e-06/1.337, allocations: 4 kB / 0.5213 GB, free: 43.06 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001829/1.338, allocations: 72 kB / 0.5214 GB, free: 42.99 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.01487/1.352, allocations: 3.652 MB / 0.525 GB, free: 39.27 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.912e-05/1.352, allocations: 12.03 kB / 0.525 GB, free: 39.26 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03097/1.383, allocations: 3.504 MB / 0.5284 GB, free: 35.75 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.018/1.402, allocations: 4.152 MB / 0.5325 GB, free: 31.55 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002702/1.402, allocations: 128 kB / 0.5326 GB, free: 31.42 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002821/1.405, allocations: 228.5 kB / 0.5328 GB, free: 31.2 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01938/1.424, allocations: 7.263 MB / 0.5399 GB, free: 23.93 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02783/1.452, allocations: 9.473 MB / 0.5492 GB, free: 14.01 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000188/1.452, allocations: 23.81 kB / 0.5492 GB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00127/1.454, allocations: 15.98 kB / 0.5492 GB, free: 13.97 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003081/1.457, allocations: 1.207 MB / 0.5504 GB, free: 12.76 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08853/1.545, allocations: 32.98 MB / 0.5826 GB, free: 11.14 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009819/1.555, allocations: 4.177 MB / 0.5867 GB, free: 6.734 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005891/1.561, allocations: 2.244 MB / 0.5889 GB, free: 4.488 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003158/1.564, allocations: 1.88 MB / 0.5907 GB, free: 2.277 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.338e-05/1.564, allocations: 52.56 kB / 0.5907 GB, free: 2.215 MB / 426.7 MB Notification: Performance of pre-optimization done (n=231): time 8.436e-06/1.564, allocations: 0 / 0.5907 GB, free: 2.215 MB / 426.7 MB Notification: Performance of matching and sorting (n=238): time 0.05624/1.621, allocations: 14.06 MB / 0.6045 GB, free: 4.117 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.427e-05/1.621, allocations: 69.41 kB / 0.6045 GB, free: 4.039 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005978/1.627, allocations: 2.244 MB / 0.6067 GB, free: 1.777 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005627/1.627, allocations: 29.64 kB / 0.6068 GB, free: 1.742 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003532/1.631, allocations: 2.782 MB / 0.6095 GB, free: 14.91 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001811/1.633, allocations: 0.8439 MB / 0.6103 GB, free: 14.06 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000693/1.634, allocations: 0 / 0.6103 GB, free: 14.06 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008287/1.634, allocations: 0.6051 MB / 0.6109 GB, free: 13.44 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006308/1.641, allocations: 2.123 MB / 0.613 GB, free: 11.31 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01018/1.651, allocations: 5.25 MB / 0.6181 GB, free: 4.508 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009871/1.661, allocations: 3.374 MB / 0.6214 GB, free: 1.129 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001352/1.661, allocations: 32 kB / 0.6214 GB, free: 1.098 MB / 458.7 MB Notification: Performance of matching and sorting (n=744) (initialization): time 0.3976/2.059, allocations: 7.447 MB / 0.6287 GB, free: 111.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.691e-05/2.059, allocations: 54.56 kB / 0.6287 GB, free: 111.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001844/2.059, allocations: 116.6 kB / 0.6288 GB, free: 111.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004595/2.064, allocations: 0.8181 MB / 0.6296 GB, free: 111.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00956/2.073, allocations: 1.279 MB / 0.6309 GB, free: 111.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009072/2.082, allocations: 3.97 MB / 0.6348 GB, free: 109.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006172/2.089, allocations: 205.2 kB / 0.635 GB, free: 109.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001407/2.09, allocations: 323.6 kB / 0.6353 GB, free: 109.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 506 * Number of states: 0 () * Number of discrete variables: 24 (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 (684): * Single equations (assignments): 677 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001288/2.091, allocations: 387.4 kB / 0.6356 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01223/2.104, allocations: 4.088 MB / 0.6396 GB, free: 109.5 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009087/2.105, allocations: 262 kB / 0.6399 GB, free: 109.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01415/2.119, allocations: 4.568 MB / 0.6443 GB, free: 109.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001303/2.119, allocations: 46.23 kB / 0.6444 GB, free: 109.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/2.119, allocations: 3.938 kB / 0.6444 GB, free: 109.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.114e-05/2.119, allocations: 11.02 kB / 0.6444 GB, free: 109.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02931/2.148, allocations: 9.57 MB / 0.6538 GB, free: 108.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.635e-05/2.148, allocations: 7.438 kB / 0.6538 GB, free: 108.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003746/2.152, allocations: 367.6 kB / 0.6541 GB, free: 108.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004174/2.156, allocations: 0.6455 MB / 0.6547 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005493/2.157, allocations: 16.59 kB / 0.6548 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008006/2.165, allocations: 3.47 MB / 0.6581 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.38e-05/2.165, allocations: 13.97 kB / 0.6582 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01847/2.184, allocations: 7.595 MB / 0.6656 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002409/2.186, allocations: 0.6507 MB / 0.6662 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007925/2.187, allocations: 11.84 kB / 0.6662 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002412/2.189, allocations: 106 kB / 0.6663 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005279/2.19, allocations: 133.5 kB / 0.6665 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002574/2.19, allocations: 66.56 kB / 0.6665 GB, free: 102.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003139/2.193, allocations: 1.467 MB / 0.6679 GB, free: 102 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.21e-07/2.193, allocations: 0 / 0.6679 GB, free: 102 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008328/2.202, allocations: 0.8246 MB / 0.6688 GB, free: 102 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (181): * Single equations (assignments): 174 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01954/2.221, allocations: 10.11 MB / 0.6786 GB, free: 93.12 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01207/2.233, allocations: 5.188 MB / 0.6837 GB, free: 88.44 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/2.233, allocations: 0 / 0.6837 GB, free: 88.44 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004464/2.238, allocations: 1.959 MB / 0.6856 GB, free: 86.66 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00227/2.24, allocations: 212.9 kB / 0.6858 GB, free: 86.48 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02928/2.269, allocations: 9.161 MB / 0.6948 GB, free: 78.47 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006693/2.276, allocations: 3.309 MB / 0.698 GB, free: 75.92 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.009338/2.286, allocations: 2.073 MB / 0.7 GB, free: 74.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004444/2.29, allocations: 1.804 MB / 0.7018 GB, free: 73.03 MB / 458.7 MB Notification: Performance of SimCode: time 1.623e-06/2.29, allocations: 0 / 0.7018 GB, free: 73.03 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.198/2.488, allocations: 61.85 MB / 0.7622 GB, free: 14.7 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002292/2.488, allocations: 132.1 kB / 0.7623 GB, free: 14.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.82/7.308, allocations: 0 / 0.7623 GB, free: 14.5 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.Revolute_res.mat does not exist to compare? outputFormat=mat