Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.976/1.976, allocations: 209.3 MB / 221.5 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.723e-05/4.734e-05, allocations: 7.984 kB / 273.2 MB, free: 156 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1039, allocations: 48.71 MB / 321.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4361/0.5401, allocations: 94.35 MB / 416.2 MB, free: 11.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002821/0.5405, allocations: 76.84 kB / 416.3 MB, free: 11.15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3248/0.8653, allocations: 75.72 MB / 492 MB, free: 14.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.8653, allocations: 0 / 492 MB, free: 14.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002087/0.8656, allocations: 79.98 kB / 492.1 MB, free: 14.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: 1300 * Number of variables: 1300 Notification: Performance of Generate backend data structure: time 0.01684/0.8824, allocations: 3.792 MB / 495.9 MB, free: 10.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/0.8825, allocations: 8.031 kB / 495.9 MB, free: 10.98 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003097/0.8856, allocations: 0.6634 MB / 496.5 MB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006406/0.8921, allocations: 0.6815 MB / 497.2 MB, free: 9.617 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009139/0.9013, allocations: 2.204 MB / 499.4 MB, free: 7.363 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004535/0.9018, allocations: 291.7 kB / 499.7 MB, free: 7.078 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002072/0.9039, allocations: 379.8 kB / 0.4884 GB, free: 6.707 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3284/1.232, allocations: 8.824 MB / 0.497 GB, free: 102.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001507/1.232, allocations: 19.31 kB / 0.497 GB, free: 102.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008846/1.233, allocations: 172.7 kB / 0.4972 GB, free: 102.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002782/1.236, allocations: 0.8366 MB / 0.498 GB, free: 102.2 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02711/1.263, allocations: 7.159 MB / 0.505 GB, free: 102.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06049/1.324, allocations: 29.03 MB / 0.5333 GB, free: 88.67 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01276/1.337, allocations: 2.262 MB / 0.5355 GB, free: 88.05 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002343/1.339, allocations: 1.052 MB / 0.5366 GB, free: 87.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01549/1.355, allocations: 7.603 MB / 0.544 GB, free: 82.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/1.355, allocations: 42.84 kB / 0.544 GB, free: 82.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=81): time 4.128e-06/1.355, allocations: 0 / 0.544 GB, free: 82.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=97): time 0.03221/1.387, allocations: 6.484 MB / 0.5504 GB, free: 79.92 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.097e-05/1.387, allocations: 146.9 kB / 0.5505 GB, free: 79.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00528/1.392, allocations: 2.302 MB / 0.5527 GB, free: 78.89 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002476/1.393, allocations: 45.67 kB / 0.5528 GB, free: 78.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001995/1.395, allocations: 2.412 MB / 0.5551 GB, free: 77 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005409/1.395, allocations: 393.3 kB / 0.5555 GB, free: 76.72 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003712/1.396, allocations: 78.5 kB / 0.5556 GB, free: 76.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002419/1.396, allocations: 466.1 kB / 0.556 GB, free: 76.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002645/1.399, allocations: 1.04 MB / 0.5571 GB, free: 75.92 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004306/1.403, allocations: 3.427 MB / 0.5604 GB, free: 72.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004178/1.407, allocations: 1.836 MB / 0.5622 GB, free: 71.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.968e-05/1.407, allocations: 29.44 kB / 0.5622 GB, free: 71.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=497) (initialization): time 0.0114/1.419, allocations: 4.343 MB / 0.5665 GB, free: 70.07 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.534e-05/1.419, allocations: 42.75 kB / 0.5665 GB, free: 70.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001084/1.419, allocations: 86.81 kB / 0.5666 GB, free: 70.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001511/1.419, allocations: 124 kB / 0.5667 GB, free: 70.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005711/1.425, allocations: 0.9487 MB / 0.5676 GB, free: 69.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001825/1.425, allocations: 174.9 kB / 0.5678 GB, free: 69.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004064/1.429, allocations: 195.8 kB / 0.568 GB, free: 69.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007981/1.43, allocations: 231.8 kB / 0.5682 GB, free: 69.81 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 388 * Number of states: 0 () * Number of discrete variables: 40 (jointUSR.revolute.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],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[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 (497): * Single equations (assignments): 497 * 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.0008364/1.431, allocations: 425.6 kB / 0.5686 GB, free: 69.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005698/1.432, allocations: 224.9 kB / 0.5688 GB, free: 69.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0033/1.435, allocations: 1.355 MB / 0.5702 GB, free: 68.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-05/1.435, allocations: 18.03 kB / 0.5702 GB, free: 68.76 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/1.435, allocations: 0 / 0.5702 GB, free: 68.76 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.655e-05/1.435, allocations: 11.27 kB / 0.5702 GB, free: 68.76 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01496/1.45, allocations: 6.151 MB / 0.5762 GB, free: 65.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.288e-05/1.45, allocations: 15.5 kB / 0.5762 GB, free: 65.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001665/1.452, allocations: 252.3 kB / 0.5764 GB, free: 65.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.695e-05/1.452, allocations: 30.14 kB / 0.5765 GB, free: 65.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001358/1.452, allocations: 45.64 kB / 0.5765 GB, free: 65.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.659e-05/1.452, allocations: 37.83 kB / 0.5766 GB, free: 65.67 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.731e-05/1.452, allocations: 26.75 kB / 0.5766 GB, free: 65.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003487/1.455, allocations: 3.551 MB / 0.58 GB, free: 62.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008708/1.456, allocations: 323.8 kB / 0.5804 GB, free: 62.12 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004691/1.457, allocations: 51.03 kB / 0.5804 GB, free: 62.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001628/1.459, allocations: 49.73 kB / 0.5804 GB, free: 62.09 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002577/1.459, allocations: 139.3 kB / 0.5806 GB, free: 62.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/1.459, allocations: 52.53 kB / 0.5806 GB, free: 62.03 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003829/1.463, allocations: 1.641 MB / 0.5822 GB, free: 61.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.62e-07/1.463, allocations: 0 / 0.5822 GB, free: 61.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004871/1.468, allocations: 0.6819 MB / 0.5829 GB, free: 61.32 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 130 * 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.005147/1.473, allocations: 8.652 MB / 0.5913 GB, free: 52.98 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005595/1.479, allocations: 2.485 MB / 0.5938 GB, free: 50.68 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.075e-05/1.479, allocations: 4 kB / 0.5938 GB, free: 50.68 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001379/1.48, allocations: 0.6042 MB / 0.5944 GB, free: 50.12 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002181/1.482, allocations: 304 kB / 0.5947 GB, free: 49.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02062/1.503, allocations: 6.604 MB / 0.6011 GB, free: 43.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004405/1.507, allocations: 2.805 MB / 0.6038 GB, free: 41.66 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004797/1.512, allocations: 1.045 MB / 0.6049 GB, free: 41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002899/1.515, allocations: 1.456 MB / 0.6063 GB, free: 39.65 MB / 426.7 MB Notification: Performance of SimCode: time 1.633e-06/1.515, allocations: 0 / 0.6063 GB, free: 39.65 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1292/1.644, allocations: 50.27 MB / 0.6554 GB, free: 9.281 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003402/1.645, allocations: 151.8 kB / 0.6555 GB, free: 9.051 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.585/6.23, allocations: 0 / 0.6555 GB, free: 9.051 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.JointUSR_res.mat does not exist to compare? outputFormat=mat