Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.694/1.694, allocations: 171.2 MB / 183.8 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.138e-05/3.155e-05, allocations: 0 / 225.1 MB, free: 2.746 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.279, allocations: 38.77 MB / 263.8 MB, free: 9.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.174/0.4531, allocations: 91.96 MB / 355.8 MB, free: 13.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003247/0.4534, allocations: 87.95 kB / 355.9 MB, free: 13.69 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6636/1.117, allocations: 110.4 MB / 466.3 MB, free: 7.719 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.117, allocations: 0 / 466.3 MB, free: 7.719 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003669/1.117, allocations: 108 kB / 466.4 MB, free: 7.613 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: 1738 * Number of variables: 1738 Notification: Performance of Generate backend data structure: time 0.02049/1.138, allocations: 4.913 MB / 471.3 MB, free: 2.633 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.792e-05/1.138, allocations: 16.02 kB / 471.3 MB, free: 2.617 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005047/1.143, allocations: 1.028 MB / 472.3 MB, free: 1.578 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05249/1.196, allocations: 6.904 MB / 479.2 MB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02721/1.223, allocations: 6.757 MB / 486 MB, free: 3.836 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005999/1.224, allocations: 390.3 kB / 486.4 MB, free: 3.453 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00322/1.227, allocations: 0.5192 MB / 486.9 MB, free: 2.934 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04497/1.272, allocations: 12.55 MB / 499.5 MB, free: 5.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003741/1.272, allocations: 59.47 kB / 499.5 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002411/1.275, allocations: 243.9 kB / 499.7 MB, free: 5.113 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002665/1.277, allocations: 1.04 MB / 0.4891 GB, free: 4.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2919/1.569, allocations: 10.37 MB / 0.4992 GB, free: 58.03 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08188/1.651, allocations: 50.12 MB / 0.5481 GB, free: 29.74 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02146/1.673, allocations: 4.772 MB / 0.5528 GB, free: 28.14 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004074/1.677, allocations: 1.882 MB / 0.5546 GB, free: 27.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01803/1.695, allocations: 7.06 MB / 0.5615 GB, free: 23.46 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.852e-05/1.695, allocations: 52.19 kB / 0.5616 GB, free: 23.42 MB / 346.7 MB Notification: Performance of pre-optimization done (n=179): time 6.141e-06/1.695, allocations: 0 / 0.5616 GB, free: 23.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=224): time 0.1176/1.813, allocations: 17.1 MB / 0.5783 GB, free: 18.72 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/1.813, allocations: 205.4 kB / 0.5785 GB, free: 18.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01442/1.827, allocations: 3.871 MB / 0.5822 GB, free: 15.99 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006668/1.828, allocations: 61.23 kB / 0.5823 GB, free: 15.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004439/1.833, allocations: 3.447 MB / 0.5857 GB, free: 12.8 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001752/1.834, allocations: 0.8394 MB / 0.5865 GB, free: 12.06 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001053/1.836, allocations: 127 kB / 0.5866 GB, free: 11.94 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000725/1.836, allocations: 0.5763 MB / 0.5872 GB, free: 11.43 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008398/1.845, allocations: 2.108 MB / 0.5892 GB, free: 9.52 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0122/1.857, allocations: 5.845 MB / 0.5949 GB, free: 2.23 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01363/1.871, allocations: 3.537 MB / 0.5984 GB, free: 15.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002169/1.871, allocations: 40 kB / 0.5984 GB, free: 15.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.03894/1.91, allocations: 8.509 MB / 0.6067 GB, free: 7.988 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001834/1.91, allocations: 60 kB / 0.6068 GB, free: 7.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003235/1.911, allocations: 132 kB / 0.6069 GB, free: 7.801 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00866/1.919, allocations: 1.029 MB / 0.6079 GB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01383/1.933, allocations: 1.414 MB / 0.6093 GB, free: 5.773 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02689/1.96, allocations: 6.937 MB / 0.6161 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009161/1.969, allocations: 339.3 kB / 0.6164 GB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001958/1.971, allocations: 378.9 kB / 0.6168 GB, free: 15.19 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 43 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 764 * 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%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003013/1.974, allocations: 0.5901 MB / 0.6173 GB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00174/1.976, allocations: 406.8 kB / 0.6177 GB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01506/1.991, allocations: 3.605 MB / 0.6212 GB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.529e-05/1.991, allocations: 24 kB / 0.6213 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.165e-05/1.991, allocations: 8 kB / 0.6213 GB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.588e-05/1.991, allocations: 9.469 kB / 0.6213 GB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03486/2.026, allocations: 9.824 MB / 0.6309 GB, free: 3.109 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.514e-05/2.026, allocations: 11.33 kB / 0.6309 GB, free: 3.102 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003511/2.03, allocations: 350.5 kB / 0.6312 GB, free: 2.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005349/2.035, allocations: 0.8056 MB / 0.632 GB, free: 2.145 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004928/2.036, allocations: 40 kB / 0.6321 GB, free: 2.105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2832/2.319, allocations: 5.576 MB / 0.6375 GB, free: 82.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.919e-06/2.319, allocations: 13.34 kB / 0.6375 GB, free: 82.36 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01644/2.336, allocations: 6.932 MB / 0.6443 GB, free: 80.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002726/2.338, allocations: 0.7145 MB / 0.645 GB, free: 80.76 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001049/2.339, allocations: 44.38 kB / 0.645 GB, free: 80.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003353/2.343, allocations: 99.41 kB / 0.6451 GB, free: 80.76 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007162/2.344, allocations: 144.2 kB / 0.6453 GB, free: 80.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002285/2.344, allocations: 64.72 kB / 0.6453 GB, free: 80.76 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00732/2.351, allocations: 2.725 MB / 0.648 GB, free: 80.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.12e-07/2.351, allocations: 0 / 0.648 GB, free: 80.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007812/2.359, allocations: 1.176 MB / 0.6491 GB, free: 80.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (176): * Single equations (assignments): 172 * 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%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01742/2.377, allocations: 8.898 MB / 0.6578 GB, free: 77.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01232/2.389, allocations: 5.3 MB / 0.663 GB, free: 77.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/2.389, allocations: 0 / 0.663 GB, free: 77.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004043/2.393, allocations: 1.76 MB / 0.6647 GB, free: 77.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005298/2.398, allocations: 0.519 MB / 0.6652 GB, free: 77.08 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03655/2.435, allocations: 11.28 MB / 0.6762 GB, free: 74.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008626/2.444, allocations: 3.984 MB / 0.6801 GB, free: 72.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00529/2.449, allocations: 2.358 MB / 0.6824 GB, free: 70.79 MB / 378.7 MB Notification: Performance of SimCode: time 1.353e-06/2.449, allocations: 3.188 kB / 0.6824 GB, free: 70.79 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.827/7.276, allocations: 117.6 MB / 0.7972 GB, free: 79.67 MB / 378.7 MB