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.743/1.743, allocations: 171.3 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.373e-05/2.366e-05, allocations: 3.984 kB / 219.6 MB, free: 7.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2579, allocations: 38.77 MB / 258.3 MB, free: 12.07 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1537/0.4116, allocations: 87.74 MB / 346.1 MB, free: 6.062 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003105/0.412, allocations: 83.95 kB / 346.1 MB, free: 5.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7628/1.175, allocations: 123.7 MB / 469.9 MB, free: 5.602 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.495e-06/1.175, allocations: 0 / 469.9 MB, free: 5.602 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003689/1.175, allocations: 112 kB / 470 MB, free: 5.492 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: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.02469/1.2, allocations: 6.317 MB / 476.3 MB, free: 15.1 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.961e-05/1.2, allocations: 8.031 kB / 476.3 MB, free: 15.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06314/1.263, allocations: 8.314 MB / 484.6 MB, free: 6.754 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02941/1.293, allocations: 7.261 MB / 491.9 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004692/1.293, allocations: 192 kB / 492.1 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003771/1.297, allocations: 351.8 kB / 492.4 MB, free: 14.9 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02808/1.325, allocations: 10.11 MB / 0.4908 GB, free: 4.781 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3172/1.642, allocations: 14.06 MB / 0.5045 GB, free: 54.97 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000404/1.643, allocations: 69.56 kB / 0.5046 GB, free: 54.97 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00319/1.646, allocations: 36.25 kB / 0.5046 GB, free: 54.97 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003658/1.65, allocations: 1.614 MB / 0.5062 GB, free: 54.95 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09918/1.749, allocations: 61.38 MB / 0.5661 GB, free: 20.06 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009635/1.759, allocations: 5.559 MB / 0.5715 GB, free: 17.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00649/1.765, allocations: 3.368 MB / 0.5748 GB, free: 15.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03417/1.799, allocations: 14.03 MB / 0.5885 GB, free: 8.586 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.129e-05/1.8, allocations: 60.34 kB / 0.5886 GB, free: 8.527 MB / 346.7 MB Notification: Performance of pre-optimization done (n=286): time 8.346e-06/1.8, allocations: 7.406 kB / 0.5886 GB, free: 8.527 MB / 346.7 MB Notification: Performance of matching and sorting (n=336): time 0.1368/1.936, allocations: 31.03 MB / 0.6189 GB, free: 6.605 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/1.937, allocations: 213.9 kB / 0.6191 GB, free: 6.352 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01203/1.949, allocations: 4.282 MB / 0.6233 GB, free: 2.613 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000873/1.949, allocations: 25.7 kB / 0.6233 GB, free: 2.582 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2769/2.226, allocations: 4.428 MB / 0.6276 GB, free: 73.81 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002182/2.229, allocations: 1.21 MB / 0.6288 GB, free: 73.23 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001278/2.23, allocations: 4.312 kB / 0.6288 GB, free: 73.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0007683/2.231, allocations: 0.699 MB / 0.6295 GB, free: 72.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01058/2.241, allocations: 4.369 MB / 0.6338 GB, free: 72.88 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01321/2.255, allocations: 9.548 MB / 0.6431 GB, free: 66.19 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01289/2.268, allocations: 6.356 MB / 0.6493 GB, free: 66.13 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001907/2.268, allocations: 54.25 kB / 0.6494 GB, free: 66.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.06567/2.333, allocations: 17.52 MB / 0.6665 GB, free: 65.28 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000173/2.334, allocations: 84.34 kB / 0.6665 GB, free: 65.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002521/2.334, allocations: 182.5 kB / 0.6667 GB, free: 65.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03825/2.372, allocations: 5.634 MB / 0.6722 GB, free: 64.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01347/2.386, allocations: 2.135 MB / 0.6743 GB, free: 64.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04303/2.429, allocations: 21.6 MB / 0.6954 GB, free: 53.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01087/2.44, allocations: 400.7 kB / 0.6958 GB, free: 53.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002055/2.442, allocations: 0.5266 MB / 0.6963 GB, free: 53.84 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 840 * 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 (1105): * Single equations (assignments): 1097 * 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.00241/2.444, allocations: 0.5611 MB / 0.6968 GB, free: 53.48 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04991/2.494, allocations: 11.86 MB / 0.7084 GB, free: 45.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001716/2.496, allocations: 481.7 kB / 0.7089 GB, free: 44.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05017/2.546, allocations: 12.03 MB / 0.7206 GB, free: 35.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001443/2.546, allocations: 60.3 kB / 0.7207 GB, free: 35.76 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.08e-05/2.546, allocations: 8 kB / 0.7207 GB, free: 35.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-05/2.546, allocations: 14.67 kB / 0.7207 GB, free: 35.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07574/2.622, allocations: 22.47 MB / 0.7426 GB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.807e-05/2.622, allocations: 8 kB / 0.7427 GB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005495/2.628, allocations: 0.5655 MB / 0.7432 GB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03361/2.661, allocations: 4.632 MB / 0.7477 GB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008323/2.662, allocations: 15.06 kB / 0.7477 GB, free: 8.621 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3224/2.985, allocations: 17.33 MB / 0.7647 GB, free: 77.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.146e-05/2.985, allocations: 10.25 kB / 0.7647 GB, free: 77.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05431/3.039, allocations: 16.97 MB / 0.7813 GB, free: 75.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004283/3.043, allocations: 1.184 MB / 0.7824 GB, free: 75.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001682/3.045, allocations: 11.28 kB / 0.7824 GB, free: 75.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006203/3.051, allocations: 201.7 kB / 0.7826 GB, free: 75.81 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001591/3.053, allocations: 196.8 kB / 0.7828 GB, free: 75.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006252/3.054, allocations: 84.98 kB / 0.7829 GB, free: 75.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.008953/3.063, allocations: 2.842 MB / 0.7857 GB, free: 75.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.152e-06/3.063, allocations: 3.094 kB / 0.7857 GB, free: 75.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0162/3.079, allocations: 1.488 MB / 0.7871 GB, free: 75.62 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.07857/3.158, allocations: 18.68 MB / 0.8054 GB, free: 69.22 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.02842/3.186, allocations: 9.994 MB / 0.8151 GB, free: 65.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-05/3.186, allocations: 2.219 kB / 0.8151 GB, free: 65.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009804/3.196, allocations: 3.813 MB / 0.8188 GB, free: 64.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004664/3.201, allocations: 466.6 kB / 0.8193 GB, free: 64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04809/3.249, allocations: 15.86 MB / 0.8348 GB, free: 54.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009716/3.259, allocations: 4.757 MB / 0.8394 GB, free: 50.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007471/3.266, allocations: 2.955 MB / 0.8423 GB, free: 47.82 MB / 378.7 MB Notification: Performance of SimCode: time 1.623e-06/3.266, allocations: 2.406 kB / 0.8423 GB, free: 47.82 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.537/8.804, allocations: 177 MB / 1.015 GB, free: 14.89 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