Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.296/2.296, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006835/0.0006835, allocations: 20 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3878/0.3885, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1889/0.5775, allocations: 104.1 MB / 473.5 MB, free: 2.359 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002838/0.5778, allocations: 75.97 kB / 473.5 MB, free: 2.285 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9603/1.538, allocations: 163.4 MB / 0.622 GB, free: 11.59 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.745e-06/1.538, allocations: 0 / 0.622 GB, free: 11.59 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006232/1.539, allocations: 159.9 kB / 0.6221 GB, free: 11.43 MB / 458.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.081/1.62, allocations: 7.999 MB / 0.6299 GB, free: 3.34 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.528e-05/1.62, allocations: 8.031 kB / 0.6299 GB, free: 3.332 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01561/1.636, allocations: 1.545 MB / 0.6314 GB, free: 1.777 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4302/2.066, allocations: 10.05 MB / 0.6413 GB, free: 60.64 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0295/2.095, allocations: 8.442 MB / 0.6495 GB, free: 60.29 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009696/2.096, allocations: 0.6218 MB / 0.6501 GB, free: 60.27 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005509/2.102, allocations: 0.8238 MB / 0.6509 GB, free: 60.27 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06154/2.164, allocations: 20.54 MB / 0.671 GB, free: 56.28 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006242/2.164, allocations: 84.28 kB / 0.671 GB, free: 56.28 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005043/2.169, allocations: 394.6 kB / 0.6714 GB, free: 56.28 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004543/2.174, allocations: 2.11 MB / 0.6735 GB, free: 56.26 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05238/2.226, allocations: 18.06 MB / 0.6911 GB, free: 56.18 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1464/2.373, allocations: 85.08 MB / 0.7742 GB, free: 7.762 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03043/2.403, allocations: 8.05 MB / 0.7821 GB, free: 0.6914 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005797/2.404, allocations: 66.84 kB / 0.7821 GB, free: 0.6445 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.197e-05/2.404, allocations: 77.19 kB / 0.7822 GB, free: 0.5625 MB / 474.7 MB Notification: Performance of pre-optimization done (n=450): time 1.033e-05/2.404, allocations: 0 / 0.7822 GB, free: 0.5625 MB / 474.7 MB Notification: Performance of matching and sorting (n=501): time 0.5566/2.961, allocations: 44.26 MB / 0.8254 GB, free: 99.03 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/2.961, allocations: 230.4 kB / 0.8256 GB, free: 98.8 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01549/2.976, allocations: 5.73 MB / 0.8312 GB, free: 98.3 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.00118/2.978, allocations: 93.67 kB / 0.8313 GB, free: 98.27 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00537/2.983, allocations: 5.511 MB / 0.8367 GB, free: 95.71 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003173/2.986, allocations: 1.818 MB / 0.8385 GB, free: 94.63 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001944/2.988, allocations: 225.6 kB / 0.8387 GB, free: 94.63 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001233/2.989, allocations: 0.7999 MB / 0.8395 GB, free: 94.3 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01281/3.002, allocations: 4.912 MB / 0.8443 GB, free: 94.27 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01746/3.02, allocations: 11.04 MB / 0.8551 GB, free: 86.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01715/3.037, allocations: 7.348 MB / 0.8622 GB, free: 86.44 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002691/3.037, allocations: 66.22 kB / 0.8623 GB, free: 86.44 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1487) (initialization): time 0.0479/3.085, allocations: 16.95 MB / 0.8789 GB, free: 85.32 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000182/3.085, allocations: 105.7 kB / 0.879 GB, free: 85.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003613/3.086, allocations: 216 kB / 0.8792 GB, free: 85.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007663/3.094, allocations: 1.713 MB / 0.8808 GB, free: 85.05 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02276/3.116, allocations: 2.599 MB / 0.8834 GB, free: 84.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04004/3.156, allocations: 14.38 MB / 0.8974 GB, free: 75.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02035/3.177, allocations: 0.6651 MB / 0.8981 GB, free: 75.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005946/3.183, allocations: 0.6302 MB / 0.8987 GB, free: 75.39 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 976 * 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 (1363): * Single equations (assignments): 1350 * 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.01822/3.201, allocations: 4.196 MB / 0.9028 GB, free: 73.51 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003233/3.204, allocations: 0.6153 MB / 0.9034 GB, free: 73.17 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04512/3.25, allocations: 9.717 MB / 0.9129 GB, free: 69.54 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002661/3.25, allocations: 99.91 kB / 0.913 GB, free: 69.52 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.594e-05/3.25, allocations: 7.188 kB / 0.913 GB, free: 69.52 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001409/3.25, allocations: 26.3 kB / 0.913 GB, free: 69.52 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09746/3.348, allocations: 21.69 MB / 0.9342 GB, free: 59.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001048/3.348, allocations: 15.91 kB / 0.9342 GB, free: 59.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01192/3.36, allocations: 0.793 MB / 0.935 GB, free: 58.53 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01071/3.371, allocations: 1.365 MB / 0.9363 GB, free: 57.56 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001566/3.372, allocations: 93.47 kB / 0.9364 GB, free: 57.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03544/3.408, allocations: 13.26 MB / 0.9493 GB, free: 45.06 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.85e-05/3.408, allocations: 19.5 kB / 0.9494 GB, free: 45.05 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05528/3.463, allocations: 17.31 MB / 0.9663 GB, free: 29.14 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006861/3.47, allocations: 1.384 MB / 0.9676 GB, free: 27.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003374/3.473, allocations: 95.67 kB / 0.9677 GB, free: 27.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008827/3.482, allocations: 311.4 kB / 0.968 GB, free: 27.56 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002008/3.484, allocations: 295.2 kB / 0.9683 GB, free: 27.37 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001039/3.485, allocations: 131 kB / 0.9684 GB, free: 27.25 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01057/3.496, allocations: 3.987 MB / 0.9723 GB, free: 24 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.92e-07/3.496, allocations: 0 / 0.9723 GB, free: 24 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01456/3.511, allocations: 2.043 MB / 0.9743 GB, free: 21.96 MB / 0.4948 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 (385): * Single equations (assignments): 372 * 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.04051/3.551, allocations: 20.06 MB / 0.9939 GB, free: 3.465 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.4055/3.957, allocations: 12.95 MB / 1.007 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.621e-05/3.957, allocations: 1.312 kB / 1.007 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01358/3.971, allocations: 4.939 MB / 1.011 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007017/3.978, allocations: 0.7285 MB / 1.012 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2319/4.21, allocations: 223.6 MB / 1.23 GB, free: 4.879 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3911/4.601, allocations: 6.279 MB / 1.237 GB, free: 188.5 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01239/4.613, allocations: 4.165 MB / 1.241 GB, free: 188.5 MB / 0.5886 GB Notification: Performance of SimCode: time 2.435e-06/4.613, allocations: 0 / 1.241 GB, free: 188.5 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.593/11.21, allocations: 308.5 MB / 1.542 GB, free: 130.6 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat