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.919/1.919, allocations: 209.3 MB / 221.5 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.243e-05/4.249e-05, allocations: 7.984 kB / 273.2 MB, free: 148 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1091, allocations: 48.7 MB / 321.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4732/0.5824, allocations: 104.1 MB / 426 MB, free: 1.383 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/0.5827, allocations: 79.95 kB / 426 MB, free: 1.305 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.983/1.566, allocations: 171.9 MB / 0.5839 GB, free: 74.71 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.445e-06/1.566, allocations: 0 / 0.5839 GB, free: 74.71 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004614/1.566, allocations: 148 kB / 0.584 GB, free: 74.57 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.03257/1.599, allocations: 7.701 MB / 0.5916 GB, free: 66.79 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.523e-05/1.599, allocations: 8.031 kB / 0.5916 GB, free: 66.78 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008052/1.607, allocations: 1.63 MB / 0.5932 GB, free: 65.14 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05799/1.665, allocations: 6.951 MB / 0.5999 GB, free: 58.17 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03437/1.699, allocations: 9.838 MB / 0.6096 GB, free: 48.24 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008199/1.7, allocations: 0.5696 MB / 0.6101 GB, free: 47.67 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004912/1.705, allocations: 0.7613 MB / 0.6109 GB, free: 46.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06333/1.769, allocations: 20.45 MB / 0.6308 GB, free: 25.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004118/1.769, allocations: 91.2 kB / 0.6309 GB, free: 24.94 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00284/1.772, allocations: 363.8 kB / 0.6313 GB, free: 24.58 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004097/1.776, allocations: 1.958 MB / 0.6332 GB, free: 22.62 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05589/1.832, allocations: 17.63 MB / 0.6504 GB, free: 4.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7603/2.592, allocations: 82.17 MB / 0.7306 GB, free: 21.36 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02928/2.622, allocations: 7.278 MB / 0.7377 GB, free: 18.86 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00911/2.631, allocations: 3.921 MB / 0.7416 GB, free: 17.27 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04999/2.681, allocations: 18.22 MB / 0.7594 GB, free: 8.027 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.851e-05/2.681, allocations: 67.02 kB / 0.7594 GB, free: 7.965 MB / 426.8 MB Notification: Performance of pre-optimization done (n=332): time 8.145e-06/2.681, allocations: 2.25 kB / 0.7594 GB, free: 7.965 MB / 426.8 MB Notification: Performance of matching and sorting (n=413): time 0.1973/2.878, allocations: 26.08 MB / 0.7849 GB, free: 15.81 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001674/2.879, allocations: 194.8 kB / 0.7851 GB, free: 15.58 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01855/2.897, allocations: 5.684 MB / 0.7906 GB, free: 10.57 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001071/2.898, allocations: 89.53 kB / 0.7907 GB, free: 10.48 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006874/2.905, allocations: 5.431 MB / 0.796 GB, free: 5.609 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002914/2.908, allocations: 1.513 MB / 0.7975 GB, free: 4.27 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001534/2.91, allocations: 211 kB / 0.7977 GB, free: 4.066 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0009646/2.911, allocations: 0.7545 MB / 0.7984 GB, free: 3.438 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01341/2.924, allocations: 4.108 MB / 0.8025 GB, free: 0 / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01916/2.943, allocations: 9.788 MB / 0.812 GB, free: 4.156 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01818/2.962, allocations: 6.264 MB / 0.8181 GB, free: 15.04 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002565/2.962, allocations: 64 kB / 0.8182 GB, free: 14.97 MB / 474.8 MB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.05748/3.02, allocations: 15.05 MB / 0.8329 GB, free: 2.262 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000196/3.02, allocations: 100 kB / 0.833 GB, free: 2.164 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004735/3.02, allocations: 204 kB / 0.8332 GB, free: 1.965 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01495/3.035, allocations: 2.335 MB / 0.8355 GB, free: 280 kB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3779/3.413, allocations: 2.448 MB / 0.8379 GB, free: 108.4 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03629/3.45, allocations: 11.52 MB / 0.8491 GB, free: 107 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0142/3.464, allocations: 0.6898 MB / 0.8498 GB, free: 107 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002939/3.467, allocations: 0.5917 MB / 0.8504 GB, free: 107 MB / 474.8 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.004325/3.471, allocations: 0.8581 MB / 0.8512 GB, free: 106.9 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00177/3.473, allocations: 0.5947 MB / 0.8518 GB, free: 106.9 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03122/3.504, allocations: 8.093 MB / 0.8597 GB, free: 106.7 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001321/3.504, allocations: 61.36 kB / 0.8597 GB, free: 106.7 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.639e-05/3.505, allocations: 12.72 kB / 0.8597 GB, free: 106.7 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.852e-05/3.505, allocations: 21.98 kB / 0.8598 GB, free: 106.7 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06283/3.567, allocations: 18.72 MB / 0.878 GB, free: 103.3 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.092e-05/3.568, allocations: 12.53 kB / 0.8781 GB, free: 103.3 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005937/3.574, allocations: 0.6478 MB / 0.8787 GB, free: 103.3 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01259/3.586, allocations: 1.872 MB / 0.8805 GB, free: 103 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001028/3.587, allocations: 87.53 kB / 0.8806 GB, free: 102.9 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02692/3.614, allocations: 9.872 MB / 0.8902 GB, free: 98.39 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.659e-05/3.614, allocations: 16.31 kB / 0.8903 GB, free: 98.39 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03742/3.652, allocations: 14.17 MB / 0.9041 GB, free: 91.47 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004598/3.656, allocations: 1.159 MB / 0.9052 GB, free: 90.87 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002141/3.659, allocations: 81.53 kB / 0.9053 GB, free: 90.83 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006671/3.665, allocations: 262.2 kB / 0.9056 GB, free: 90.79 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001334/3.667, allocations: 251.8 kB / 0.9058 GB, free: 90.74 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004302/3.667, allocations: 115.3 kB / 0.9059 GB, free: 90.72 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01024/3.677, allocations: 3.936 MB / 0.9098 GB, free: 89.37 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.263e-06/3.677, allocations: 0 / 0.9098 GB, free: 89.37 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01394/3.691, allocations: 1.936 MB / 0.9116 GB, free: 89.15 MB / 474.8 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.03832/3.73, allocations: 17.12 MB / 0.9284 GB, free: 78.4 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02312/3.753, allocations: 9.298 MB / 0.9374 GB, free: 70.14 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 2.057e-05/3.753, allocations: 4 kB / 0.9374 GB, free: 70.13 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008619/3.762, allocations: 3.233 MB / 0.9406 GB, free: 67.16 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006521/3.768, allocations: 0.7227 MB / 0.9413 GB, free: 66.54 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05852/3.827, allocations: 17.17 MB / 0.9581 GB, free: 51.51 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0138/3.841, allocations: 5.747 MB / 0.9637 GB, free: 47.3 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.01608/3.857, allocations: 3.334 MB / 0.9669 GB, free: 45.31 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008675/3.865, allocations: 3.679 MB / 0.9705 GB, free: 41.88 MB / 474.8 MB Notification: Performance of SimCode: time 2.074e-06/3.866, allocations: 0 / 0.9705 GB, free: 41.88 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6705/4.536, allocations: 141.7 MB / 1.109 GB, free: 58.44 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002313/4.536, allocations: 171.2 kB / 1.109 GB, free: 58.21 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.221/12.76, allocations: 0.5469 kB / 1.109 GB, free: 58.21 MB / 474.8 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