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.351/2.351, allocations: 234.9 MB / 250.5 MB, free: 9.535 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004536/0.0004536, allocations: 12 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3496, allocations: 54.86 MB / 369.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1859/0.5356, allocations: 102.5 MB / 471.9 MB, free: 3.938 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003388/0.536, allocations: 87.89 kB / 471.9 MB, free: 3.852 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7742/1.31, allocations: 106.5 MB / 0.5649 GB, free: 6.414 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.906e-06/1.31, allocations: 0 / 0.5649 GB, free: 6.414 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003721/1.311, allocations: 112 kB / 0.565 GB, free: 6.305 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.02351/1.334, allocations: 5.72 MB / 0.5706 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/1.334, allocations: 8.031 kB / 0.5706 GB, free: 0.5 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005038/1.339, allocations: 0.9388 MB / 0.5715 GB, free: 15.55 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05364/1.393, allocations: 6.927 MB / 0.5783 GB, free: 8.602 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02644/1.419, allocations: 6.907 MB / 0.585 GB, free: 1.637 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006611/1.42, allocations: 406.7 kB / 0.5854 GB, free: 1.238 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00335/1.424, allocations: 0.5387 MB / 0.586 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04268/1.466, allocations: 12.77 MB / 0.5984 GB, free: 2.773 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003999/1.467, allocations: 75.31 kB / 0.5985 GB, free: 2.699 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002508/1.469, allocations: 255.9 kB / 0.5987 GB, free: 2.449 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002755/1.472, allocations: 1.129 MB / 0.5998 GB, free: 1.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03592/1.508, allocations: 10.48 MB / 0.6101 GB, free: 6.816 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5147/2.023, allocations: 57.09 MB / 0.6658 GB, free: 62.16 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01815/2.041, allocations: 4.414 MB / 0.6701 GB, free: 61.49 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.026/2.067, allocations: 9.977 MB / 0.6799 GB, free: 59.93 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.697e-05/2.067, allocations: 62 kB / 0.6799 GB, free: 59.89 MB / 474.7 MB Notification: Performance of pre-optimization done (n=192): time 7.103e-06/2.067, allocations: 0 / 0.6799 GB, free: 59.89 MB / 474.7 MB Notification: Performance of matching and sorting (n=218): time 0.08703/2.154, allocations: 18.96 MB / 0.6985 GB, free: 55.92 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/2.154, allocations: 201.3 kB / 0.6986 GB, free: 55.7 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01213/2.166, allocations: 4.225 MB / 0.7028 GB, free: 55.32 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005849/2.167, allocations: 59.59 kB / 0.7028 GB, free: 55.29 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00366/2.171, allocations: 3.623 MB / 0.7064 GB, free: 53.41 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00148/2.172, allocations: 0.8261 MB / 0.7072 GB, free: 52.94 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000919/2.173, allocations: 131.7 kB / 0.7073 GB, free: 52.94 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006438/2.174, allocations: 0.5845 MB / 0.7079 GB, free: 52.61 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00612/2.18, allocations: 2.255 MB / 0.7101 GB, free: 52.6 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009065/2.189, allocations: 6.189 MB / 0.7161 GB, free: 47.19 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008808/2.198, allocations: 3.677 MB / 0.7197 GB, free: 45.96 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001762/2.198, allocations: 44.25 kB / 0.7197 GB, free: 45.96 MB / 474.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02548/2.224, allocations: 8.775 MB / 0.7283 GB, free: 43.47 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001179/2.224, allocations: 65.06 kB / 0.7284 GB, free: 43.47 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002304/2.224, allocations: 141.2 kB / 0.7285 GB, free: 43.47 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00445/2.229, allocations: 0.9385 MB / 0.7294 GB, free: 43.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009215/2.238, allocations: 1.502 MB / 0.7309 GB, free: 43.12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01344/2.251, allocations: 7.619 MB / 0.7383 GB, free: 38.38 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007391/2.259, allocations: 352.9 kB / 0.7387 GB, free: 38.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001505/2.26, allocations: 399.3 kB / 0.7391 GB, free: 38.2 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 () * Number of clocked 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.007131/2.268, allocations: 2.566 MB / 0.7416 GB, free: 37 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00113/2.269, allocations: 431.1 kB / 0.742 GB, free: 36.77 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01099/2.28, allocations: 3.608 MB / 0.7455 GB, free: 35.02 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.715e-05/2.28, allocations: 24.56 kB / 0.7455 GB, free: 35 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.116e-05/2.28, allocations: 8 kB / 0.7455 GB, free: 34.99 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.989e-05/2.28, allocations: 15.34 kB / 0.7455 GB, free: 34.98 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02762/2.308, allocations: 9.308 MB / 0.7546 GB, free: 27.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.095e-05/2.308, allocations: 0 / 0.7546 GB, free: 27.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003215/2.311, allocations: 344.5 kB / 0.755 GB, free: 27.13 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00372/2.315, allocations: 0.6892 MB / 0.7556 GB, free: 26.65 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003842/2.315, allocations: 39.23 kB / 0.7557 GB, free: 26.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01145/2.327, allocations: 6.734 MB / 0.7622 GB, free: 20.35 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/2.327, allocations: 4 kB / 0.7623 GB, free: 20.34 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01462/2.341, allocations: 6.368 MB / 0.7685 GB, free: 14.75 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002556/2.344, allocations: 0.7444 MB / 0.7692 GB, free: 14.04 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00106/2.345, allocations: 36 kB / 0.7692 GB, free: 14 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003167/2.348, allocations: 116.5 kB / 0.7693 GB, free: 13.93 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005689/2.349, allocations: 124.5 kB / 0.7695 GB, free: 13.85 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002077/2.349, allocations: 60.78 kB / 0.7695 GB, free: 13.79 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007275/2.356, allocations: 2.993 MB / 0.7724 GB, free: 11.34 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.62e-07/2.356, allocations: 0 / 0.7724 GB, free: 11.34 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00852/2.365, allocations: 1.187 MB / 0.7736 GB, free: 10.16 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 () * Number of clocked 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.01623/2.381, allocations: 7.242 MB / 0.7807 GB, free: 3.703 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0185/2.4, allocations: 6.024 MB / 0.7866 GB, free: 15.37 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/2.4, allocations: 0 / 0.7866 GB, free: 15.37 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006332/2.406, allocations: 1.999 MB / 0.7885 GB, free: 13.59 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004646/2.411, allocations: 0.5243 MB / 0.789 GB, free: 13.16 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5178/2.929, allocations: 138.5 MB / 0.9243 GB, free: 92.09 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009517/2.938, allocations: 4.11 MB / 0.9283 GB, free: 91.27 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006081/2.944, allocations: 2.506 MB / 0.9308 GB, free: 91.27 MB / 0.5261 GB Notification: Performance of SimCode: time 1.102e-06/2.944, allocations: 0 / 0.9308 GB, free: 91.27 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.371/8.315, allocations: 144.6 MB / 1.072 GB, free: 154.8 MB / 0.5261 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