Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.58/2.58, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.466e-05/4.47e-05, allocations: 7.984 kB / 348.5 MB, free: 10.72 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1464, allocations: 61.89 MB / 410.4 MB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5499/0.6963, allocations: 108.9 MB / 0.5071 GB, free: 11.05 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003175/0.6967, allocations: 75.95 kB / 0.5071 GB, free: 10.98 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.987/1.684, allocations: 125.9 MB / 0.6301 GB, free: 108 MB / 0.5105 GB Notification: Performance of FrontEnd: time 6.402e-06/1.684, allocations: 0 / 0.6301 GB, free: 108 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0008659/1.685, allocations: 128.8 kB / 0.6302 GB, free: 108 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: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.03872/1.724, allocations: 6.351 MB / 0.6364 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.789e-05/1.724, allocations: 9.812 kB / 0.6364 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006257/1.73, allocations: 1.108 MB / 0.6375 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06457/1.795, allocations: 7.074 MB / 0.6444 GB, free: 105 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02752/1.822, allocations: 6.964 MB / 0.6512 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000675/1.823, allocations: 477.9 kB / 0.6517 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003971/1.827, allocations: 0.6317 MB / 0.6523 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04662/1.873, allocations: 15.08 MB / 0.667 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000475/1.874, allocations: 86.28 kB / 0.6671 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00305/1.877, allocations: 308.9 kB / 0.6674 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003192/1.88, allocations: 1.424 MB / 0.6688 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03824/1.919, allocations: 11.85 MB / 0.6804 GB, free: 97.1 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1084/2.027, allocations: 69.9 MB / 0.7486 GB, free: 41.67 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02596/2.053, allocations: 6.075 MB / 0.7546 GB, free: 36.57 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00658/2.06, allocations: 3.366 MB / 0.7579 GB, free: 33.49 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02233/2.082, allocations: 8.317 MB / 0.766 GB, free: 26.46 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.835e-05/2.082, allocations: 60.28 kB / 0.766 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=236): time 7.154e-06/2.082, allocations: 0 / 0.766 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of matching and sorting (n=278): time 0.1371/2.219, allocations: 24.33 MB / 0.7898 GB, free: 2.984 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/2.22, allocations: 235.6 kB / 0.79 GB, free: 2.707 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01797/2.238, allocations: 5.909 MB / 0.7958 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008912/2.239, allocations: 65.7 kB / 0.7959 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.006774/2.245, allocations: 4.58 MB / 0.8003 GB, free: 8.16 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002345/2.248, allocations: 1.064 MB / 0.8014 GB, free: 7.105 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001729/2.25, allocations: 164 kB / 0.8015 GB, free: 6.945 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001422/2.251, allocations: 0.6694 MB / 0.8022 GB, free: 6.266 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01011/2.261, allocations: 3.179 MB / 0.8053 GB, free: 3.078 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.435/2.696, allocations: 8.197 MB / 0.8133 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01707/2.713, allocations: 5.06 MB / 0.8182 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005602/2.714, allocations: 51.84 kB / 0.8183 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.05653/2.771, allocations: 12.15 MB / 0.8301 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004196/2.771, allocations: 85.77 kB / 0.8302 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005954/2.772, allocations: 178.9 kB / 0.8304 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01074/2.782, allocations: 1.691 MB / 0.832 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01518/2.798, allocations: 1.982 MB / 0.834 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02844/2.826, allocations: 11.34 MB / 0.8451 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01153/2.838, allocations: 0.4884 MB / 0.8455 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002489/2.84, allocations: 0.5085 MB / 0.846 GB, free: 104.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 819 * Number of states: 0 () * Number of discrete variables: 67 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (1031): * Single equations (assignments): 1026 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004235/2.845, allocations: 0.7695 MB / 0.8468 GB, free: 104 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001627/2.846, allocations: 0.5712 MB / 0.8473 GB, free: 104 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01959/2.866, allocations: 6.07 MB / 0.8533 GB, free: 103.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.268e-05/2.866, allocations: 32.78 kB / 0.8533 GB, free: 103.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.836e-05/2.866, allocations: 6.812 kB / 0.8533 GB, free: 103.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-05/2.866, allocations: 14.7 kB / 0.8533 GB, free: 103.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04474/2.911, allocations: 13.9 MB / 0.8669 GB, free: 98.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-05/2.911, allocations: 10.89 kB / 0.8669 GB, free: 98.65 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005317/2.916, allocations: 0.4917 MB / 0.8674 GB, free: 98.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006779/2.923, allocations: 1.412 MB / 0.8688 GB, free: 98.34 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009817/2.924, allocations: 54.5 kB / 0.8688 GB, free: 98.31 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02866/2.953, allocations: 10.54 MB / 0.8791 GB, free: 92.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/2.953, allocations: 11.08 kB / 0.8791 GB, free: 92.78 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02595/2.979, allocations: 10.74 MB / 0.8896 GB, free: 87.89 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002538/2.982, allocations: 0.6403 MB / 0.8902 GB, free: 87.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002723/2.984, allocations: 47.55 kB / 0.8903 GB, free: 87.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006031/2.99, allocations: 186.4 kB / 0.8905 GB, free: 87.37 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001309/2.992, allocations: 174.1 kB / 0.8906 GB, free: 87.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005424/2.992, allocations: 72.88 kB / 0.8907 GB, free: 87.32 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01169/3.004, allocations: 4.214 MB / 0.8948 GB, free: 85.88 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.71e-07/3.004, allocations: 0 / 0.8948 GB, free: 85.88 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01243/3.017, allocations: 1.541 MB / 0.8963 GB, free: 85.71 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (220): * Single equations (assignments): 215 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02815/3.045, allocations: 12.13 MB / 0.9082 GB, free: 78.98 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01919/3.064, allocations: 7.671 MB / 0.9157 GB, free: 72.02 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.38e-05/3.064, allocations: 0 / 0.9157 GB, free: 72.02 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.009292/3.073, allocations: 3.055 MB / 0.9186 GB, free: 69.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008002/3.081, allocations: 0.6943 MB / 0.9193 GB, free: 68.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05068/3.132, allocations: 14.36 MB / 0.9333 GB, free: 56.17 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01201/3.144, allocations: 4.763 MB / 0.938 GB, free: 52.66 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01414/3.159, allocations: 2.792 MB / 0.9407 GB, free: 50.86 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008119/3.167, allocations: 2.986 MB / 0.9436 GB, free: 48.1 MB / 0.5261 GB Notification: Performance of SimCode: time 2.064e-06/3.167, allocations: 4 kB / 0.9436 GB, free: 48.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7455/3.912, allocations: 124.7 MB / 1.065 GB, free: 108 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001966/3.913, allocations: 162.6 kB / 1.066 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.329/12.24, allocations: 0 / 1.066 GB, free: 107.8 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat