Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.877/1.877, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.519e-05/3.539e-05, allocations: 3.094 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09695/0.09702, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4395/0.5366, allocations: 92.75 MB / 392.7 MB, free: 12.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003221/0.537, allocations: 88.98 kB / 392.8 MB, free: 12.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4701/1.007, allocations: 106.4 MB / 499.1 MB, free: 1.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.274e-06/1.007, allocations: 0 / 499.1 MB, free: 1.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000449/1.008, allocations: 116 kB / 499.2 MB, free: 1.387 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1843 * Number of variables: 1843 Notification: Performance of Generate backend data structure: time 0.02277/1.03, allocations: 5.251 MB / 0.4927 GB, free: 12.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.689e-05/1.031, allocations: 12.03 kB / 0.4927 GB, free: 12.05 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004749/1.035, allocations: 0.931 MB / 0.4936 GB, free: 11.11 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05329/1.089, allocations: 6.935 MB / 0.5004 GB, free: 4.156 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02797/1.117, allocations: 6.812 MB / 0.507 GB, free: 13.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000701/1.117, allocations: 402.7 kB / 0.5074 GB, free: 12.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003161/1.121, allocations: 0.5465 MB / 0.5079 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3215/1.442, allocations: 12.66 MB / 0.5203 GB, free: 71.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004912/1.443, allocations: 70.12 kB / 0.5204 GB, free: 71.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002529/1.445, allocations: 256.7 kB / 0.5206 GB, free: 71.59 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002954/1.448, allocations: 1.129 MB / 0.5217 GB, free: 71.58 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03445/1.483, allocations: 10.29 MB / 0.5318 GB, free: 71.54 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08456/1.567, allocations: 57.09 MB / 0.5875 GB, free: 37.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01765/1.585, allocations: 4.37 MB / 0.5918 GB, free: 36.04 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00497/1.59, allocations: 2.377 MB / 0.5941 GB, free: 34.99 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0263/1.616, allocations: 9.967 MB / 0.6038 GB, free: 30.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.877e-05/1.617, allocations: 58.45 kB / 0.6039 GB, free: 30.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 5.831e-06/1.617, allocations: 6.656 kB / 0.6039 GB, free: 30.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=218): time 0.07358/1.69, allocations: 16.16 MB / 0.6197 GB, free: 24.04 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.949e-05/1.69, allocations: 206.7 kB / 0.6199 GB, free: 23.81 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01071/1.701, allocations: 4.184 MB / 0.624 GB, free: 22.36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005669/1.702, allocations: 56.77 kB / 0.624 GB, free: 22.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00341/1.705, allocations: 3.624 MB / 0.6275 GB, free: 19.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001372/1.707, allocations: 0.8273 MB / 0.6284 GB, free: 18.83 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008808/1.707, allocations: 133.4 kB / 0.6285 GB, free: 18.73 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005056/1.708, allocations: 0.5878 MB / 0.6291 GB, free: 18.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005818/1.714, allocations: 2.189 MB / 0.6312 GB, free: 17.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008565/1.722, allocations: 6.122 MB / 0.6372 GB, free: 11.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008239/1.731, allocations: 3.648 MB / 0.6407 GB, free: 10.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001575/1.731, allocations: 41.62 kB / 0.6408 GB, free: 10.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02397/1.755, allocations: 8.624 MB / 0.6492 GB, free: 3.945 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000123/1.755, allocations: 68.06 kB / 0.6493 GB, free: 3.879 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002125/1.755, allocations: 140.8 kB / 0.6494 GB, free: 3.742 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004513/1.76, allocations: 0.9366 MB / 0.6503 GB, free: 3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009367/1.769, allocations: 1.505 MB / 0.6518 GB, free: 1.691 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01503/1.784, allocations: 7.431 MB / 0.659 GB, free: 10.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007524/1.792, allocations: 352.7 kB / 0.6594 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001671/1.794, allocations: 402.7 kB / 0.6598 GB, free: 10.07 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 635 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (795): * Single equations (assignments): 790 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002279/1.796, allocations: 0.6015 MB / 0.6603 GB, free: 9.469 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001314/1.797, allocations: 426.5 kB / 0.6608 GB, free: 9.047 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01191/1.809, allocations: 3.544 MB / 0.6642 GB, free: 6.113 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.498e-05/1.809, allocations: 24 kB / 0.6642 GB, free: 6.09 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.107e-05/1.809, allocations: 4 kB / 0.6642 GB, free: 6.086 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.984e-05/1.809, allocations: 11.27 kB / 0.6643 GB, free: 6.082 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3262/2.136, allocations: 9.229 MB / 0.6733 GB, free: 83.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-05/2.136, allocations: 3.781 kB / 0.6733 GB, free: 83.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003512/2.139, allocations: 344.5 kB / 0.6736 GB, free: 83.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004023/2.143, allocations: 0.6909 MB / 0.6743 GB, free: 83.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004481/2.144, allocations: 37.73 kB / 0.6743 GB, free: 83.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01273/2.157, allocations: 6.546 MB / 0.6807 GB, free: 81.12 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/2.157, allocations: 1.188 kB / 0.6807 GB, free: 81.12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01642/2.173, allocations: 6.254 MB / 0.6868 GB, free: 80.49 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002789/2.176, allocations: 0.7337 MB / 0.6875 GB, free: 80.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001252/2.177, allocations: 36.53 kB / 0.6876 GB, free: 80.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003482/2.181, allocations: 114.5 kB / 0.6877 GB, free: 80.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007047/2.181, allocations: 127.5 kB / 0.6878 GB, free: 80.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000212/2.182, allocations: 57.44 kB / 0.6878 GB, free: 80.39 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007482/2.189, allocations: 2.953 MB / 0.6907 GB, free: 80.19 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.22e-07/2.189, allocations: 3.906 kB / 0.6907 GB, free: 80.19 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008104/2.197, allocations: 1.191 MB / 0.6919 GB, free: 80.19 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 164 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01549/2.213, allocations: 7.111 MB / 0.6988 GB, free: 78.88 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01351/2.226, allocations: 5.643 MB / 0.7043 GB, free: 78.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.784e-06/2.226, allocations: 0 / 0.7043 GB, free: 78.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00495/2.231, allocations: 1.953 MB / 0.7063 GB, free: 78.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004816/2.236, allocations: 0.5343 MB / 0.7068 GB, free: 78.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0381/2.274, allocations: 11.62 MB / 0.7181 GB, free: 76.35 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009213/2.284, allocations: 4.111 MB / 0.7221 GB, free: 75.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005818/2.29, allocations: 2.505 MB / 0.7246 GB, free: 73.75 MB / 426.7 MB Notification: Performance of SimCode: time 2.344e-06/2.29, allocations: 0 / 0.7246 GB, free: 73.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.922/7.211, allocations: 144.6 MB / 0.8658 GB, free: 82.79 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat