Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.817/1.817, allocations: 171.2 MB / 183.8 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.809e-05/3.846e-05, allocations: 4 kB / 225.1 MB, free: 2.609 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3204, allocations: 38.77 MB / 263.9 MB, free: 9.75 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1729/0.4934, allocations: 88.41 MB / 352.3 MB, free: 1.207 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000389/0.4938, allocations: 79.95 kB / 352.3 MB, free: 1.129 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7259/1.22, allocations: 126.2 MB / 478.5 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.374e-06/1.22, allocations: 0 / 478.5 MB, free: 10.71 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004616/1.22, allocations: 119.9 kB / 478.7 MB, free: 10.59 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.02842/1.249, allocations: 6.309 MB / 485 MB, free: 4.211 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.919e-05/1.249, allocations: 12.03 kB / 485 MB, free: 4.199 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006536/1.255, allocations: 1.312 MB / 486.3 MB, free: 2.875 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06333/1.319, allocations: 8.31 MB / 494.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02937/1.348, allocations: 7.284 MB / 0.4901 GB, free: 3.199 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007155/1.349, allocations: 447.8 kB / 0.4905 GB, free: 2.762 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003809/1.353, allocations: 0.5856 MB / 0.4911 GB, free: 2.176 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3034/1.656, allocations: 15.52 MB / 0.5063 GB, free: 50.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004173/1.657, allocations: 64.94 kB / 0.5063 GB, free: 50.13 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003148/1.66, allocations: 289.2 kB / 0.5066 GB, free: 50.13 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003412/1.663, allocations: 1.611 MB / 0.5082 GB, free: 50.12 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03938/1.703, allocations: 13.53 MB / 0.5214 GB, free: 50.09 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1057/1.809, allocations: 63.98 MB / 0.5839 GB, free: 8.332 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03364/1.842, allocations: 6.349 MB / 0.5901 GB, free: 5.551 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009807/1.852, allocations: 3.466 MB / 0.5935 GB, free: 2.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04104/1.893, allocations: 14.33 MB / 0.6075 GB, free: 5.801 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.032e-05/1.893, allocations: 67.62 kB / 0.6075 GB, free: 5.73 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 7.083e-06/1.893, allocations: 0 / 0.6075 GB, free: 5.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=336): time 0.4598/2.353, allocations: 29.84 MB / 0.6367 GB, free: 80.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001363/2.353, allocations: 210.5 kB / 0.6369 GB, free: 80.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01204/2.365, allocations: 4.769 MB / 0.6415 GB, free: 80.24 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009732/2.366, allocations: 78.62 kB / 0.6416 GB, free: 80.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003894/2.37, allocations: 4.289 MB / 0.6458 GB, free: 78.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002096/2.373, allocations: 1.242 MB / 0.647 GB, free: 77.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001205/2.374, allocations: 176.9 kB / 0.6472 GB, free: 77.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005629/2.374, allocations: 0.6803 MB / 0.6478 GB, free: 77.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01008/2.384, allocations: 4.457 MB / 0.6522 GB, free: 77.56 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01357/2.398, allocations: 9.354 MB / 0.6613 GB, free: 71.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01364/2.412, allocations: 6.391 MB / 0.6676 GB, free: 71.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002078/2.412, allocations: 50.34 kB / 0.6676 GB, free: 71.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.06772/2.48, allocations: 17.83 MB / 0.685 GB, free: 68.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001586/2.48, allocations: 84.05 kB / 0.6851 GB, free: 68.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003129/2.48, allocations: 174.3 kB / 0.6853 GB, free: 68.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03917/2.519, allocations: 5.63 MB / 0.6908 GB, free: 67.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01378/2.533, allocations: 2.045 MB / 0.6928 GB, free: 67.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05658/2.59, allocations: 23.62 MB / 0.7158 GB, free: 55.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01587/2.606, allocations: 0.5371 MB / 0.7163 GB, free: 55.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002615/2.609, allocations: 0.502 MB / 0.7168 GB, free: 54.78 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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 prepare postOptimizeDAE: time 0.002767/2.611, allocations: 0.7497 MB / 0.7176 GB, free: 54.03 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001869/2.613, allocations: 0.4936 MB / 0.7181 GB, free: 53.53 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06072/2.674, allocations: 12.27 MB / 0.73 GB, free: 44.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001482/2.674, allocations: 59.44 kB / 0.7301 GB, free: 44.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.504e-05/2.674, allocations: 8 kB / 0.7301 GB, free: 44.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-05/2.674, allocations: 15.89 kB / 0.7301 GB, free: 44.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07885/2.753, allocations: 23.84 MB / 0.7534 GB, free: 23.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.298e-05/2.753, allocations: 8 kB / 0.7534 GB, free: 23.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005671/2.759, allocations: 0.5655 MB / 0.754 GB, free: 22.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03388/2.793, allocations: 4.642 MB / 0.7585 GB, free: 18.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008172/2.794, allocations: 57.02 kB / 0.7585 GB, free: 18.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3139/3.108, allocations: 18.92 MB / 0.777 GB, free: 71.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/3.108, allocations: 6.781 kB / 0.777 GB, free: 71.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05686/3.165, allocations: 17.25 MB / 0.7939 GB, free: 69.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00443/3.169, allocations: 1.222 MB / 0.7951 GB, free: 69.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001858/3.171, allocations: 54.77 kB / 0.7951 GB, free: 69.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006088/3.177, allocations: 251.3 kB / 0.7954 GB, free: 69.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001306/3.178, allocations: 188.8 kB / 0.7955 GB, free: 69.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004414/3.179, allocations: 85.08 kB / 0.7956 GB, free: 69.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.008326/3.187, allocations: 3.299 MB / 0.7988 GB, free: 69.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.92e-07/3.187, allocations: 0 / 0.7988 GB, free: 69.53 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01121/3.198, allocations: 1.704 MB / 0.8005 GB, free: 69.53 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05973/3.258, allocations: 18.97 MB / 0.819 GB, free: 62.63 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.02314/3.281, allocations: 10.04 MB / 0.8288 GB, free: 59.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/3.282, allocations: 2.969 kB / 0.8288 GB, free: 59.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009293/3.291, allocations: 3.867 MB / 0.8326 GB, free: 57.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006349/3.297, allocations: 0.5857 MB / 0.8332 GB, free: 57.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05157/3.349, allocations: 16.21 MB / 0.849 GB, free: 45.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01002/3.359, allocations: 4.755 MB / 0.8537 GB, free: 42.31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007584/3.367, allocations: 2.951 MB / 0.8565 GB, free: 39.57 MB / 378.7 MB Notification: Performance of SimCode: time 2.094e-06/3.367, allocations: 0 / 0.8565 GB, free: 39.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.613/8.979, allocations: 178.5 MB / 1.031 GB, free: 7.895 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat