Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.673/2.673, allocations: 270 MB / 283.6 MB, free: 1.91 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.643e-05/4.695e-05, allocations: 4 kB / 348.5 MB, free: 2.645 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5448/0.5449, allocations: 61.87 MB / 410.4 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2246/0.7696, allocations: 117.3 MB / 0.5153 GB, free: 5.219 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003013/0.77, allocations: 75.95 kB / 0.5154 GB, free: 5.145 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9647/1.735, allocations: 144.9 MB / 0.6568 GB, free: 168 kB / 458.7 MB Notification: Performance of FrontEnd: time 2.304e-06/1.735, allocations: 0 / 0.6568 GB, free: 168 kB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005525/1.735, allocations: 128 kB / 0.657 GB, free: 40 kB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.03008/1.765, allocations: 6.643 MB / 0.6634 GB, free: 9.32 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.699e-05/1.766, allocations: 12.03 kB / 0.6635 GB, free: 9.309 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006527/1.772, allocations: 1.272 MB / 0.6647 GB, free: 8.023 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07145/1.844, allocations: 9.332 MB / 0.6738 GB, free: 14.67 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03528/1.879, allocations: 8.662 MB / 0.6823 GB, free: 5.922 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000817/1.88, allocations: 488.7 kB / 0.6827 GB, free: 5.441 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003907/1.884, allocations: 0.6325 MB / 0.6834 GB, free: 4.809 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05725/1.941, allocations: 15.48 MB / 0.6985 GB, free: 4.133 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005096/1.942, allocations: 79.3 kB / 0.6985 GB, free: 4.055 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003038/1.945, allocations: 303.9 kB / 0.6988 GB, free: 3.758 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003731/1.948, allocations: 1.381 MB / 0.7002 GB, free: 2.371 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04705/1.995, allocations: 12.5 MB / 0.7124 GB, free: 5.852 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5103/2.506, allocations: 64.4 MB / 0.7753 GB, free: 59.44 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02923/2.535, allocations: 6.202 MB / 0.7813 GB, free: 58.75 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006627/2.542, allocations: 3.116 MB / 0.7844 GB, free: 58.71 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02571/2.568, allocations: 11.15 MB / 0.7953 GB, free: 55.56 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.674e-05/2.568, allocations: 58.97 kB / 0.7953 GB, free: 55.51 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=245): time 7.294e-06/2.568, allocations: 0 / 0.7953 GB, free: 55.51 MB / 0.5105 GB Notification: Performance of matching and sorting (n=337): time 0.179/2.747, allocations: 29.49 MB / 0.8241 GB, free: 47.67 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/2.747, allocations: 241.8 kB / 0.8243 GB, free: 47.42 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01257/2.76, allocations: 4.913 MB / 0.8291 GB, free: 45.73 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009002/2.76, allocations: 78.83 kB / 0.8292 GB, free: 45.66 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004262/2.765, allocations: 4.471 MB / 0.8336 GB, free: 42.49 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002012/2.767, allocations: 1.235 MB / 0.8348 GB, free: 41.57 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001405/2.768, allocations: 169.3 kB / 0.835 GB, free: 41.45 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008219/2.769, allocations: 0.6537 MB / 0.8356 GB, free: 40.99 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008888/2.778, allocations: 3.531 MB / 0.839 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01198/2.79, allocations: 8.022 MB / 0.8469 GB, free: 31.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01169/2.802, allocations: 5.283 MB / 0.852 GB, free: 26.91 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001715/2.802, allocations: 50.34 kB / 0.8521 GB, free: 26.86 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.04945/2.852, allocations: 14.15 MB / 0.8659 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001226/2.852, allocations: 72 kB / 0.866 GB, free: 15.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002362/2.852, allocations: 163.9 kB / 0.8661 GB, free: 15.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0212/2.873, allocations: 3.557 MB / 0.8696 GB, free: 12.69 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01175/2.885, allocations: 1.803 MB / 0.8714 GB, free: 11.11 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05058/2.936, allocations: 18.14 MB / 0.8891 GB, free: 12.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01065/2.946, allocations: 489 kB / 0.8895 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00276/2.949, allocations: 474.9 kB / 0.89 GB, free: 11.44 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 724 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (972): * Single equations (assignments): 968 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003794/2.953, allocations: 0.7077 MB / 0.8907 GB, free: 10.72 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001983/2.955, allocations: 0.5245 MB / 0.8912 GB, free: 10.19 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03774/2.993, allocations: 8.824 MB / 0.8998 GB, free: 3.266 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.606e-05/2.993, allocations: 32 kB / 0.8998 GB, free: 3.234 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-05/2.993, allocations: 19.75 kB / 0.8999 GB, free: 3.219 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.591e-05/2.993, allocations: 19.42 kB / 0.8999 GB, free: 3.215 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07035/3.063, allocations: 18.57 MB / 0.918 GB, free: 0.7734 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-05/3.064, allocations: 4 kB / 0.918 GB, free: 0.7695 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005002/3.069, allocations: 491.3 kB / 0.9185 GB, free: 296 kB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4267/3.495, allocations: 3.093 MB / 0.9215 GB, free: 121.3 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008693/3.496, allocations: 64.2 kB / 0.9216 GB, free: 121.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03743/3.534, allocations: 15.58 MB / 0.9368 GB, free: 120 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.067e-05/3.534, allocations: 11.09 kB / 0.9368 GB, free: 120 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04154/3.575, allocations: 14.04 MB / 0.9505 GB, free: 118.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002031/3.577, allocations: 0.5506 MB / 0.951 GB, free: 118 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002492/3.58, allocations: 64.11 kB / 0.9511 GB, free: 118 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006347/3.586, allocations: 207.5 kB / 0.9513 GB, free: 118 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001487/3.588, allocations: 219.9 kB / 0.9515 GB, free: 118 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004717/3.588, allocations: 91.12 kB / 0.9516 GB, free: 118 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0095/3.598, allocations: 3.46 MB / 0.955 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.133e-06/3.598, allocations: 0 / 0.955 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01195/3.61, allocations: 1.681 MB / 0.9566 GB, free: 117.8 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (253): * Single equations (assignments): 249 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04354/3.653, allocations: 15.97 MB / 0.9722 GB, free: 112 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02/3.674, allocations: 8.532 MB / 0.9806 GB, free: 109 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.34e-05/3.674, allocations: 0 / 0.9806 GB, free: 109 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.008645/3.682, allocations: 3.385 MB / 0.9839 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006727/3.689, allocations: 0.688 MB / 0.9845 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05714/3.746, allocations: 15.01 MB / 0.9992 GB, free: 101.7 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01452/3.761, allocations: 4.957 MB / 1.004 GB, free: 100.1 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01678/3.778, allocations: 2.599 MB / 1.007 GB, free: 99.31 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00902/3.787, allocations: 3.055 MB / 1.01 GB, free: 96.47 MB / 0.5417 GB Notification: Performance of SimCode: time 2.014e-06/3.787, allocations: 3.375 kB / 1.01 GB, free: 96.47 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7685/4.555, allocations: 131.4 MB / 1.138 GB, free: 115.4 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001711/4.556, allocations: 176.1 kB / 1.138 GB, free: 115.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.247/12.8, allocations: 3.938 kB / 1.138 GB, free: 115.2 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat