Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.722/1.722, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.471e-05/4.486e-05, allocations: 0 / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.3608, allocations: 38.77 MB / 263.9 MB, free: 9.707 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1528/0.5137, allocations: 83.01 MB / 346.9 MB, free: 6.566 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002965/0.5141, allocations: 87.94 kB / 347 MB, free: 6.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7157/1.23, allocations: 122.4 MB / 469.3 MB, free: 3.859 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.954e-06/1.23, allocations: 0 / 469.3 MB, free: 3.859 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004538/1.23, allocations: 120 kB / 469.5 MB, free: 3.742 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2049 * Number of variables: 2049 Notification: Performance of Generate backend data structure: time 0.02905/1.259, allocations: 6.504 MB / 476 MB, free: 13.16 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/1.259, allocations: 8.031 kB / 476 MB, free: 13.15 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005957/1.265, allocations: 1.201 MB / 477.2 MB, free: 11.94 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.073/1.339, allocations: 9.435 MB / 486.6 MB, free: 2.484 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03329/1.372, allocations: 8.552 MB / 495.2 MB, free: 9.852 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007846/1.373, allocations: 435.4 kB / 495.6 MB, free: 9.426 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003594/1.376, allocations: 0.5777 MB / 496.2 MB, free: 8.848 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3075/1.684, allocations: 14.61 MB / 0.4988 GB, free: 48.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005925/1.685, allocations: 85.22 kB / 0.4989 GB, free: 48.49 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003151/1.688, allocations: 275.1 kB / 0.4991 GB, free: 48.49 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003451/1.691, allocations: 1.433 MB / 0.5005 GB, free: 48.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0402/1.731, allocations: 12.6 MB / 0.5129 GB, free: 48.45 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.108/1.839, allocations: 64.57 MB / 0.5759 GB, free: 9.043 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0449/1.884, allocations: 7.775 MB / 0.5835 GB, free: 6.473 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01257/1.897, allocations: 5.152 MB / 0.5885 GB, free: 4.375 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03849/1.936, allocations: 13.02 MB / 0.6013 GB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.966e-05/1.936, allocations: 68.75 kB / 0.6013 GB, free: 10.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=340): time 8.596e-06/1.936, allocations: 3.609 kB / 0.6013 GB, free: 10.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=604): time 0.7253/2.661, allocations: 80.2 MB / 0.6796 GB, free: 76.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/2.661, allocations: 268.7 kB / 0.6799 GB, free: 76.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0118/2.673, allocations: 4.709 MB / 0.6845 GB, free: 75.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002125/2.675, allocations: 125.7 kB / 0.6846 GB, free: 75.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003949/2.679, allocations: 4.002 MB / 0.6885 GB, free: 72.56 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004027/2.683, allocations: 2.111 MB / 0.6906 GB, free: 70.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002406/2.686, allocations: 184.2 kB / 0.6908 GB, free: 70.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0007445/2.687, allocations: 0.7072 MB / 0.6915 GB, free: 70.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02008/2.707, allocations: 8.558 MB / 0.6998 GB, free: 67.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0313/2.738, allocations: 12.59 MB / 0.7121 GB, free: 57.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03245/2.771, allocations: 10.5 MB / 0.7224 GB, free: 48.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001847/2.771, allocations: 40 kB / 0.7224 GB, free: 48.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.2212/2.992, allocations: 39.7 MB / 0.7612 GB, free: 13.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/2.992, allocations: 64 kB / 0.7612 GB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002046/2.992, allocations: 140.9 kB / 0.7614 GB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3965/3.389, allocations: 21.5 MB / 0.7824 GB, free: 67.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009139/3.398, allocations: 1.431 MB / 0.7838 GB, free: 67.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6749/4.073, allocations: 144.5 MB / 0.9248 GB, free: 73.17 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02369/4.097, allocations: 0.7212 MB / 0.9255 GB, free: 73.17 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003397/4.1, allocations: 0.5305 MB / 0.9261 GB, free: 73.17 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 51 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (772): * Single equations (assignments): 765 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.005773/4.106, allocations: 0.7247 MB / 0.9268 GB, free: 73.06 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003154/4.109, allocations: 0.5908 MB / 0.9274 GB, free: 73.06 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1456/4.255, allocations: 36.12 MB / 0.9626 GB, free: 70.82 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001106/4.255, allocations: 61.31 kB / 0.9627 GB, free: 70.82 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001399/4.255, allocations: 68.56 kB / 0.9627 GB, free: 70.82 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001287/4.255, allocations: 26.95 kB / 0.9628 GB, free: 70.82 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1936/4.449, allocations: 57.04 MB / 1.018 GB, free: 34.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001078/4.449, allocations: 0 / 1.018 GB, free: 34.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002745/4.452, allocations: 270.7 kB / 1.019 GB, free: 34.72 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.11/4.562, allocations: 20.72 MB / 1.039 GB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002219/4.564, allocations: 96 kB / 1.039 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6302/5.195, allocations: 132.2 MB / 1.168 GB, free: 22.05 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/5.195, allocations: 4 kB / 1.168 GB, free: 22.05 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4638/5.658, allocations: 48.58 MB / 1.216 GB, free: 71.76 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00921/5.668, allocations: 2.404 MB / 1.218 GB, free: 71.67 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00372/5.671, allocations: 94.88 kB / 1.218 GB, free: 71.67 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01371/5.685, allocations: 0.4931 MB / 1.219 GB, free: 71.67 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005208/5.69, allocations: 0.5042 MB / 1.219 GB, free: 71.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001978/5.692, allocations: 142.6 kB / 1.219 GB, free: 71.66 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.009194/5.702, allocations: 3.361 MB / 1.222 GB, free: 71.46 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.32e-07/5.702, allocations: 0 / 1.222 GB, free: 71.46 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.02004/5.722, allocations: 3.437 MB / 1.226 GB, free: 71.45 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 141 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.1719/5.894, allocations: 49.19 MB / 1.274 GB, free: 55.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.06337/5.957, allocations: 23.76 MB / 1.297 GB, free: 34.88 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/5.957, allocations: 0 / 1.297 GB, free: 34.88 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04043/5.998, allocations: 13.37 MB / 1.31 GB, free: 22.05 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007817/6.006, allocations: 0.7066 MB / 1.311 GB, free: 21.38 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3591/6.365, allocations: 23.25 MB / 1.334 GB, free: 68.76 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0126/6.377, allocations: 5.317 MB / 1.339 GB, free: 67.89 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.01016/6.388, allocations: 2.082 MB / 1.341 GB, free: 67.82 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006448/6.394, allocations: 3.043 MB / 1.344 GB, free: 67.81 MB / 394.7 MB Notification: Performance of SimCode: time 1.893e-06/6.394, allocations: 0 / 1.344 GB, free: 67.81 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.304/7.698, allocations: 289.4 MB / 1.626 GB, free: 70.72 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002078/7.698, allocations: 192.7 kB / 1.627 GB, free: 70.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/18.26, allocations: 0 / 1.627 GB, free: 70.5 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat