Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.536/2.536, allocations: 270 MB / 283.6 MB, free: 3.109 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.885e-05/4.893e-05, allocations: 7.984 kB / 348.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1355, allocations: 61.89 MB / 410.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6249/0.7605, allocations: 116.6 MB / 0.5146 GB, free: 3.367 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.7608, allocations: 75.95 kB / 0.5147 GB, free: 3.293 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8973/1.658, allocations: 125.1 MB / 0.6369 GB, free: 119.3 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.585e-06/1.658, allocations: 2.906 kB / 0.6369 GB, free: 119.3 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0005257/1.659, allocations: 111.8 kB / 0.637 GB, free: 119.3 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02565/1.684, allocations: 5.633 MB / 0.6425 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/1.684, allocations: 13.83 kB / 0.6425 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004489/1.689, allocations: 0.9723 MB / 0.6434 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03541/1.724, allocations: 4.729 MB / 0.6481 GB, free: 116.7 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02349/1.748, allocations: 6.326 MB / 0.6542 GB, free: 116 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006006/1.749, allocations: 449.5 kB / 0.6547 GB, free: 116 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003047/1.752, allocations: 0.5437 MB / 0.6552 GB, free: 116 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04357/1.795, allocations: 14.01 MB / 0.6689 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003732/1.796, allocations: 64.56 kB / 0.6689 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002815/1.798, allocations: 268.7 kB / 0.6692 GB, free: 111.5 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003125/1.802, allocations: 1.296 MB / 0.6705 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03667/1.838, allocations: 11.45 MB / 0.6816 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09377/1.932, allocations: 59.29 MB / 0.7395 GB, free: 58.57 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02024/1.953, allocations: 4.609 MB / 0.744 GB, free: 54.59 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005397/1.958, allocations: 2.722 MB / 0.7467 GB, free: 52.07 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02797/1.986, allocations: 12.59 MB / 0.759 GB, free: 39.01 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.768e-05/1.986, allocations: 55.88 kB / 0.7591 GB, free: 38.95 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=191): time 6.432e-06/1.986, allocations: 0 / 0.7591 GB, free: 38.95 MB / 0.5105 GB Notification: Performance of matching and sorting (n=242): time 0.1736/2.16, allocations: 32.72 MB / 0.791 GB, free: 6.078 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.286e-05/2.16, allocations: 235.6 kB / 0.7912 GB, free: 5.801 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009547/2.169, allocations: 4.174 MB / 0.7953 GB, free: 1.625 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006921/2.17, allocations: 65.61 kB / 0.7954 GB, free: 1.559 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004168/2.174, allocations: 3.904 MB / 0.7992 GB, free: 13.65 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001809/2.176, allocations: 0.9181 MB / 0.8001 GB, free: 12.74 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001053/2.177, allocations: 148 kB / 0.8002 GB, free: 12.6 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0006219/2.178, allocations: 0.604 MB / 0.8008 GB, free: 11.99 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008786/2.187, allocations: 3.158 MB / 0.8039 GB, free: 8.828 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4701/2.657, allocations: 7.386 MB / 0.8111 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01241/2.669, allocations: 4.748 MB / 0.8157 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001822/2.67, allocations: 43.84 kB / 0.8158 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=942) (initialization): time 0.05094/2.721, allocations: 13.25 MB / 0.8287 GB, free: 118.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001453/2.721, allocations: 73.89 kB / 0.8288 GB, free: 118.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002716/2.721, allocations: 151.2 kB / 0.8289 GB, free: 118.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02116/2.742, allocations: 3.802 MB / 0.8326 GB, free: 118.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01011/2.752, allocations: 1.618 MB / 0.8342 GB, free: 118.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0462/2.799, allocations: 18.01 MB / 0.8518 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01513/2.814, allocations: 489.9 kB / 0.8523 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002483/2.816, allocations: 432.5 kB / 0.8527 GB, free: 113.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 689 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],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],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 (859): * Single equations (assignments): 855 * 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 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003354/2.82, allocations: 0.6474 MB / 0.8533 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001728/2.822, allocations: 433.3 kB / 0.8537 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04867/2.87, allocations: 8.079 MB / 0.8616 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.122e-05/2.87, allocations: 24.56 kB / 0.8617 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.901e-05/2.87, allocations: 15.16 kB / 0.8617 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.873e-05/2.871, allocations: 9.797 kB / 0.8617 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06683/2.937, allocations: 17.38 MB / 0.8787 GB, free: 104.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.312e-05/2.938, allocations: 1.375 kB / 0.8787 GB, free: 104.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003774/2.941, allocations: 385.7 kB / 0.879 GB, free: 104.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02094/2.962, allocations: 3.847 MB / 0.8828 GB, free: 103.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007059/2.963, allocations: 44.69 kB / 0.8828 GB, free: 103.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03745/3.001, allocations: 16.46 MB / 0.8989 GB, free: 96.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/3.001, allocations: 3.75 kB / 0.8989 GB, free: 96.73 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03883/3.039, allocations: 12.54 MB / 0.9111 GB, free: 87.62 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001592/3.041, allocations: 474 kB / 0.9116 GB, free: 87.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001782/3.043, allocations: 40.64 kB / 0.9116 GB, free: 87.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005327/3.048, allocations: 211.5 kB / 0.9118 GB, free: 86.99 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001137/3.049, allocations: 145.9 kB / 0.912 GB, free: 86.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003227/3.05, allocations: 59.36 kB / 0.912 GB, free: 86.85 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.007373/3.057, allocations: 2.904 MB / 0.9149 GB, free: 84.28 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.362e-06/3.057, allocations: 4 kB / 0.9149 GB, free: 84.28 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00972/3.067, allocations: 1.46 MB / 0.9163 GB, free: 82.84 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (167): * Single equations (assignments): 163 * 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 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0438/3.111, allocations: 13.45 MB / 0.9294 GB, free: 71.12 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02451/3.135, allocations: 7.511 MB / 0.9368 GB, free: 63.64 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/3.135, allocations: 0 / 0.9368 GB, free: 63.64 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.009289/3.145, allocations: 2.872 MB / 0.9396 GB, free: 60.75 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005976/3.151, allocations: 499.9 kB / 0.94 GB, free: 60.28 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05519/3.206, allocations: 12.41 MB / 0.9522 GB, free: 47.85 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01315/3.219, allocations: 4.215 MB / 0.9563 GB, free: 43.64 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.014/3.233, allocations: 2.175 MB / 0.9584 GB, free: 41.48 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008039/3.241, allocations: 2.475 MB / 0.9608 GB, free: 39 MB / 0.5261 GB Notification: Performance of SimCode: time 1.593e-06/3.241, allocations: 0 / 0.9608 GB, free: 39 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7442/3.986, allocations: 110.2 MB / 1.068 GB, free: 124.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002305/3.986, allocations: 171.6 kB / 1.069 GB, free: 124.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.688/10.67, allocations: 4 kB / 1.069 GB, free: 124.5 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat does not exist to compare? outputFormat=mat