Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.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.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.275/2.275, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.945e-05/3.961e-05, allocations: 4 kB / 309.8 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3929/0.393, allocations: 54.86 MB / 364.6 MB, free: 5.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1872/0.5802, allocations: 102.4 MB / 467 MB, free: 9.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003126/0.5806, allocations: 80.8 kB / 467.1 MB, free: 9.852 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.793/1.374, allocations: 106.6 MB / 0.5603 GB, free: 104.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.515e-06/1.374, allocations: 0 / 0.5603 GB, free: 104.1 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003951/1.374, allocations: 110.9 kB / 0.5604 GB, free: 104.1 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: 1843 * Number of variables: 1843 Notification: Performance of Generate backend data structure: time 0.02088/1.395, allocations: 5.269 MB / 0.5655 GB, free: 101.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/1.395, allocations: 15.69 kB / 0.5656 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00412/1.399, allocations: 0.9294 MB / 0.5665 GB, free: 101.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05001/1.449, allocations: 6.931 MB / 0.5732 GB, free: 101.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02523/1.475, allocations: 6.873 MB / 0.5799 GB, free: 99.75 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005335/1.475, allocations: 411.4 kB / 0.5803 GB, free: 99.59 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003162/1.478, allocations: 0.5383 MB / 0.5809 GB, free: 99.43 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05135/1.53, allocations: 12.66 MB / 0.5932 GB, free: 92.76 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004913/1.53, allocations: 77.72 kB / 0.5933 GB, free: 92.71 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002868/1.533, allocations: 262.2 kB / 0.5935 GB, free: 92.57 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002546/1.536, allocations: 1.125 MB / 0.5946 GB, free: 92.35 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0314/1.567, allocations: 10.29 MB / 0.6047 GB, free: 85.22 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08726/1.655, allocations: 57.09 MB / 0.6604 GB, free: 26.71 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01801/1.673, allocations: 4.371 MB / 0.6647 GB, free: 22.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004993/1.678, allocations: 2.385 MB / 0.667 GB, free: 19.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02638/1.704, allocations: 9.954 MB / 0.6768 GB, free: 9.742 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.97e-05/1.704, allocations: 59.8 kB / 0.6768 GB, free: 9.676 MB / 458.7 MB Notification: Performance of pre-optimization done (n=192): time 6.412e-06/1.704, allocations: 0 / 0.6768 GB, free: 9.676 MB / 458.7 MB Notification: Performance of matching and sorting (n=218): time 0.07809/1.782, allocations: 16.18 MB / 0.6926 GB, free: 9.414 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/1.783, allocations: 201.2 kB / 0.6928 GB, free: 9.172 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01259/1.795, allocations: 4.195 MB / 0.6969 GB, free: 4.977 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005916/1.796, allocations: 57.7 kB / 0.697 GB, free: 4.914 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00451/1.8, allocations: 3.618 MB / 0.7005 GB, free: 1.301 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001611/1.802, allocations: 0.8318 MB / 0.7013 GB, free: 488 kB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009473/1.803, allocations: 128 kB / 0.7014 GB, free: 360 kB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.3725/2.175, allocations: 0.5804 MB / 0.702 GB, free: 110.1 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006607/2.182, allocations: 2.19 MB / 0.7041 GB, free: 110 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009805/2.192, allocations: 6.12 MB / 0.7101 GB, free: 105 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01016/2.202, allocations: 3.641 MB / 0.7137 GB, free: 105 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000288/2.203, allocations: 43.16 kB / 0.7137 GB, free: 105 MB / 474.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02794/2.231, allocations: 8.638 MB / 0.7221 GB, free: 104.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001546/2.231, allocations: 67.98 kB / 0.7222 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002193/2.231, allocations: 139.3 kB / 0.7223 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004563/2.236, allocations: 0.9325 MB / 0.7232 GB, free: 104.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009549/2.245, allocations: 1.508 MB / 0.7247 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01339/2.259, allocations: 7.41 MB / 0.732 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007708/2.266, allocations: 358.8 kB / 0.7323 GB, free: 100.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001716/2.268, allocations: 396.1 kB / 0.7327 GB, free: 100.6 MB / 474.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.002475/2.271, allocations: 0.6155 MB / 0.7333 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001179/2.272, allocations: 431.9 kB / 0.7337 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01218/2.284, allocations: 3.534 MB / 0.7371 GB, free: 98.82 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.539e-05/2.284, allocations: 21.48 kB / 0.7372 GB, free: 98.82 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.441e-05/2.284, allocations: 11.72 kB / 0.7372 GB, free: 98.82 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.914e-05/2.284, allocations: 15.19 kB / 0.7372 GB, free: 98.82 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02809/2.312, allocations: 9.228 MB / 0.7462 GB, free: 95.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.041e-05/2.312, allocations: 0 / 0.7462 GB, free: 95.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003393/2.316, allocations: 348.4 kB / 0.7465 GB, free: 95.42 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003913/2.32, allocations: 0.687 MB / 0.7472 GB, free: 95.27 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000453/2.32, allocations: 35.92 kB / 0.7472 GB, free: 95.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01167/2.332, allocations: 6.551 MB / 0.7536 GB, free: 91.06 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/2.332, allocations: 7.406 kB / 0.7536 GB, free: 91.05 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01474/2.347, allocations: 6.253 MB / 0.7597 GB, free: 88.56 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002872/2.35, allocations: 0.7419 MB / 0.7605 GB, free: 88.12 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001329/2.351, allocations: 35.16 kB / 0.7605 GB, free: 88.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003526/2.355, allocations: 113.5 kB / 0.7606 GB, free: 88.07 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006722/2.355, allocations: 131.8 kB / 0.7607 GB, free: 88.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002455/2.356, allocations: 55.72 kB / 0.7608 GB, free: 88.04 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007754/2.363, allocations: 2.954 MB / 0.7637 GB, free: 87.01 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.122e-06/2.363, allocations: 0 / 0.7637 GB, free: 87.01 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008305/2.372, allocations: 1.18 MB / 0.7648 GB, free: 86.88 MB / 474.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.01554/2.387, allocations: 7.114 MB / 0.7718 GB, free: 83.41 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01383/2.401, allocations: 5.648 MB / 0.7773 GB, free: 80.74 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.685e-06/2.401, allocations: 0 / 0.7773 GB, free: 80.74 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004836/2.406, allocations: 1.948 MB / 0.7792 GB, free: 78.95 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004545/2.411, allocations: 0.528 MB / 0.7797 GB, free: 78.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03704/2.448, allocations: 11.63 MB / 0.7911 GB, free: 68.44 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009321/2.457, allocations: 4.108 MB / 0.7951 GB, free: 65.37 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005878/2.463, allocations: 2.513 MB / 0.7975 GB, free: 63.05 MB / 474.7 MB Notification: Performance of SimCode: time 1.482e-06/2.463, allocations: 0 / 0.7975 GB, free: 63.05 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.92/7.383, allocations: 144.6 MB / 0.9388 GB, free: 103.1 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat does not exist to compare? outputFormat=mat