Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.016/2.016, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.661e-05/2.67e-05, allocations: 4 kB / 267.6 MB, free: 5.328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1077, allocations: 48.69 MB / 316.3 MB, free: 4.535 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.465/0.5728, allocations: 93.79 MB / 410.1 MB, free: 15.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.5731, allocations: 79.06 kB / 410.2 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.71/1.283, allocations: 100.8 MB / 0.499 GB, free: 85.61 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.635e-06/1.283, allocations: 4.688 kB / 0.499 GB, free: 85.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004202/1.284, allocations: 103 kB / 0.4991 GB, free: 85.61 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: 1723 * Number of variables: 1723 Notification: Performance of Generate backend data structure: time 0.02312/1.307, allocations: 5.191 MB / 0.5042 GB, free: 83.55 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/1.307, allocations: 8.938 kB / 0.5042 GB, free: 83.55 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04973/1.357, allocations: 6.894 MB / 0.5109 GB, free: 83.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02621/1.383, allocations: 7.469 MB / 0.5182 GB, free: 82.44 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000378/1.383, allocations: 159.2 kB / 0.5184 GB, free: 82.44 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003033/1.386, allocations: 297.8 kB / 0.5187 GB, free: 82.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01806/1.404, allocations: 7.032 MB / 0.5255 GB, free: 82.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02903/1.433, allocations: 10.78 MB / 0.536 GB, free: 76.95 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004334/1.434, allocations: 73.25 kB / 0.5361 GB, free: 76.95 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002654/1.437, allocations: 38.72 kB / 0.5362 GB, free: 76.94 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003249/1.44, allocations: 1.136 MB / 0.5373 GB, free: 76.74 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09724/1.537, allocations: 53.92 MB / 0.5899 GB, free: 33.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007516/1.545, allocations: 4.331 MB / 0.5941 GB, free: 29.72 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004923/1.55, allocations: 2.744 MB / 0.5968 GB, free: 27.19 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009646/1.551, allocations: 0.5644 MB / 0.5974 GB, free: 26.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.661e-05/1.551, allocations: 59.81 kB / 0.5974 GB, free: 26.52 MB / 410.7 MB Notification: Performance of pre-optimization done (n=213): time 6.713e-06/1.551, allocations: 0 / 0.5974 GB, free: 26.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=272): time 0.1154/1.666, allocations: 27.01 MB / 0.6238 GB, free: 0.6719 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.845e-05/1.666, allocations: 205.9 kB / 0.624 GB, free: 440 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009536/1.676, allocations: 3.592 MB / 0.6275 GB, free: 12.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007798/1.677, allocations: 25.7 kB / 0.6275 GB, free: 12.79 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004202/1.681, allocations: 3.537 MB / 0.631 GB, free: 9.207 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001929/1.683, allocations: 0.9633 MB / 0.6319 GB, free: 8.23 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000999/1.684, allocations: 0 / 0.6319 GB, free: 8.23 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006823/1.685, allocations: 0.612 MB / 0.6325 GB, free: 7.609 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007609/1.692, allocations: 2.872 MB / 0.6353 GB, free: 4.734 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3108/2.003, allocations: 6.778 MB / 0.642 GB, free: 87.47 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01118/2.015, allocations: 4.376 MB / 0.6462 GB, free: 87.44 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002509/2.015, allocations: 40.75 kB / 0.6463 GB, free: 87.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=907) (initialization): time 0.04416/2.059, allocations: 11.99 MB / 0.658 GB, free: 87.02 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001653/2.059, allocations: 63.38 kB / 0.658 GB, free: 87.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002455/2.059, allocations: 140.8 kB / 0.6582 GB, free: 87.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02047/2.08, allocations: 3.967 MB / 0.662 GB, free: 86.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009413/2.089, allocations: 1.469 MB / 0.6635 GB, free: 86.85 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05373/2.143, allocations: 24.35 MB / 0.6873 GB, free: 77.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008969/2.152, allocations: 266.6 kB / 0.6875 GB, free: 77.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002099/2.154, allocations: 414.2 kB / 0.6879 GB, free: 77.48 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * Number of states: 0 () * Number of discrete variables: 39 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (791): * Single equations (assignments): 785 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.003405/2.158, allocations: 459.9 kB / 0.6883 GB, free: 77.19 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02882/2.187, allocations: 7.859 MB / 0.696 GB, free: 74.86 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001646/2.188, allocations: 414.7 kB / 0.6964 GB, free: 74.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02704/2.215, allocations: 7.749 MB / 0.704 GB, free: 72.14 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.458e-05/2.216, allocations: 28.47 kB / 0.704 GB, free: 72.14 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.76e-05/2.216, allocations: 11.22 kB / 0.704 GB, free: 72.14 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-05/2.216, allocations: 14.69 kB / 0.704 GB, free: 72.14 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04945/2.265, allocations: 15.76 MB / 0.7194 GB, free: 66.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.422e-05/2.265, allocations: 7.312 kB / 0.7194 GB, free: 66.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003026/2.268, allocations: 304.3 kB / 0.7197 GB, free: 66.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01853/2.287, allocations: 3.668 MB / 0.7233 GB, free: 63.93 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007228/2.288, allocations: 8 kB / 0.7233 GB, free: 63.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.047/2.335, allocations: 23.09 MB / 0.7459 GB, free: 43.53 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-05/2.335, allocations: 15.27 kB / 0.7459 GB, free: 43.52 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03269/2.367, allocations: 12.28 MB / 0.7579 GB, free: 31.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00346/2.371, allocations: 0.9159 MB / 0.7588 GB, free: 30.27 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001647/2.373, allocations: 8 kB / 0.7588 GB, free: 30.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004514/2.377, allocations: 131.7 kB / 0.7589 GB, free: 30.13 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001267/2.379, allocations: 198.1 kB / 0.7591 GB, free: 29.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003426/2.379, allocations: 73.02 kB / 0.7592 GB, free: 29.86 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006046/2.385, allocations: 2.439 MB / 0.7615 GB, free: 27.42 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.032e-06/2.385, allocations: 4 kB / 0.7615 GB, free: 27.42 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009948/2.395, allocations: 1.232 MB / 0.7627 GB, free: 26.19 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 (168): * Single equations (assignments): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.03357/2.429, allocations: 14.09 MB / 0.7765 GB, free: 11.89 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0192/2.448, allocations: 7.764 MB / 0.7841 GB, free: 4.129 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/2.448, allocations: 0 / 0.7841 GB, free: 4.129 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008646/2.457, allocations: 3.355 MB / 0.7874 GB, free: 0.7422 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004367/2.461, allocations: 466 kB / 0.7878 GB, free: 300 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3452/2.806, allocations: 12.36 MB / 0.7999 GB, free: 98.11 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01055/2.817, allocations: 4.038 MB / 0.8038 GB, free: 97.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005682/2.823, allocations: 2.403 MB / 0.8062 GB, free: 97.3 MB / 442.7 MB Notification: Performance of SimCode: time 1.733e-06/2.823, allocations: 0 / 0.8062 GB, free: 97.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.208/8.03, allocations: 163.9 MB / 0.9662 GB, free: 95.67 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat does not exist to compare? outputFormat=mat