Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.211/2.211, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.692e-05/4.711e-05, allocations: 4 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1188, allocations: 48.69 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4668/0.5857, allocations: 94.89 MB / 416.7 MB, free: 11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002977/0.586, allocations: 78.92 kB / 416.8 MB, free: 10.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6926/1.279, allocations: 97.46 MB / 0.5022 GB, free: 95.85 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.545e-06/1.279, allocations: 0 / 0.5022 GB, free: 95.85 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002543/1.279, allocations: 90.34 kB / 0.5023 GB, free: 95.84 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1869 * Number of variables: 1869 Notification: Performance of Generate backend data structure: time 0.02701/1.306, allocations: 4.648 MB / 0.5068 GB, free: 94.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.741e-05/1.306, allocations: 9.094 kB / 0.5069 GB, free: 94.09 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005249/1.311, allocations: 0.9421 MB / 0.5078 GB, free: 94 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0287/1.34, allocations: 3.62 MB / 0.5113 GB, free: 93.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02106/1.361, allocations: 4.893 MB / 0.5161 GB, free: 93.12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006993/1.362, allocations: 379.7 kB / 0.5164 GB, free: 93.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00362/1.366, allocations: 496.3 kB / 0.5169 GB, free: 93.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0396/1.405, allocations: 12.05 MB / 0.5287 GB, free: 91.61 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003674/1.406, allocations: 38.81 kB / 0.5287 GB, free: 91.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003014/1.409, allocations: 219.6 kB / 0.5289 GB, free: 91.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002864/1.412, allocations: 1.319 MB / 0.5302 GB, free: 91.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03344/1.445, allocations: 11.21 MB / 0.5412 GB, free: 90.41 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08691/1.532, allocations: 41.9 MB / 0.5821 GB, free: 64.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01567/1.548, allocations: 4.893 MB / 0.5869 GB, free: 61.39 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00499/1.553, allocations: 2.364 MB / 0.5892 GB, free: 59.23 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01627/1.569, allocations: 6.553 MB / 0.5956 GB, free: 53.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.61e-05/1.569, allocations: 56.56 kB / 0.5956 GB, free: 53.33 MB / 426.7 MB Notification: Performance of pre-optimization done (n=228): time 6.903e-06/1.569, allocations: 3.094 kB / 0.5956 GB, free: 53.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=237): time 0.05579/1.625, allocations: 13.6 MB / 0.6089 GB, free: 41.63 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/1.625, allocations: 77.41 kB / 0.609 GB, free: 41.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006039/1.631, allocations: 2.815 MB / 0.6117 GB, free: 39.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005308/1.632, allocations: 53.7 kB / 0.6118 GB, free: 38.98 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002421/1.634, allocations: 3.265 MB / 0.615 GB, free: 36.05 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001314/1.636, allocations: 0.8874 MB / 0.6158 GB, free: 35.27 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007302/1.636, allocations: 116 kB / 0.6159 GB, free: 35.16 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005217/1.637, allocations: 0.5727 MB / 0.6165 GB, free: 34.64 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005663/1.643, allocations: 2.33 MB / 0.6188 GB, free: 32.54 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007993/1.651, allocations: 5.657 MB / 0.6243 GB, free: 25.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007843/1.659, allocations: 3.68 MB / 0.6279 GB, free: 22.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001038/1.659, allocations: 36 kB / 0.6279 GB, free: 22.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.02405/1.683, allocations: 8.415 MB / 0.6361 GB, free: 14.08 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.196e-05/1.683, allocations: 52 kB / 0.6362 GB, free: 14.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001438/1.683, allocations: 124 kB / 0.6363 GB, free: 13.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006117/1.689, allocations: 1.164 MB / 0.6375 GB, free: 12.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008507/1.698, allocations: 1.376 MB / 0.6388 GB, free: 11.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008325/1.706, allocations: 4.58 MB / 0.6433 GB, free: 6.633 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006412/1.713, allocations: 323.7 kB / 0.6436 GB, free: 6.316 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001356/1.714, allocations: 352 kB / 0.6439 GB, free: 5.973 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 538 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[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 (742): * Single equations (assignments): 734 * 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: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {3 5} Notification: Performance of prepare postOptimizeDAE: time 0.00156/1.716, allocations: 0.5398 MB / 0.6444 GB, free: 5.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007541/1.716, allocations: 308 kB / 0.6447 GB, free: 5.125 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0126/1.729, allocations: 4.394 MB / 0.649 GB, free: 0.7031 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001039/1.729, allocations: 47.98 kB / 0.6491 GB, free: 0.6562 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/1.729, allocations: 0 / 0.6491 GB, free: 0.6562 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.578e-05/1.729, allocations: 11.95 kB / 0.6491 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03404/1.763, allocations: 10.39 MB / 0.6592 GB, free: 6.172 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.833e-05/1.763, allocations: 4 kB / 0.6592 GB, free: 6.168 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003861/1.767, allocations: 387.4 kB / 0.6596 GB, free: 5.789 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003726/1.771, allocations: 0.6774 MB / 0.6603 GB, free: 5.098 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006252/1.772, allocations: 47.98 kB / 0.6603 GB, free: 5.051 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00464/1.776, allocations: 2.411 MB / 0.6627 GB, free: 2.504 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.044e-05/1.776, allocations: 8 kB / 0.6627 GB, free: 2.496 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.323/2.099, allocations: 7.119 MB / 0.6696 GB, free: 99.46 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001014/2.101, allocations: 353.8 kB / 0.67 GB, free: 99.37 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001018/2.102, allocations: 44.39 kB / 0.67 GB, free: 99.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002826/2.104, allocations: 137.7 kB / 0.6701 GB, free: 99.37 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005935/2.105, allocations: 130.5 kB / 0.6703 GB, free: 99.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002746/2.105, allocations: 69.52 kB / 0.6703 GB, free: 99.37 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005378/2.111, allocations: 1.902 MB / 0.6722 GB, free: 99.21 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.052e-06/2.111, allocations: 0 / 0.6722 GB, free: 99.21 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007417/2.118, allocations: 1.067 MB / 0.6732 GB, free: 99.21 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 182 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02024/2.139, allocations: 8.91 MB / 0.6819 GB, free: 96.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0138/2.152, allocations: 5.557 MB / 0.6874 GB, free: 96.57 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.194e-05/2.152, allocations: 0 / 0.6874 GB, free: 96.57 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006538/2.159, allocations: 2.378 MB / 0.6897 GB, free: 96.26 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003611/2.163, allocations: 423.5 kB / 0.6901 GB, free: 96.24 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03552/2.198, allocations: 11.59 MB / 0.7014 GB, free: 94.25 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008301/2.207, allocations: 3.831 MB / 0.7051 GB, free: 93.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005259/2.212, allocations: 2.159 MB / 0.7072 GB, free: 91.55 MB / 442.7 MB Notification: Performance of SimCode: time 1.593e-06/2.212, allocations: 0 / 0.7072 GB, free: 91.55 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.022/7.234, allocations: 139.1 MB / 0.8431 GB, free: 93 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat