Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.871/1.871, allocations: 209.3 MB / 221.5 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.681e-05/3.697e-05, allocations: 4 kB / 273.2 MB, free: 160 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1031, allocations: 48.71 MB / 321.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4705/0.5737, allocations: 104.1 MB / 425.9 MB, free: 1.496 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.574, allocations: 71.97 kB / 426 MB, free: 1.426 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9703/1.544, allocations: 171.9 MB / 0.5839 GB, free: 74.92 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.554e-06/1.544, allocations: 3.938 kB / 0.5839 GB, free: 74.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004678/1.545, allocations: 148 kB / 0.584 GB, free: 74.77 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: 2779 * Number of variables: 2779 Notification: Performance of Generate backend data structure: time 0.03148/1.576, allocations: 7.701 MB / 0.5915 GB, free: 66.99 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/1.576, allocations: 12.03 kB / 0.5915 GB, free: 66.98 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007562/1.584, allocations: 1.63 MB / 0.5931 GB, free: 65.34 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05973/1.644, allocations: 6.947 MB / 0.5999 GB, free: 58.37 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04455/1.688, allocations: 9.838 MB / 0.6095 GB, free: 48.44 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009258/1.689, allocations: 0.5696 MB / 0.6101 GB, free: 47.87 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005451/1.695, allocations: 0.7574 MB / 0.6108 GB, free: 47.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06433/1.759, allocations: 20.55 MB / 0.6309 GB, free: 25.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005075/1.76, allocations: 87.22 kB / 0.631 GB, free: 25.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004173/1.764, allocations: 363.8 kB / 0.6313 GB, free: 24.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004468/1.769, allocations: 1.95 MB / 0.6332 GB, free: 22.74 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05545/1.824, allocations: 17.93 MB / 0.6507 GB, free: 4.797 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4523/2.276, allocations: 82.17 MB / 0.731 GB, free: 22.39 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03064/2.307, allocations: 7.307 MB / 0.7381 GB, free: 20.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01274/2.32, allocations: 3.927 MB / 0.7419 GB, free: 18.59 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05998/2.38, allocations: 18.22 MB / 0.7597 GB, free: 9.352 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.943e-05/2.38, allocations: 70.7 kB / 0.7598 GB, free: 9.289 MB / 426.7 MB Notification: Performance of pre-optimization done (n=332): time 7.204e-06/2.38, allocations: 0 / 0.7598 GB, free: 9.289 MB / 426.7 MB Notification: Performance of matching and sorting (n=413): time 0.146/2.526, allocations: 26.08 MB / 0.7853 GB, free: 1.18 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.919e-05/2.526, allocations: 200.2 kB / 0.7855 GB, free: 0.9844 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03141/2.558, allocations: 6.63 MB / 0.7919 GB, free: 14.26 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001018/2.559, allocations: 81.7 kB / 0.792 GB, free: 14.17 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006357/2.565, allocations: 5.435 MB / 0.7973 GB, free: 9.305 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002817/2.568, allocations: 1.521 MB / 0.7988 GB, free: 7.961 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001672/2.57, allocations: 206.9 kB / 0.799 GB, free: 7.762 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001141/2.571, allocations: 0.7478 MB / 0.7997 GB, free: 7.133 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01227/2.583, allocations: 4.025 MB / 0.8037 GB, free: 3.473 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01965/2.603, allocations: 9.912 MB / 0.8133 GB, free: 7.754 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02024/2.623, allocations: 6.237 MB / 0.8194 GB, free: 2.551 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002977/2.623, allocations: 60 kB / 0.8195 GB, free: 2.492 MB / 458.7 MB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.4021/3.026, allocations: 15.68 MB / 0.8348 GB, free: 94.54 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001915/3.026, allocations: 92.75 kB / 0.8349 GB, free: 94.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004867/3.026, allocations: 207.1 kB / 0.8351 GB, free: 94.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01499/3.041, allocations: 2.334 MB / 0.8374 GB, free: 94.53 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01683/3.058, allocations: 2.436 MB / 0.8397 GB, free: 94.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03059/3.089, allocations: 11.53 MB / 0.851 GB, free: 92.86 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01319/3.102, allocations: 0.6815 MB / 0.8517 GB, free: 92.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002579/3.105, allocations: 0.5895 MB / 0.8522 GB, free: 92.86 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 931 * Number of states: 0 () * Number of discrete variables: 46 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[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],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[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],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1269): * Single equations (assignments): 1262 * Array equations: 6 * 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 prepare postOptimizeDAE: time 0.00439/3.109, allocations: 0.8656 MB / 0.8531 GB, free: 92.54 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001992/3.111, allocations: 0.596 MB / 0.8537 GB, free: 92.54 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03147/3.143, allocations: 8.092 MB / 0.8616 GB, free: 92.27 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001232/3.143, allocations: 60.94 kB / 0.8616 GB, free: 92.27 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.497e-05/3.143, allocations: 10.69 kB / 0.8616 GB, free: 92.27 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-05/3.143, allocations: 25.14 kB / 0.8617 GB, free: 92.27 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0644/3.207, allocations: 18.74 MB / 0.88 GB, free: 85.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.95e-05/3.208, allocations: 10.97 kB / 0.88 GB, free: 85.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006072/3.214, allocations: 0.6421 MB / 0.8806 GB, free: 85.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01269/3.226, allocations: 1.876 MB / 0.8824 GB, free: 85.46 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001041/3.228, allocations: 83.12 kB / 0.8825 GB, free: 85.42 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02751/3.255, allocations: 9.875 MB / 0.8922 GB, free: 80.86 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.475e-05/3.255, allocations: 17.12 kB / 0.8922 GB, free: 80.86 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03968/3.295, allocations: 14.17 MB / 0.906 GB, free: 73.64 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004885/3.3, allocations: 1.159 MB / 0.9071 GB, free: 72.99 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002367/3.302, allocations: 75.62 kB / 0.9072 GB, free: 72.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006954/3.309, allocations: 263.5 kB / 0.9075 GB, free: 72.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001509/3.311, allocations: 260.6 kB / 0.9077 GB, free: 72.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007852/3.312, allocations: 114 kB / 0.9078 GB, free: 72.62 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01092/3.323, allocations: 3.935 MB / 0.9117 GB, free: 69.16 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.52e-07/3.323, allocations: 0 / 0.9117 GB, free: 69.16 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01307/3.336, allocations: 1.938 MB / 0.9136 GB, free: 67.25 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (324): * Single equations (assignments): 317 * Array equations: 6 * 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%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03827/3.374, allocations: 17.11 MB / 0.9303 GB, free: 51.42 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02442/3.399, allocations: 9.621 MB / 0.9397 GB, free: 42.58 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.862e-05/3.399, allocations: 0 / 0.9397 GB, free: 42.58 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008793/3.407, allocations: 3.29 MB / 0.9429 GB, free: 39.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006658/3.414, allocations: 0.7274 MB / 0.9436 GB, free: 38.91 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06108/3.475, allocations: 17.22 MB / 0.9604 GB, free: 23.77 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01556/3.491, allocations: 5.743 MB / 0.966 GB, free: 19.54 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01674/3.508, allocations: 3.33 MB / 0.9693 GB, free: 17.43 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009851/3.518, allocations: 3.683 MB / 0.9729 GB, free: 14 MB / 458.7 MB Notification: Performance of SimCode: time 2.325e-06/3.518, allocations: 0 / 0.9729 GB, free: 14 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6725/4.19, allocations: 142.7 MB / 1.112 GB, free: 42.59 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002305/4.191, allocations: 176.5 kB / 1.112 GB, free: 42.37 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.317/12.51, allocations: 0 / 1.112 GB, free: 42.37 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat