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.953/1.953, allocations: 209.4 MB / 216.5 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.138e-05/2.135e-05, allocations: 0 / 267.6 MB, free: 4.945 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.123, allocations: 48.7 MB / 316.3 MB, free: 4.148 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4493/0.5723, allocations: 103.6 MB / 419.9 MB, free: 5.512 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/0.5727, allocations: 77.27 kB / 420 MB, free: 5.473 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9686/1.541, allocations: 168.6 MB / 0.5748 GB, free: 56.75 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.541, allocations: 0 / 0.5748 GB, free: 56.75 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004528/1.542, allocations: 148 kB / 0.575 GB, free: 56.6 MB / 410.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.03227/1.574, allocations: 7.7 MB / 0.5825 GB, free: 48.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/1.574, allocations: 8.031 kB / 0.5825 GB, free: 48.83 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05282/1.627, allocations: 6.951 MB / 0.5893 GB, free: 41.86 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03339/1.66, allocations: 9.829 MB / 0.5989 GB, free: 32.03 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005609/1.661, allocations: 248 kB / 0.5991 GB, free: 31.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00478/1.666, allocations: 455.8 kB / 0.5995 GB, free: 31.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03158/1.697, allocations: 13.15 MB / 0.6124 GB, free: 18.19 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0475/1.745, allocations: 17.62 MB / 0.6296 GB, free: 15.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005392/1.746, allocations: 91.12 kB / 0.6297 GB, free: 15.07 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004229/1.75, allocations: 44 kB / 0.6297 GB, free: 15.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005416/1.755, allocations: 1.964 MB / 0.6316 GB, free: 13.06 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4523/2.208, allocations: 78.9 MB / 0.7087 GB, free: 31.94 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01081/2.219, allocations: 5.985 MB / 0.7145 GB, free: 30.71 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008178/2.227, allocations: 3.868 MB / 0.7183 GB, free: 30.43 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04818/2.275, allocations: 17.96 MB / 0.7358 GB, free: 21.37 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.389e-05/2.275, allocations: 74.34 kB / 0.7359 GB, free: 21.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=334): time 7.745e-06/2.275, allocations: 0 / 0.7359 GB, free: 21.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=426): time 0.1105/2.386, allocations: 26.44 MB / 0.7617 GB, free: 12.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.542e-05/2.386, allocations: 206 kB / 0.7619 GB, free: 11.86 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01202/2.398, allocations: 5.05 MB / 0.7669 GB, free: 10 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001035/2.399, allocations: 29.7 kB / 0.7669 GB, free: 9.969 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004816/2.404, allocations: 5.524 MB / 0.7723 GB, free: 5.051 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002393/2.406, allocations: 1.517 MB / 0.7738 GB, free: 3.684 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001902/2.408, allocations: 0 / 0.7738 GB, free: 3.684 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001149/2.409, allocations: 0.7721 MB / 0.7745 GB, free: 3.039 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01377/2.423, allocations: 4.182 MB / 0.7786 GB, free: 0 / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01827/2.442, allocations: 10.02 MB / 0.7884 GB, free: 3.82 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01927/2.461, allocations: 6.469 MB / 0.7947 GB, free: 14.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002664/2.461, allocations: 64 kB / 0.7948 GB, free: 14.74 MB / 458.7 MB Notification: Performance of matching and sorting (n=1431) (initialization): time 0.05531/2.516, allocations: 14.83 MB / 0.8092 GB, free: 2.238 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002162/2.517, allocations: 96 kB / 0.8093 GB, free: 2.145 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004621/2.517, allocations: 219.7 kB / 0.8095 GB, free: 1.934 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01429/2.532, allocations: 2.3 MB / 0.8118 GB, free: 276 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3506/2.882, allocations: 2.545 MB / 0.8143 GB, free: 95.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03085/2.913, allocations: 11.12 MB / 0.8251 GB, free: 94.49 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01366/2.927, allocations: 0.4904 MB / 0.8256 GB, free: 94.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003167/2.93, allocations: 0.6158 MB / 0.8262 GB, free: 94.49 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 979 * 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 (1330): * Single equations (assignments): 1323 * 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.004112/2.934, allocations: 0.6365 MB / 0.8268 GB, free: 94.38 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02829/2.963, allocations: 7.878 MB / 0.8345 GB, free: 94.23 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002037/2.965, allocations: 0.569 MB / 0.8351 GB, free: 94.23 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0279/2.993, allocations: 7.939 MB / 0.8428 GB, free: 94 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001373/2.993, allocations: 63.19 kB / 0.8429 GB, free: 94 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.42e-05/2.993, allocations: 11.28 kB / 0.8429 GB, free: 94 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001008/2.993, allocations: 20.62 kB / 0.8429 GB, free: 94 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05469/3.048, allocations: 17.15 MB / 0.8597 GB, free: 90.71 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.309e-05/3.048, allocations: 12.09 kB / 0.8597 GB, free: 90.71 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005898/3.054, allocations: 0.6499 MB / 0.8603 GB, free: 90.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0116/3.065, allocations: 1.809 MB / 0.8621 GB, free: 90.38 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007533/3.066, allocations: 29.8 kB / 0.8621 GB, free: 90.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0232/3.089, allocations: 9.394 MB / 0.8713 GB, free: 85.92 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.748e-05/3.089, allocations: 22.64 kB / 0.8713 GB, free: 85.91 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03225/3.122, allocations: 14.01 MB / 0.885 GB, free: 78.66 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003946/3.126, allocations: 1.137 MB / 0.8861 GB, free: 78.02 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00152/3.127, allocations: 18.47 kB / 0.8861 GB, free: 78.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005005/3.132, allocations: 194.8 kB / 0.8863 GB, free: 78.02 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009043/3.133, allocations: 259.2 kB / 0.8866 GB, free: 77.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004018/3.133, allocations: 119.7 kB / 0.8867 GB, free: 77.95 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007078/3.141, allocations: 3.37 MB / 0.89 GB, free: 76.73 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.71e-07/3.141, allocations: 0 / 0.89 GB, free: 76.73 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01343/3.154, allocations: 1.688 MB / 0.8916 GB, free: 76.73 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 (337): * Single equations (assignments): 330 * 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.03393/3.188, allocations: 16.98 MB / 0.9082 GB, free: 64.54 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02063/3.209, allocations: 9.373 MB / 0.9174 GB, free: 56.23 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.559e-05/3.209, allocations: 4 kB / 0.9174 GB, free: 56.22 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006993/3.216, allocations: 3.254 MB / 0.9205 GB, free: 53.23 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005614/3.221, allocations: 0.5768 MB / 0.9211 GB, free: 52.75 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05179/3.273, allocations: 16.98 MB / 0.9377 GB, free: 37.93 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01215/3.286, allocations: 5.763 MB / 0.9433 GB, free: 33.71 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0168/3.302, allocations: 3.478 MB / 0.9467 GB, free: 31.61 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009134/3.312, allocations: 3.668 MB / 0.9503 GB, free: 28.19 MB / 458.7 MB Notification: Performance of SimCode: time 1.473e-06/3.312, allocations: 4 kB / 0.9503 GB, free: 28.19 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6226/3.934, allocations: 135.5 MB / 1.083 GB, free: 44.53 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002123/3.935, allocations: 134.5 kB / 1.083 GB, free: 44.34 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.582/11.52, allocations: 3.938 kB / 1.083 GB, free: 44.34 MB / 458.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