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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.237/2.237, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.179e-05/2.177e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3424, allocations: 54.85 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2039/0.5464, allocations: 101.7 MB / 459.9 MB, free: 8.941 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003169/0.5468, allocations: 79.95 kB / 460 MB, free: 8.863 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7218/1.269, allocations: 104.2 MB / 0.5509 GB, free: 17.06 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.364e-06/1.269, allocations: 0 / 0.5509 GB, free: 17.06 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003613/1.269, allocations: 108 kB / 0.551 GB, free: 16.96 MB / 394.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.02023/1.289, allocations: 5.263 MB / 0.5562 GB, free: 11.62 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/1.289, allocations: 8.031 kB / 0.5562 GB, free: 11.62 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06369/1.353, allocations: 6.935 MB / 0.563 GB, free: 4.664 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03246/1.386, allocations: 6.872 MB / 0.5697 GB, free: 13.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004957/1.386, allocations: 176 kB / 0.5698 GB, free: 13.56 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002972/1.389, allocations: 319.8 kB / 0.5701 GB, free: 13.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02206/1.411, allocations: 7.549 MB / 0.5775 GB, free: 5.695 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03389/1.445, allocations: 11.33 MB / 0.5886 GB, free: 9.219 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003918/1.446, allocations: 67.39 kB / 0.5886 GB, free: 9.152 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002237/1.448, allocations: 43.94 kB / 0.5887 GB, free: 9.109 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002855/1.451, allocations: 1.133 MB / 0.5898 GB, free: 7.977 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4368/1.888, allocations: 55.93 MB / 0.6444 GB, free: 60.97 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006348/1.894, allocations: 3.496 MB / 0.6478 GB, free: 60.31 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004219/1.898, allocations: 2.273 MB / 0.65 GB, free: 60.28 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006049/1.899, allocations: 341.4 kB / 0.6504 GB, free: 60 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.437e-05/1.899, allocations: 53.81 kB / 0.6504 GB, free: 59.96 MB / 458.7 MB Notification: Performance of pre-optimization done (n=201): time 6.011e-06/1.899, allocations: 2.844 kB / 0.6504 GB, free: 59.96 MB / 458.7 MB Notification: Performance of matching and sorting (n=228): time 0.06613/1.965, allocations: 19.95 MB / 0.6699 GB, free: 56.54 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/1.965, allocations: 208.2 kB / 0.6701 GB, free: 56.32 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008566/1.974, allocations: 3.659 MB / 0.6737 GB, free: 55.93 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005652/1.975, allocations: 28.8 kB / 0.6737 GB, free: 55.9 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003341/1.978, allocations: 3.722 MB / 0.6773 GB, free: 53.98 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001342/1.979, allocations: 0.8386 MB / 0.6782 GB, free: 53.49 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008215/1.98, allocations: 0 / 0.6782 GB, free: 53.49 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004619/1.981, allocations: 0.5968 MB / 0.6787 GB, free: 53.16 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005104/1.986, allocations: 2.171 MB / 0.6809 GB, free: 53.15 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008212/1.994, allocations: 6.234 MB / 0.6869 GB, free: 47.39 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008018/2.002, allocations: 3.656 MB / 0.6905 GB, free: 46.29 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001765/2.002, allocations: 39 kB / 0.6906 GB, free: 46.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02342/2.026, allocations: 8.109 MB / 0.6985 GB, free: 44.11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/2.026, allocations: 65.38 kB / 0.6985 GB, free: 44.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002102/2.026, allocations: 152.9 kB / 0.6987 GB, free: 44.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004477/2.031, allocations: 0.9478 MB / 0.6996 GB, free: 43.94 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009935/2.041, allocations: 1.571 MB / 0.7011 GB, free: 43.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01287/2.054, allocations: 7.25 MB / 0.7082 GB, free: 39.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007455/2.061, allocations: 238.3 kB / 0.7085 GB, free: 39.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001842/2.063, allocations: 413.7 kB / 0.7088 GB, free: 39.18 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * 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 (832): * Single equations (assignments): 827 * 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.002369/2.065, allocations: 474.1 kB / 0.7093 GB, free: 38.79 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01064/2.076, allocations: 3.758 MB / 0.713 GB, free: 36.58 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001363/2.077, allocations: 402.7 kB / 0.7134 GB, free: 36.19 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01061/2.088, allocations: 3.482 MB / 0.7168 GB, free: 33.34 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.636e-05/2.088, allocations: 31.77 kB / 0.7168 GB, free: 33.32 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.937e-05/2.088, allocations: 11.95 kB / 0.7168 GB, free: 33.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.971e-05/2.088, allocations: 7.547 kB / 0.7168 GB, free: 33.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02712/2.115, allocations: 8.554 MB / 0.7252 GB, free: 26.36 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.924e-05/2.115, allocations: 3.5 kB / 0.7252 GB, free: 26.36 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003527/2.119, allocations: 367.2 kB / 0.7255 GB, free: 26.06 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003858/2.123, allocations: 0.6736 MB / 0.7262 GB, free: 25.59 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005135/2.124, allocations: 11.98 kB / 0.7262 GB, free: 25.58 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01063/2.134, allocations: 6.208 MB / 0.7322 GB, free: 19.79 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/2.134, allocations: 4 kB / 0.7322 GB, free: 19.79 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.014/2.148, allocations: 6.338 MB / 0.7384 GB, free: 14.13 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002674/2.151, allocations: 0.7049 MB / 0.7391 GB, free: 13.45 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001229/2.152, allocations: 4 kB / 0.7391 GB, free: 13.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003415/2.156, allocations: 85.08 kB / 0.7392 GB, free: 13.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006948/2.156, allocations: 136.8 kB / 0.7393 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002415/2.157, allocations: 56.7 kB / 0.7394 GB, free: 13.26 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006416/2.163, allocations: 2.488 MB / 0.7418 GB, free: 11.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.92e-07/2.163, allocations: 0 / 0.7418 GB, free: 11.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009042/2.172, allocations: 1.031 MB / 0.7428 GB, free: 10.07 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (179): * Single equations (assignments): 174 * 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.01572/2.188, allocations: 7.333 MB / 0.75 GB, free: 3.449 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01808/2.206, allocations: 5.753 MB / 0.7556 GB, free: 15.28 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-05/2.206, allocations: 4 kB / 0.7556 GB, free: 15.27 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005587/2.212, allocations: 1.949 MB / 0.7575 GB, free: 13.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00432/2.216, allocations: 454.9 kB / 0.7579 GB, free: 13.13 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04073/2.257, allocations: 11.43 MB / 0.7691 GB, free: 3.293 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01039/2.267, allocations: 4.108 MB / 0.7731 GB, free: 228 kB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01158/2.279, allocations: 2.768 MB / 0.7758 GB, free: 15.02 MB / 490.7 MB Notification: Performance of SimCode: time 1.663e-06/2.279, allocations: 0 / 0.7758 GB, free: 15.02 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.825/7.104, allocations: 142.4 MB / 0.9149 GB, free: 102.3 MB / 0.5105 GB 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