Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.526/2.526, allocations: 235.1 MB / 242.3 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.355e-05/2.33e-05, allocations: 0 / 299.6 MB, free: 212 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3667/0.3667, allocations: 54.86 MB / 354.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2108/0.5776, allocations: 108.1 MB / 462.5 MB, free: 2.973 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/0.5779, allocations: 79.95 kB / 462.6 MB, free: 2.895 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9497/1.528, allocations: 139.4 MB / 0.5879 GB, free: 7.93 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.528, allocations: 0 / 0.5879 GB, free: 7.93 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005528/1.528, allocations: 131.9 kB / 0.588 GB, free: 7.801 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: 2163 * Number of variables: 2163 Notification: Performance of Generate backend data structure: time 0.03179/1.56, allocations: 6.636 MB / 0.5945 GB, free: 1.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.59e-05/1.56, allocations: 16.03 kB / 0.5945 GB, free: 1.074 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0817/1.642, allocations: 9.332 MB / 0.6036 GB, free: 7.719 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0462/1.688, allocations: 9.107 MB / 0.6125 GB, free: 14.53 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007916/1.689, allocations: 204 kB / 0.6127 GB, free: 14.33 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004951/1.694, allocations: 379.8 kB / 0.6131 GB, free: 13.96 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03737/1.731, allocations: 9.342 MB / 0.6222 GB, free: 4.605 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4001/2.132, allocations: 13.26 MB / 0.6351 GB, free: 70.55 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004202/2.132, allocations: 81.31 kB / 0.6352 GB, free: 70.55 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002311/2.134, allocations: 36.72 kB / 0.6353 GB, free: 70.55 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003378/2.138, allocations: 1.381 MB / 0.6366 GB, free: 70.54 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1077/2.246, allocations: 62.22 MB / 0.6974 GB, free: 36.92 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008953/2.255, allocations: 4.36 MB / 0.7016 GB, free: 35.12 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006237/2.261, allocations: 3.032 MB / 0.7046 GB, free: 33.79 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003763/2.265, allocations: 2.387 MB / 0.7069 GB, free: 31.79 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.651e-05/2.265, allocations: 57.62 kB / 0.707 GB, free: 31.73 MB / 458.7 MB Notification: Performance of pre-optimization done (n=251): time 7.173e-06/2.265, allocations: 0 / 0.707 GB, free: 31.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=343): time 0.1399/2.405, allocations: 27.57 MB / 0.7339 GB, free: 22.86 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/2.405, allocations: 238 kB / 0.7341 GB, free: 22.6 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01031/2.415, allocations: 4.372 MB / 0.7384 GB, free: 21.04 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009339/2.416, allocations: 29.52 kB / 0.7384 GB, free: 21.01 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004179/2.42, allocations: 4.503 MB / 0.7428 GB, free: 17.68 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002044/2.423, allocations: 1.21 MB / 0.744 GB, free: 16.77 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001134/2.424, allocations: 1.781 kB / 0.744 GB, free: 16.77 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005926/2.424, allocations: 0.6649 MB / 0.7446 GB, free: 16.31 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008555/2.433, allocations: 3.43 MB / 0.748 GB, free: 14.96 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01184/2.445, allocations: 8.068 MB / 0.7559 GB, free: 6.949 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01176/2.457, allocations: 5.212 MB / 0.761 GB, free: 2.664 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001445/2.457, allocations: 48 kB / 0.761 GB, free: 2.617 MB / 458.7 MB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.05525/2.512, allocations: 13.66 MB / 0.7743 GB, free: 7.23 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000166/2.512, allocations: 76 kB / 0.7744 GB, free: 7.156 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003229/2.513, allocations: 164 kB / 0.7746 GB, free: 6.996 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02516/2.538, allocations: 3.5 MB / 0.778 GB, free: 4.594 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01401/2.552, allocations: 1.856 MB / 0.7798 GB, free: 2.969 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05103/2.603, allocations: 16.82 MB / 0.7962 GB, free: 4.508 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01094/2.614, allocations: 335.5 kB / 0.7966 GB, free: 4.254 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002323/2.616, allocations: 491.3 kB / 0.797 GB, free: 3.781 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 748 * Number of states: 0 () * Number of discrete variables: 43 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.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],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (1001): * Single equations (assignments): 997 * 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 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002653/2.619, allocations: 0.5192 MB / 0.7975 GB, free: 3.258 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0518/2.671, allocations: 9.184 MB / 0.8065 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002163/2.673, allocations: 0.5014 MB / 0.807 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04004/2.713, allocations: 8.53 MB / 0.8153 GB, free: 4.242 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00011/2.713, allocations: 39.95 kB / 0.8154 GB, free: 4.203 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.222e-05/2.713, allocations: 12 kB / 0.8154 GB, free: 4.191 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.442e-05/2.713, allocations: 15.94 kB / 0.8154 GB, free: 4.176 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4818/3.195, allocations: 17.29 MB / 0.8323 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.66e-05/3.195, allocations: 6.5 kB / 0.8323 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005225/3.201, allocations: 0.492 MB / 0.8328 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0225/3.223, allocations: 3.046 MB / 0.8357 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008878/3.224, allocations: 13.94 kB / 0.8357 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03887/3.263, allocations: 14.49 MB / 0.8499 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.71e-05/3.263, allocations: 15.42 kB / 0.8499 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04461/3.308, allocations: 13.81 MB / 0.8634 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004485/3.312, allocations: 1.065 MB / 0.8644 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002704/3.315, allocations: 7.5 kB / 0.8644 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006328/3.321, allocations: 158.4 kB / 0.8646 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001531/3.323, allocations: 222.2 kB / 0.8648 GB, free: 107.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004868/3.323, allocations: 89.5 kB / 0.8649 GB, free: 107.4 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0081/3.331, allocations: 2.979 MB / 0.8678 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.122e-06/3.332, allocations: 0 / 0.8678 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01191/3.343, allocations: 1.463 MB / 0.8692 GB, free: 106.3 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (259): * Single equations (assignments): 255 * 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 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04579/3.389, allocations: 15.73 MB / 0.8846 GB, free: 98.66 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01983/3.409, allocations: 8.446 MB / 0.8928 GB, free: 95.66 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.208e-05/3.409, allocations: 6.484 kB / 0.8928 GB, free: 95.66 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007873/3.417, allocations: 3.36 MB / 0.8961 GB, free: 94.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005401/3.423, allocations: 0.5755 MB / 0.8967 GB, free: 93.97 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04622/3.469, allocations: 14.72 MB / 0.9111 GB, free: 85.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009998/3.479, allocations: 4.957 MB / 0.9159 GB, free: 82.05 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01387/3.493, allocations: 2.7 MB / 0.9185 GB, free: 80.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007678/3.501, allocations: 3.044 MB / 0.9215 GB, free: 77.68 MB / 0.4948 GB Notification: Performance of SimCode: time 1.593e-06/3.501, allocations: 0 / 0.9215 GB, free: 77.68 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7108/4.211, allocations: 125.1 MB / 1.044 GB, free: 91.37 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003266/4.212, allocations: 145 kB / 1.044 GB, free: 91.18 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.073/11.29, allocations: 0 / 1.044 GB, free: 91.18 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat