Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.448/2.448, allocations: 235.2 MB / 242.3 MB, free: 15.79 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.64e-05/2.652e-05, allocations: 4 kB / 299.6 MB, free: 6.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.386/0.3861, allocations: 54.87 MB / 354.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2123/0.5985, allocations: 108.8 MB / 463.2 MB, free: 5.332 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002889/0.5988, allocations: 75.95 kB / 463.3 MB, free: 5.258 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9914/1.59, allocations: 151.2 MB / 0.6001 GB, free: 27.05 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.755e-06/1.59, allocations: 0 / 0.6001 GB, free: 27.05 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004109/1.591, allocations: 132 kB / 0.6002 GB, free: 26.93 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: 2561 * Number of variables: 2561 Notification: Performance of Generate backend data structure: time 0.02627/1.617, allocations: 6.548 MB / 0.6066 GB, free: 20.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/1.617, allocations: 8.031 kB / 0.6066 GB, free: 20.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05602/1.673, allocations: 6.671 MB / 0.6131 GB, free: 13.6 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03252/1.706, allocations: 8.364 MB / 0.6213 GB, free: 5.176 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004935/1.706, allocations: 228 kB / 0.6215 GB, free: 4.953 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003935/1.71, allocations: 427.8 kB / 0.6219 GB, free: 4.535 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03398/1.744, allocations: 11.66 MB / 0.6333 GB, free: 8.867 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05064/1.795, allocations: 15.88 MB / 0.6488 GB, free: 7.648 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005775/1.795, allocations: 87.17 kB / 0.6489 GB, free: 7.562 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003644/1.799, allocations: 40 kB / 0.6489 GB, free: 7.523 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00497/1.804, allocations: 1.723 MB / 0.6506 GB, free: 5.805 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8501/2.654, allocations: 70.76 MB / 0.7197 GB, free: 53.04 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009161/2.664, allocations: 4.668 MB / 0.7242 GB, free: 51.79 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005991/2.67, allocations: 2.676 MB / 0.7269 GB, free: 51.75 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03766/2.707, allocations: 13.71 MB / 0.7402 GB, free: 47.46 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.418e-05/2.707, allocations: 61.62 kB / 0.7403 GB, free: 47.43 MB / 474.8 MB Notification: Performance of pre-optimization done (n=286): time 8.396e-06/2.707, allocations: 3.938 kB / 0.7403 GB, free: 47.43 MB / 474.8 MB Notification: Performance of matching and sorting (n=346): time 0.08569/2.793, allocations: 17.99 MB / 0.7579 GB, free: 42.63 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.126e-05/2.793, allocations: 186.1 kB / 0.7581 GB, free: 42.44 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01134/2.805, allocations: 4.597 MB / 0.7625 GB, free: 40.81 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007147/2.805, allocations: 28.77 kB / 0.7626 GB, free: 40.78 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004409/2.81, allocations: 5.087 MB / 0.7675 GB, free: 36.95 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001875/2.812, allocations: 1.25 MB / 0.7688 GB, free: 36.03 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001249/2.813, allocations: 3.938 kB / 0.7688 GB, free: 36.02 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0008648/2.814, allocations: 0.7295 MB / 0.7695 GB, free: 35.54 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007869/2.822, allocations: 3.048 MB / 0.7725 GB, free: 34.43 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01174/2.834, allocations: 8.725 MB / 0.781 GB, free: 25.68 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01459/2.848, allocations: 5.295 MB / 0.7861 GB, free: 24.11 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002351/2.849, allocations: 57.09 kB / 0.7862 GB, free: 24.11 MB / 474.8 MB Notification: Performance of matching and sorting (n=1289) (initialization): time 0.04088/2.889, allocations: 11.71 MB / 0.7976 GB, free: 20.24 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001548/2.89, allocations: 92 kB / 0.7977 GB, free: 20.15 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000315/2.89, allocations: 200 kB / 0.7979 GB, free: 19.96 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008039/2.898, allocations: 1.309 MB / 0.7992 GB, free: 18.93 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01527/2.913, allocations: 2.262 MB / 0.8014 GB, free: 16.95 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01738/2.931, allocations: 6.842 MB / 0.8081 GB, free: 10.83 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01156/2.942, allocations: 384.2 kB / 0.8084 GB, free: 10.53 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00234/2.945, allocations: 0.5765 MB / 0.809 GB, free: 9.957 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 924 * Number of states: 0 () * Number of discrete variables: 43 (jointSSR.revolute.positiveBranch,Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],FixedFrame1.color_x[3],FixedFrame1.color_x[2],FixedFrame1.color_x[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[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 (1203): * Single equations (assignments): 1196 * 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%) 37} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003282/2.948, allocations: 0.5937 MB / 0.8096 GB, free: 9.359 MB / 474.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01979/2.968, allocations: 5.169 MB / 0.8146 GB, free: 4.883 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001744/2.97, allocations: 0.5013 MB / 0.8151 GB, free: 4.375 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02019/2.99, allocations: 5.032 MB / 0.82 GB, free: 208 kB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001026/2.99, allocations: 36 kB / 0.8201 GB, free: 172 kB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.138e-05/2.99, allocations: 7.75 kB / 0.8201 GB, free: 168 kB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-05/2.99, allocations: 17.45 kB / 0.8201 GB, free: 164 kB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05117/3.041, allocations: 12.35 MB / 0.8322 GB, free: 6.273 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.757e-05/3.041, allocations: 15.38 kB / 0.8322 GB, free: 6.262 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005183/3.047, allocations: 0.5144 MB / 0.8327 GB, free: 5.836 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00705/3.054, allocations: 0.8704 MB / 0.8335 GB, free: 5.203 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006975/3.055, allocations: 23.94 kB / 0.8335 GB, free: 5.184 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01589/3.07, allocations: 5.136 MB / 0.8386 GB, free: 0.543 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.227e-05/3.07, allocations: 15.94 kB / 0.8386 GB, free: 0.5273 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0283/3.099, allocations: 9.793 MB / 0.8481 GB, free: 7.18 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003961/3.103, allocations: 0.9041 MB / 0.849 GB, free: 6.32 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001888/3.105, allocations: 16 kB / 0.849 GB, free: 6.305 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005011/3.11, allocations: 127.1 kB / 0.8492 GB, free: 6.23 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001109/3.111, allocations: 213.3 kB / 0.8494 GB, free: 6.086 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005445/3.112, allocations: 98.81 kB / 0.8495 GB, free: 5.992 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.009296/3.121, allocations: 3.05 MB / 0.8524 GB, free: 3.367 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.142e-06/3.121, allocations: 0 / 0.8524 GB, free: 3.367 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01299/3.134, allocations: 1.422 MB / 0.8538 GB, free: 1.961 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * 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 (269): * Single equations (assignments): 262 * 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%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4118/3.546, allocations: 12.86 MB / 0.8664 GB, free: 112 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01872/3.565, allocations: 7.278 MB / 0.8735 GB, free: 111.8 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.721e-05/3.565, allocations: 3.688 kB / 0.8735 GB, free: 111.8 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.006419/3.571, allocations: 2.28 MB / 0.8757 GB, free: 111.7 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00544/3.577, allocations: 0.5066 MB / 0.8762 GB, free: 111.6 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05222/3.629, allocations: 14.66 MB / 0.8905 GB, free: 108.7 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01336/3.642, allocations: 5.314 MB / 0.8957 GB, free: 107.8 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01642/3.659, allocations: 3.118 MB / 0.8988 GB, free: 107.8 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008745/3.667, allocations: 3.351 MB / 0.902 GB, free: 107.8 MB / 0.4949 GB Notification: Performance of SimCode: time 1.513e-06/3.668, allocations: 2.281 kB / 0.902 GB, free: 107.8 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3041/3.972, allocations: 117.2 MB / 1.016 GB, free: 24.41 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.00031/3.972, allocations: 143.1 kB / 1.017 GB, free: 24.22 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.393/11.36, allocations: 3.938 kB / 1.017 GB, free: 24.21 MB / 0.4949 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat does not exist to compare? outputFormat=mat