Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01526/0.01527, allocations: 106.4 kB / 15.06 MB, free: 5.949 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001711/0.001711, allocations: 186.2 kB / 15.95 MB, free: 5.902 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.186/2.186, allocations: 194.6 MB / 211.3 MB, free: 11.06 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.2684/0.2684, allocations: 40.04 MB / 296.5 MB, free: 6.289 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007581/0.0007585, allocations: 12 kB / 361.2 MB, free: 9.539 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1451, allocations: 54.87 MB / 416 MB, free: 2.57 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.4383/0.5835, allocations: 67.54 MB / 483.6 MB, free: 25.77 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05396/0.6375, allocations: 15.39 MB / 499 MB, free: 15.28 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01852/0.6561, allocations: 334.4 kB / 499.3 MB, free: 15.23 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01304/0.6692, allocations: 3.52 MB / 0.491 GB, free: 14.11 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0393/0.7086, allocations: 9.766 MB / 0.5006 GB, free: 9.504 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00641/0.715, allocations: 0.7982 MB / 0.5013 GB, free: 9.176 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.05431/0.7694, allocations: 19.03 MB / 0.5199 GB, free: 1.324 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0165/0.786, allocations: 7.81 MB / 0.5275 GB, free: 9.516 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005418/0.7915, allocations: 1.983 MB / 0.5295 GB, free: 7.527 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006211/0.7977, allocations: 2.648 MB / 0.5321 GB, free: 4.871 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002206/0.8, allocations: 288 kB / 0.5323 GB, free: 4.59 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004553/0.8046, allocations: 1.05 MB / 0.5334 GB, free: 3.539 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005777/0.8104, allocations: 3.082 MB / 0.5364 GB, free: 460 kB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003306/0.8137, allocations: 1.641 MB / 0.538 GB, free: 14.79 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01896/0.8327, allocations: 10.98 MB / 0.5487 GB, free: 3.793 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.8328, allocations: 0 / 0.5487 GB, free: 3.793 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.534e-06/0.8328, allocations: 0 / 0.5487 GB, free: 3.793 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004853/0.8333, allocations: 0 / 0.5487 GB, free: 3.793 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.02802/0.8614, allocations: 7.762 MB / 0.5563 GB, free: 11.95 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.298e-05/0.8614, allocations: 8.031 kB / 0.5563 GB, free: 11.94 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005464/0.8669, allocations: 1.447 MB / 0.5577 GB, free: 10.48 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1069/0.9739, allocations: 11.52 MB / 0.569 GB, free: 14.93 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01767/0.9916, allocations: 5.361 MB / 0.5742 GB, free: 9.488 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006593/0.9924, allocations: 455.5 kB / 0.5746 GB, free: 9.043 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003476/0.9958, allocations: 0.5894 MB / 0.5752 GB, free: 8.453 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05744/1.053, allocations: 20.55 MB / 0.5953 GB, free: 2.844 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003617/1.054, allocations: 71.39 kB / 0.5953 GB, free: 2.773 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002541/1.056, allocations: 283.7 kB / 0.5956 GB, free: 2.496 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01188/1.068, allocations: 4.296 MB / 0.5998 GB, free: 14.2 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05755/1.126, allocations: 18.12 MB / 0.6175 GB, free: 12.05 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7774/1.903, allocations: 75.12 MB / 0.6909 GB, free: 96.71 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03031/1.934, allocations: 8.143 MB / 0.6988 GB, free: 93.28 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006366/1.934, allocations: 68.23 kB / 0.6989 GB, free: 93.26 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.215e-05/1.934, allocations: 79.98 kB / 0.6989 GB, free: 93.19 MB / 490.8 MB Notification: Performance of pre-optimization done (n=450): time 1.073e-05/1.934, allocations: 0 / 0.6989 GB, free: 93.19 MB / 490.8 MB Notification: Performance of matching and sorting (n=497): time 0.1684/2.103, allocations: 42.72 MB / 0.7407 GB, free: 69.46 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/2.103, allocations: 227 kB / 0.7409 GB, free: 69.2 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01456/2.118, allocations: 6.711 MB / 0.7474 GB, free: 62.49 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001236/2.119, allocations: 101.4 kB / 0.7475 GB, free: 62.39 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004637/2.124, allocations: 5.686 MB / 0.7531 GB, free: 56.7 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002843/2.127, allocations: 1.809 MB / 0.7549 GB, free: 54.91 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00131/2.128, allocations: 217.2 kB / 0.7551 GB, free: 54.7 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0007734/2.129, allocations: 0.7973 MB / 0.7558 GB, free: 53.89 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01225/2.141, allocations: 4.929 MB / 0.7607 GB, free: 48.96 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01635/2.157, allocations: 11.05 MB / 0.7714 GB, free: 34.93 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01698/2.174, allocations: 7.354 MB / 0.7786 GB, free: 27.57 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002044/2.175, allocations: 64 kB / 0.7787 GB, free: 27.51 MB / 490.8 MB Notification: Performance of matching and sorting (n=1481) (initialization): time 0.05792/2.233, allocations: 17.24 MB / 0.7955 GB, free: 10.24 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002091/2.233, allocations: 96 kB / 0.7956 GB, free: 10.14 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003916/2.233, allocations: 212 kB / 0.7958 GB, free: 9.938 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0112/2.244, allocations: 1.851 MB / 0.7976 GB, free: 8.074 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02119/2.266, allocations: 2.581 MB / 0.8001 GB, free: 5.488 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03455/2.3, allocations: 15.04 MB / 0.8148 GB, free: 5.938 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01238/2.313, allocations: 0.6631 MB / 0.8155 GB, free: 5.273 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00274/2.316, allocations: 0.6251 MB / 0.8161 GB, free: 4.648 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 972 * Number of states: 0 () * Number of discrete variables: 48 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 (1357): * Single equations (assignments): 1344 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01245/2.328, allocations: 4.181 MB / 0.8202 GB, free: 464 kB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3476/2.676, allocations: 0.6106 MB / 0.8208 GB, free: 148.5 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03056/2.706, allocations: 9.834 MB / 0.8304 GB, free: 148.1 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001914/2.707, allocations: 89.48 kB / 0.8305 GB, free: 148.1 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.662e-05/2.707, allocations: 9.562 kB / 0.8305 GB, free: 148.1 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001117/2.707, allocations: 21.92 kB / 0.8305 GB, free: 148.1 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07573/2.783, allocations: 21.91 MB / 0.8519 GB, free: 140.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.894e-05/2.783, allocations: 13.28 kB / 0.8519 GB, free: 140.2 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007961/2.791, allocations: 0.7854 MB / 0.8527 GB, free: 140.1 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008268/2.799, allocations: 1.498 MB / 0.8541 GB, free: 139.8 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001282/2.8, allocations: 88.33 kB / 0.8542 GB, free: 139.7 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02757/2.828, allocations: 14.07 MB / 0.868 GB, free: 131 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.987e-05/2.828, allocations: 17.48 kB / 0.868 GB, free: 131 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03951/2.867, allocations: 17.51 MB / 0.8851 GB, free: 122.8 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005577/2.873, allocations: 1.415 MB / 0.8865 GB, free: 122.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002795/2.876, allocations: 84.73 kB / 0.8865 GB, free: 122.3 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006889/2.883, allocations: 307.3 kB / 0.8868 GB, free: 122.3 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002063/2.885, allocations: 301.8 kB / 0.8871 GB, free: 122.2 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001147/2.886, allocations: 138.7 kB / 0.8872 GB, free: 122.2 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.0103/2.896, allocations: 4.207 MB / 0.8914 GB, free: 119.1 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.012e-06/2.897, allocations: 0 / 0.8914 GB, free: 119.1 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01412/2.911, allocations: 2.063 MB / 0.8934 GB, free: 117.1 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (381): * Single equations (assignments): 368 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04185/2.953, allocations: 20.28 MB / 0.9132 GB, free: 97.25 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02744/2.98, allocations: 12.2 MB / 0.9251 GB, free: 85.11 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.551e-05/2.98, allocations: 4 kB / 0.9251 GB, free: 85.11 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01161/2.992, allocations: 4.971 MB / 0.9299 GB, free: 80.1 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006087/2.998, allocations: 0.7215 MB / 0.9306 GB, free: 79.41 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5656/3.564, allocations: 222.9 MB / 1.148 GB, free: 32.32 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01734/3.581, allocations: 6.258 MB / 1.154 GB, free: 30.35 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.02029/3.601, allocations: 4.097 MB / 1.158 GB, free: 30.07 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01055/3.612, allocations: 4.017 MB / 1.162 GB, free: 26.75 MB / 0.5105 GB Notification: Performance of SimCode: time 1.623e-06/3.612, allocations: 0 / 1.162 GB, free: 26.75 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.726/4.338, allocations: 150 MB / 1.309 GB, free: 82.36 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002552/4.338, allocations: 204.9 kB / 1.309 GB, free: 82.12 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.516/12.85, allocations: 0 / 1.309 GB, free: 82.12 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat