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.GearConstraint3.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.GearConstraint3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.297/2.297, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.075e-05/2.074e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.364, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1977/0.5618, allocations: 100.9 MB / 459 MB, free: 9.852 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003841/0.5623, allocations: 83.94 kB / 459.1 MB, free: 9.77 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7766/1.339, allocations: 128.2 MB / 0.5735 GB, free: 9.789 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.046e-06/1.339, allocations: 0 / 0.5735 GB, free: 9.789 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005514/1.339, allocations: 136 kB / 0.5736 GB, free: 9.656 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: 2232 * Number of variables: 2232 Notification: Performance of Generate backend data structure: time 0.03104/1.371, allocations: 6.871 MB / 0.5803 GB, free: 2.707 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.75e-05/1.371, allocations: 8.031 kB / 0.5803 GB, free: 2.699 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06954/1.44, allocations: 9.418 MB / 0.5895 GB, free: 9.258 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03333/1.474, allocations: 8.984 MB / 0.5983 GB, free: 196 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004878/1.474, allocations: 208 kB / 0.5985 GB, free: 15.98 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003723/1.478, allocations: 395.7 kB / 0.5989 GB, free: 15.6 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02856/1.506, allocations: 10.02 MB / 0.6086 GB, free: 5.574 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04178/1.548, allocations: 14.22 MB / 0.6225 GB, free: 6.121 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004746/1.549, allocations: 79.19 kB / 0.6226 GB, free: 6.043 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002987/1.552, allocations: 40 kB / 0.6226 GB, free: 6.004 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004244/1.556, allocations: 1.526 MB / 0.6241 GB, free: 4.473 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4464/2.003, allocations: 68.17 MB / 0.6907 GB, free: 42.49 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01139/2.014, allocations: 6.624 MB / 0.6972 GB, free: 41.82 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009018/2.023, allocations: 5.155 MB / 0.7022 GB, free: 39.85 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03829/2.061, allocations: 17.74 MB / 0.7195 GB, free: 31.79 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.708e-05/2.062, allocations: 66.42 kB / 0.7196 GB, free: 31.73 MB / 458.7 MB Notification: Performance of pre-optimization done (n=310): time 7.594e-06/2.062, allocations: 0 / 0.7196 GB, free: 31.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=384): time 0.1545/2.216, allocations: 43.06 MB / 0.7616 GB, free: 4.406 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/2.216, allocations: 332.6 kB / 0.762 GB, free: 4.02 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008778/2.225, allocations: 4.317 MB / 0.7662 GB, free: 348 kB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00135/2.226, allocations: 25.7 kB / 0.7662 GB, free: 316 kB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006495/2.233, allocations: 4.422 MB / 0.7705 GB, free: 12.95 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002957/2.236, allocations: 1.353 MB / 0.7718 GB, free: 11.72 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001096/2.237, allocations: 0 / 0.7718 GB, free: 11.72 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006738/2.238, allocations: 0.67 MB / 0.7725 GB, free: 11.14 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01107/2.249, allocations: 4.404 MB / 0.7768 GB, free: 7.203 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01591/2.265, allocations: 8.919 MB / 0.7855 GB, free: 12.86 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01492/2.28, allocations: 6.194 MB / 0.7916 GB, free: 7.82 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001475/2.28, allocations: 45.78 kB / 0.7916 GB, free: 7.777 MB / 490.7 MB Notification: Performance of matching and sorting (n=1114) (initialization): time 0.06488/2.345, allocations: 16.92 MB / 0.8081 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001357/2.345, allocations: 72 kB / 0.8082 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002468/2.345, allocations: 164 kB / 0.8084 GB, free: 11.36 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02555/2.371, allocations: 4.722 MB / 0.813 GB, free: 6.781 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01488/2.386, allocations: 2.039 MB / 0.815 GB, free: 4.738 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3966/2.782, allocations: 23.55 MB / 0.838 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01142/2.794, allocations: 459.5 kB / 0.8384 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002506/2.796, allocations: 0.4913 MB / 0.8389 GB, free: 109.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 720 * Number of states: 0 () * Number of discrete variables: 54 (torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1011): * Single equations (assignments): 1005 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 16,(14,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002654/2.799, allocations: 0.5172 MB / 0.8394 GB, free: 109.8 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05553/2.855, allocations: 11.81 MB / 0.8509 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002965/2.858, allocations: 0.5088 MB / 0.8514 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05731/2.915, allocations: 12.1 MB / 0.8632 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001465/2.915, allocations: 39.69 kB / 0.8633 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.855e-05/2.915, allocations: 15.06 kB / 0.8633 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001317/2.915, allocations: 17.67 kB / 0.8633 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06752/2.983, allocations: 20.76 MB / 0.8836 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.254e-05/2.983, allocations: 0 / 0.8836 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007325/2.99, allocations: 0.6749 MB / 0.8842 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02379/3.014, allocations: 4.489 MB / 0.8886 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001239/3.015, allocations: 10.06 kB / 0.8886 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05127/3.067, allocations: 23.07 MB / 0.9111 GB, free: 90.33 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.573e-06/3.067, allocations: 0 / 0.9111 GB, free: 90.33 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06189/3.129, allocations: 18.2 MB / 0.9289 GB, free: 75.25 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00647/3.135, allocations: 1.319 MB / 0.9302 GB, free: 74.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002345/3.138, allocations: 0 / 0.9302 GB, free: 74.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009114/3.147, allocations: 296 kB / 0.9305 GB, free: 73.89 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002268/3.149, allocations: 247.9 kB / 0.9307 GB, free: 73.74 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007467/3.15, allocations: 91.28 kB / 0.9308 GB, free: 73.66 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008711/3.159, allocations: 2.952 MB / 0.9337 GB, free: 71.11 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.283e-06/3.159, allocations: 0 / 0.9337 GB, free: 71.11 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01495/3.174, allocations: 1.638 MB / 0.9353 GB, free: 69.48 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (gearConstraint.actuatedRevolute_a.phi,gearConstraint.actuatedRevolute_a.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (295): * Single equations (assignments): 289 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(14,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0521/3.226, allocations: 19 MB / 0.9538 GB, free: 52.14 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02951/3.255, allocations: 11.48 MB / 0.9651 GB, free: 41.05 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.465e-06/3.255, allocations: 0 / 0.9651 GB, free: 41.05 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01696/3.272, allocations: 5.6 MB / 0.9705 GB, free: 35.51 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005496/3.278, allocations: 0.5658 MB / 0.9711 GB, free: 34.96 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04835/3.326, allocations: 17.18 MB / 0.9879 GB, free: 18.04 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01103/3.337, allocations: 5.064 MB / 0.9928 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01372/3.351, allocations: 3.209 MB / 0.9959 GB, free: 9.785 MB / 0.4948 GB Notification: Performance of SimCode: time 2.164e-06/3.351, allocations: 4 kB / 0.9959 GB, free: 9.781 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.206/9.557, allocations: 217.3 MB / 1.208 GB, free: 122.9 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat does not exist to compare? outputFormat=mat