Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.986/1.986, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.443e-05/3.492e-05, allocations: 4 kB / 267.6 MB, free: 5.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1059, allocations: 48.7 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4648/0.5708, allocations: 92.93 MB / 409.2 MB, free: 15.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/0.5711, allocations: 78.83 kB / 409.3 MB, free: 15.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6823/1.253, allocations: 92.83 MB / 0.4904 GB, free: 86.13 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.394e-06/1.253, allocations: 0 / 0.4904 GB, free: 86.13 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003954/1.254, allocations: 86.38 kB / 0.4905 GB, free: 86.13 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: 1534 * Number of variables: 1534 Notification: Performance of Generate backend data structure: time 0.02047/1.274, allocations: 4.616 MB / 0.495 GB, free: 84.31 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.94e-05/1.274, allocations: 9.375 kB / 0.495 GB, free: 84.31 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06526/1.34, allocations: 6.73 MB / 0.5016 GB, free: 84.01 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03097/1.371, allocations: 6.288 MB / 0.5077 GB, free: 83.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004302/1.371, allocations: 138 kB / 0.5078 GB, free: 83.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003024/1.374, allocations: 266.2 kB / 0.5081 GB, free: 83.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01692/1.391, allocations: 6.583 MB / 0.5145 GB, free: 83.31 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02583/1.417, allocations: 9.558 MB / 0.5238 GB, free: 80.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003204/1.418, allocations: 65.94 kB / 0.5239 GB, free: 80.67 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002163/1.42, allocations: 28.66 kB / 0.5239 GB, free: 80.67 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002287/1.422, allocations: 1.015 MB / 0.5249 GB, free: 80.66 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06562/1.488, allocations: 45.92 MB / 0.5698 GB, free: 46.64 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005643/1.493, allocations: 3.067 MB / 0.5728 GB, free: 45.01 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003448/1.497, allocations: 1.724 MB / 0.5744 GB, free: 44.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002357/1.499, allocations: 1.939 MB / 0.5763 GB, free: 42.57 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.839e-05/1.499, allocations: 51.16 kB / 0.5764 GB, free: 42.52 MB / 410.7 MB Notification: Performance of pre-optimization done (n=186): time 6.562e-06/1.499, allocations: 2.344 kB / 0.5764 GB, free: 42.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=242): time 0.1153/1.615, allocations: 26.25 MB / 0.602 GB, free: 22.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.789e-05/1.615, allocations: 201.9 kB / 0.6022 GB, free: 22.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00708/1.622, allocations: 3.273 MB / 0.6054 GB, free: 19.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006941/1.623, allocations: 25.7 kB / 0.6054 GB, free: 19.13 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002687/1.625, allocations: 3.211 MB / 0.6086 GB, free: 15.88 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001611/1.627, allocations: 0.871 MB / 0.6094 GB, free: 14.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001186/1.628, allocations: 0 / 0.6094 GB, free: 14.99 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006038/1.629, allocations: 0.5837 MB / 0.61 GB, free: 14.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007234/1.636, allocations: 3.305 MB / 0.6132 GB, free: 11.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009523/1.646, allocations: 7.036 MB / 0.6201 GB, free: 2.184 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0107/1.657, allocations: 4.719 MB / 0.6247 GB, free: 13.46 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001478/1.657, allocations: 40 kB / 0.6247 GB, free: 13.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=852) (initialization): time 0.3649/2.022, allocations: 14.54 MB / 0.6389 GB, free: 86.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001428/2.022, allocations: 62.25 kB / 0.639 GB, free: 86.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002879/2.022, allocations: 136 kB / 0.6391 GB, free: 86.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04382/2.066, allocations: 5.922 MB / 0.6449 GB, free: 86.31 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01028/2.076, allocations: 1.491 MB / 0.6464 GB, free: 86.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05075/2.127, allocations: 22.88 MB / 0.6687 GB, free: 83.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008686/2.136, allocations: 281.6 kB / 0.669 GB, free: 83.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001726/2.138, allocations: 390.6 kB / 0.6693 GB, free: 83.46 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 39 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (775): * Single equations (assignments): 770 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001887/2.14, allocations: 446.2 kB / 0.6698 GB, free: 83.31 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0489/2.189, allocations: 10.61 MB / 0.6801 GB, free: 80.57 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001603/2.19, allocations: 367.1 kB / 0.6805 GB, free: 80.57 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04884/2.239, allocations: 10.57 MB / 0.6908 GB, free: 77.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.085e-05/2.239, allocations: 31.66 kB / 0.6908 GB, free: 77.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.072e-05/2.239, allocations: 10.5 kB / 0.6908 GB, free: 77.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.292e-05/2.239, allocations: 13.94 kB / 0.6909 GB, free: 77.49 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06978/2.309, allocations: 19.45 MB / 0.7099 GB, free: 69.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-05/2.309, allocations: 7.031 kB / 0.7099 GB, free: 69.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00377/2.313, allocations: 388.2 kB / 0.7102 GB, free: 69.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03554/2.349, allocations: 4.981 MB / 0.7151 GB, free: 69.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006716/2.349, allocations: 7.438 kB / 0.7151 GB, free: 69.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03884/2.388, allocations: 18.44 MB / 0.7331 GB, free: 53.53 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.297e-05/2.388, allocations: 6.625 kB / 0.7331 GB, free: 53.53 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05043/2.439, allocations: 14.37 MB / 0.7471 GB, free: 38.99 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003212/2.442, allocations: 0.9255 MB / 0.748 GB, free: 38.05 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001325/2.443, allocations: 15.8 kB / 0.7481 GB, free: 38.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004421/2.448, allocations: 139.8 kB / 0.7482 GB, free: 37.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00112/2.449, allocations: 160 kB / 0.7483 GB, free: 37.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003296/2.449, allocations: 60.62 kB / 0.7484 GB, free: 37.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005087/2.454, allocations: 2.206 MB / 0.7506 GB, free: 35.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.42e-07/2.454, allocations: 0 / 0.7506 GB, free: 35.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008618/2.463, allocations: 1.171 MB / 0.7517 GB, free: 34.32 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 168 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0519/2.515, allocations: 16.17 MB / 0.7675 GB, free: 18.07 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01623/2.531, allocations: 7.632 MB / 0.775 GB, free: 10.78 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.428e-05/2.531, allocations: 2.531 kB / 0.775 GB, free: 10.78 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006716/2.538, allocations: 3.041 MB / 0.7779 GB, free: 7.781 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003988/2.542, allocations: 402.5 kB / 0.7783 GB, free: 7.402 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03594/2.578, allocations: 11.69 MB / 0.7897 GB, free: 11.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008579/2.587, allocations: 3.611 MB / 0.7933 GB, free: 8.098 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006212/2.593, allocations: 2.097 MB / 0.7953 GB, free: 6 MB / 442.7 MB Notification: Performance of SimCode: time 1.573e-06/2.593, allocations: 4 kB / 0.7953 GB, free: 5.996 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.052/7.645, allocations: 129.7 MB / 0.922 GB, free: 27.07 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat