Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.989/1.989, allocations: 209.4 MB / 216.9 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.936e-05/2.929e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1074, allocations: 48.7 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4416/0.5491, allocations: 93.14 MB / 409.4 MB, free: 15.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002731/0.5494, allocations: 74.47 kB / 409.5 MB, free: 15.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3/0.8494, allocations: 72.71 MB / 482.2 MB, free: 10.02 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.949e-06/0.8495, allocations: 0 / 482.2 MB, free: 10.02 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002159/0.8497, allocations: 83.94 kB / 482.3 MB, free: 9.934 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: 1289 * Number of variables: 1289 Notification: Performance of Generate backend data structure: time 0.01436/0.8641, allocations: 3.57 MB / 485.9 MB, free: 6.305 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.825e-05/0.8642, allocations: 12.03 kB / 485.9 MB, free: 6.293 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006237/0.8704, allocations: 0.6699 MB / 486.6 MB, free: 5.617 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008166/0.8787, allocations: 2.189 MB / 488.7 MB, free: 3.383 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002801/0.879, allocations: 124 kB / 488.9 MB, free: 3.262 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00173/0.8807, allocations: 227.9 kB / 489.1 MB, free: 3.039 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2929/1.174, allocations: 5.218 MB / 494.3 MB, free: 95.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02154/1.195, allocations: 6.885 MB / 0.4894 GB, free: 94.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001751/1.195, allocations: 19.42 kB / 0.4895 GB, free: 94.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001457/1.197, allocations: 11.41 kB / 0.4895 GB, free: 94.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002837/1.2, allocations: 0.7886 MB / 0.4902 GB, free: 94.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05536/1.255, allocations: 25.96 MB / 0.5156 GB, free: 83.05 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002696/1.258, allocations: 1.11 MB / 0.5167 GB, free: 82.61 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001481/1.259, allocations: 0.73 MB / 0.5174 GB, free: 82.29 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01126/1.271, allocations: 5.93 MB / 0.5232 GB, free: 78.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.745e-05/1.271, allocations: 48.2 kB / 0.5232 GB, free: 78.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=67): time 4.589e-06/1.271, allocations: 0 / 0.5232 GB, free: 78.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=76): time 0.0162/1.287, allocations: 4.649 MB / 0.5278 GB, free: 75.86 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/1.287, allocations: 139.5 kB / 0.5279 GB, free: 75.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003606/1.291, allocations: 1.924 MB / 0.5298 GB, free: 74.92 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001813/1.291, allocations: 25.7 kB / 0.5298 GB, free: 74.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001718/1.293, allocations: 2.478 MB / 0.5322 GB, free: 72.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004353/1.293, allocations: 320.8 kB / 0.5325 GB, free: 72.73 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002915/1.294, allocations: 0 / 0.5325 GB, free: 72.73 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002334/1.294, allocations: 468.6 kB / 0.533 GB, free: 72.36 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001836/1.296, allocations: 0.8289 MB / 0.5338 GB, free: 72.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003382/1.299, allocations: 3.198 MB / 0.5369 GB, free: 68.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003385/1.302, allocations: 1.594 MB / 0.5385 GB, free: 68.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.595e-05/1.303, allocations: 26 kB / 0.5385 GB, free: 68.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=488) (initialization): time 0.009181/1.312, allocations: 3.44 MB / 0.5419 GB, free: 66.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.673e-05/1.312, allocations: 43.47 kB / 0.5419 GB, free: 66.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001163/1.312, allocations: 91.59 kB / 0.542 GB, free: 66.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001523/1.312, allocations: 123.7 kB / 0.5421 GB, free: 66.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005276/1.317, allocations: 0.9071 MB / 0.543 GB, free: 66.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001529/1.318, allocations: 172.1 kB / 0.5432 GB, free: 66.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003737/1.321, allocations: 101.5 kB / 0.5433 GB, free: 66.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007844/1.322, allocations: 232.3 kB / 0.5435 GB, free: 66.68 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 391 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[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],Fixed1.color[3],Fixed1.color[2],Fixed1.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 (488): * Single equations (assignments): 488 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006741/1.323, allocations: 325.5 kB / 0.5438 GB, free: 66.41 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001797/1.325, allocations: 0.8344 MB / 0.5446 GB, free: 66.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003991/1.325, allocations: 192.4 kB / 0.5448 GB, free: 65.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002085/1.327, allocations: 0.9014 MB / 0.5457 GB, free: 65.58 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/1.327, allocations: 7.281 kB / 0.5457 GB, free: 65.58 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/1.327, allocations: 3.906 kB / 0.5457 GB, free: 65.58 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/1.327, allocations: 3.422 kB / 0.5457 GB, free: 65.58 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009913/1.337, allocations: 4.286 MB / 0.5499 GB, free: 63.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.168e-05/1.337, allocations: 16.47 kB / 0.5499 GB, free: 63.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001283/1.339, allocations: 208.4 kB / 0.5501 GB, free: 63.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.341e-05/1.339, allocations: 27 kB / 0.5501 GB, free: 63.24 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.037e-05/1.339, allocations: 20.75 kB / 0.5501 GB, free: 63.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.382e-05/1.339, allocations: 29.19 kB / 0.5501 GB, free: 63.24 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.086e-05/1.339, allocations: 25.91 kB / 0.5502 GB, free: 63.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002627/1.342, allocations: 2.868 MB / 0.553 GB, free: 60.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006818/1.342, allocations: 285.6 kB / 0.5532 GB, free: 59.94 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004201/1.343, allocations: 27.22 kB / 0.5533 GB, free: 59.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/1.344, allocations: 23.8 kB / 0.5533 GB, free: 59.94 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/1.344, allocations: 120.7 kB / 0.5534 GB, free: 59.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.866e-05/1.344, allocations: 46.34 kB / 0.5535 GB, free: 59.88 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002695/1.347, allocations: 1.263 MB / 0.5547 GB, free: 59.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.347, allocations: 0 / 0.5547 GB, free: 59.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004806/1.352, allocations: 0.5519 MB / 0.5552 GB, free: 59.35 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00393/1.356, allocations: 8.018 MB / 0.5631 GB, free: 51.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004476/1.36, allocations: 1.983 MB / 0.565 GB, free: 50.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.9e-05/1.36, allocations: 8.031 kB / 0.565 GB, free: 50.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009696/1.361, allocations: 442.4 kB / 0.5654 GB, free: 50.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001757/1.363, allocations: 217.2 kB / 0.5656 GB, free: 50.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02035/1.384, allocations: 6.615 MB / 0.5721 GB, free: 46.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005688/1.389, allocations: 2.791 MB / 0.5748 GB, free: 44.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003516/1.393, allocations: 1.471 MB / 0.5763 GB, free: 43.07 MB / 410.7 MB Notification: Performance of SimCode: time 1.663e-06/1.393, allocations: 0 / 0.5763 GB, free: 43.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.344/4.737, allocations: 53.77 MB / 0.6288 GB, free: 10.46 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointUSP_res.mat does not exist to compare? outputFormat=mat