Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.59/1.59, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003664/0.0003664, allocations: 8 kB / 233.4 MB, free: 0.8203 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08288/0.0833, allocations: 38.76 MB / 272.1 MB, free: 9.977 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3753/0.4586, allocations: 86.65 MB / 358.8 MB, free: 12.31 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003403/0.459, allocations: 91.94 kB / 358.9 MB, free: 12.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6941/1.153, allocations: 106 MB / 464.9 MB, free: 77.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.815e-06/1.153, allocations: 0 / 464.9 MB, free: 77.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003588/1.154, allocations: 111.7 kB / 465 MB, free: 77.07 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1842 * Number of variables: 1842 Notification: Performance of Generate backend data structure: time 0.02404/1.178, allocations: 5.731 MB / 470.7 MB, free: 74.21 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.619e-05/1.178, allocations: 10.31 kB / 470.7 MB, free: 74.21 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004599/1.182, allocations: 0.9282 MB / 471.7 MB, free: 73.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04996/1.232, allocations: 6.892 MB / 478.5 MB, free: 70.09 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02274/1.255, allocations: 6.831 MB / 485.4 MB, free: 64.67 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004273/1.256, allocations: 405.6 kB / 485.8 MB, free: 64.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00267/1.258, allocations: 0.5306 MB / 486.3 MB, free: 63.8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03404/1.292, allocations: 12.41 MB / 498.7 MB, free: 50.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003117/1.293, allocations: 71.34 kB / 498.8 MB, free: 50.26 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001539/1.294, allocations: 263.8 kB / 499 MB, free: 50.03 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002109/1.296, allocations: 1.125 MB / 0.4884 GB, free: 48.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02847/1.325, allocations: 9.979 MB / 0.4982 GB, free: 38.92 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3603/1.685, allocations: 56.49 MB / 0.5534 GB, free: 74.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05264/1.738, allocations: 4.142 MB / 0.5574 GB, free: 73.53 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03851/1.777, allocations: 9.493 MB / 0.5667 GB, free: 72.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.644e-05/1.777, allocations: 56.84 kB / 0.5667 GB, free: 72.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=191): time 2.28e-05/1.777, allocations: 0 / 0.5667 GB, free: 72.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=218): time 0.1486/1.925, allocations: 19.34 MB / 0.5856 GB, free: 68.25 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001355/1.926, allocations: 214 kB / 0.5858 GB, free: 68.03 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01852/1.944, allocations: 4.236 MB / 0.59 GB, free: 67.15 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006957/1.945, allocations: 56.89 kB / 0.59 GB, free: 67.1 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005739/1.951, allocations: 3.623 MB / 0.5935 GB, free: 64.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001938/1.953, allocations: 0.8255 MB / 0.5944 GB, free: 63.64 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001837/1.955, allocations: 131.3 kB / 0.5945 GB, free: 63.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0009529/1.956, allocations: 0.5845 MB / 0.595 GB, free: 63.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009406/1.965, allocations: 2.247 MB / 0.5972 GB, free: 62.37 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01307/1.978, allocations: 6.184 MB / 0.6033 GB, free: 56.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01312/1.992, allocations: 3.66 MB / 0.6069 GB, free: 55.12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002195/1.992, allocations: 39.38 kB / 0.6069 GB, free: 55.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02858/2.02, allocations: 8.762 MB / 0.6154 GB, free: 52.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001266/2.021, allocations: 64.78 kB / 0.6155 GB, free: 52.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003187/2.021, allocations: 147.5 kB / 0.6157 GB, free: 52.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00462/2.026, allocations: 0.9361 MB / 0.6166 GB, free: 52.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009336/2.035, allocations: 1.503 MB / 0.618 GB, free: 51.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01447/2.05, allocations: 7.613 MB / 0.6255 GB, free: 46.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007788/2.057, allocations: 357.2 kB / 0.6258 GB, free: 46.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001623/2.059, allocations: 395.3 kB / 0.6262 GB, free: 46.19 MB / 362.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 () * Number of clocked 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.007782/2.067, allocations: 2.574 MB / 0.6287 GB, free: 43.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001175/2.068, allocations: 430.5 kB / 0.6291 GB, free: 43.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01129/2.079, allocations: 3.588 MB / 0.6326 GB, free: 40.54 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.225e-05/2.079, allocations: 24 kB / 0.6326 GB, free: 40.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-05/2.08, allocations: 8 kB / 0.6326 GB, free: 40.51 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-05/2.08, allocations: 9.891 kB / 0.6327 GB, free: 40.51 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02822/2.108, allocations: 9.265 MB / 0.6417 GB, free: 32.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.318e-05/2.108, allocations: 0 / 0.6417 GB, free: 32.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00332/2.111, allocations: 344.2 kB / 0.642 GB, free: 32.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003926/2.115, allocations: 0.6897 MB / 0.6427 GB, free: 32.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005266/2.116, allocations: 38.91 kB / 0.6427 GB, free: 32.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01221/2.128, allocations: 6.75 MB / 0.6493 GB, free: 25.86 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/2.128, allocations: 6.516 kB / 0.6493 GB, free: 25.86 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01573/2.144, allocations: 6.326 MB / 0.6555 GB, free: 20.28 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002644/2.147, allocations: 0.743 MB / 0.6562 GB, free: 19.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001326/2.148, allocations: 32 kB / 0.6563 GB, free: 19.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003584/2.152, allocations: 108.5 kB / 0.6564 GB, free: 19.47 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007392/2.152, allocations: 136.2 kB / 0.6565 GB, free: 19.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002032/2.153, allocations: 53.09 kB / 0.6566 GB, free: 19.33 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007365/2.16, allocations: 3.006 MB / 0.6595 GB, free: 16.87 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.163e-06/2.16, allocations: 0 / 0.6595 GB, free: 16.87 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.008341/2.168, allocations: 1.186 MB / 0.6607 GB, free: 15.69 MB / 362.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 () * Number of clocked 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.01609/2.184, allocations: 7.193 MB / 0.6677 GB, free: 8.707 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0139/2.198, allocations: 5.721 MB / 0.6733 GB, free: 2.992 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/2.198, allocations: 6.719 kB / 0.6733 GB, free: 2.988 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005004/2.203, allocations: 1.988 MB / 0.6752 GB, free: 0.9727 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004553/2.208, allocations: 0.5238 MB / 0.6757 GB, free: 480 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4031/2.611, allocations: 138.5 MB / 0.8109 GB, free: 11.77 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01057/2.622, allocations: 4.113 MB / 0.815 GB, free: 10.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006668/2.629, allocations: 2.509 MB / 0.8174 GB, free: 9.41 MB / 410.7 MB Notification: Performance of SimCode: time 1.883e-06/2.629, allocations: 0 / 0.8174 GB, free: 9.41 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.066/7.694, allocations: 144.5 MB / 0.9585 GB, free: 47.39 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat