Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.01058/0.01058, allocations: 104.1 kB / 15.05 MB, free: 6.035 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001124/0.001124, allocations: 169.6 kB / 15.93 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.609/1.609, allocations: 170.9 MB / 187.5 MB, free: 1.008 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2931/0.2931, allocations: 38.09 MB / 265.1 MB, free: 3.961 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004772/0.0004773, allocations: 12 kB / 323.6 MB, free: 29.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.103, allocations: 48.72 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2): time 0.476/0.5791, allocations: 127 MB / 499.3 MB, free: 4.863 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.08262/0.6617, allocations: 27.46 MB / 0.5145 GB, free: 9.32 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03036/0.6922, allocations: 0.6313 MB / 0.5151 GB, free: 8.688 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02479/0.717, allocations: 6.7 MB / 0.5216 GB, free: 1.957 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.07132/0.7884, allocations: 18.12 MB / 0.5393 GB, free: 15.78 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01065/0.7991, allocations: 1.385 MB / 0.5407 GB, free: 14.39 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.1101/0.9092, allocations: 37.08 MB / 0.5769 GB, free: 9.277 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03162/0.9409, allocations: 14.4 MB / 0.5909 GB, free: 10.8 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009313/0.9503, allocations: 3.578 MB / 0.5944 GB, free: 7.207 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01154/0.9619, allocations: 4.704 MB / 0.599 GB, free: 2.488 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004562/0.9665, allocations: 0.5117 MB / 0.5995 GB, free: 1.977 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007638/0.9742, allocations: 1.202 MB / 0.6007 GB, free: 0.7734 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.3753/1.35, allocations: 5.534 MB / 0.6061 GB, free: 47.14 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008255/1.358, allocations: 2.893 MB / 0.6089 GB, free: 47.11 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03152/1.39, allocations: 19.39 MB / 0.6279 GB, free: 45.79 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/1.39, allocations: 0 / 0.6279 GB, free: 45.79 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.346e-06/1.39, allocations: 0 / 0.6279 GB, free: 45.79 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001072/1.391, allocations: 0 / 0.6279 GB, free: 45.79 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: 5455 * Number of variables: 5455 Notification: Performance of Generate backend data structure: time 0.08603/1.477, allocations: 13.75 MB / 0.6413 GB, free: 38.75 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/1.477, allocations: 11.48 kB / 0.6413 GB, free: 38.75 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0142/1.491, allocations: 2.523 MB / 0.6438 GB, free: 38.07 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2406/1.732, allocations: 21.21 MB / 0.6645 GB, free: 29.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03386/1.766, allocations: 9.887 MB / 0.6741 GB, free: 24.53 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0011/1.767, allocations: 0.7943 MB / 0.6749 GB, free: 24.09 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007065/1.774, allocations: 1.052 MB / 0.6759 GB, free: 23.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1034/1.877, allocations: 36.58 MB / 0.7117 GB, free: 12.15 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00102/1.878, allocations: 114.7 kB / 0.7118 GB, free: 12.09 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007427/1.886, allocations: 0.4887 MB / 0.7122 GB, free: 11.96 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.02119/1.907, allocations: 7.562 MB / 0.7196 GB, free: 5.777 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.109/2.016, allocations: 32.38 MB / 0.7512 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6125/2.629, allocations: 129.9 MB / 0.8781 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05709/2.686, allocations: 15.41 MB / 0.8932 GB, free: 121.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1044/2.79, allocations: 34.96 MB / 0.9273 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001025/2.79, allocations: 105.6 kB / 0.9274 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=745): time 1.48e-05/2.79, allocations: 3.938 kB / 0.9274 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=827): time 0.4221/3.212, allocations: 82.61 MB / 1.008 GB, free: 37.05 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/3.213, allocations: 312.3 kB / 1.008 GB, free: 36.69 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02828/3.241, allocations: 11.09 MB / 1.019 GB, free: 25.64 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.002439/3.243, allocations: 139.7 kB / 1.019 GB, free: 25.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.008907/3.252, allocations: 9.783 MB / 1.029 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.005428/3.258, allocations: 2.988 MB / 1.032 GB, free: 12.74 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004055/3.262, allocations: 355.8 kB / 1.032 GB, free: 12.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.002563/3.265, allocations: 1.103 MB / 1.033 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02291/3.288, allocations: 8.332 MB / 1.041 GB, free: 2.949 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3731/3.661, allocations: 17.83 MB / 1.059 GB, free: 187 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03423/3.695, allocations: 12.16 MB / 1.071 GB, free: 183.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0007039/3.696, allocations: 95 kB / 1.071 GB, free: 183.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2393) (initialization): time 0.08878/3.785, allocations: 28.05 MB / 1.098 GB, free: 173.8 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004274/3.785, allocations: 148.5 kB / 1.098 GB, free: 173.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007513/3.786, allocations: 331.3 kB / 1.099 GB, free: 173.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01386/3.8, allocations: 2.699 MB / 1.101 GB, free: 173.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03151/3.831, allocations: 4.296 MB / 1.105 GB, free: 172.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03696/3.868, allocations: 16.21 MB / 1.121 GB, free: 163 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02287/3.891, allocations: 1.09 MB / 1.122 GB, free: 162.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005379/3.897, allocations: 0.9937 MB / 1.123 GB, free: 161.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1503 * Number of states: 0 () * Number of discrete variables: 90 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2197): * Single equations (assignments): 2180 * Array equations: 15 * 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 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02595/3.923, allocations: 7.171 MB / 1.13 GB, free: 155.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004507/3.927, allocations: 1.015 MB / 1.131 GB, free: 154.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05454/3.982, allocations: 16.25 MB / 1.147 GB, free: 141 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003099/3.982, allocations: 162 kB / 1.147 GB, free: 140.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.624e-05/3.982, allocations: 12 kB / 1.147 GB, free: 140.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002035/3.982, allocations: 34.17 kB / 1.147 GB, free: 140.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.117/4.1, allocations: 35.51 MB / 1.182 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001128/4.1, allocations: 4 kB / 1.182 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01484/4.115, allocations: 1.436 MB / 1.183 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01218/4.127, allocations: 2.068 MB / 1.185 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00245/4.129, allocations: 130.5 kB / 1.186 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03297/4.162, allocations: 14.81 MB / 1.2 GB, free: 89.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.056e-05/4.162, allocations: 11 kB / 1.2 GB, free: 89.64 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0711/4.233, allocations: 27.31 MB / 1.227 GB, free: 61.98 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009882/4.243, allocations: 2.307 MB / 1.229 GB, free: 59.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005172/4.249, allocations: 130.6 kB / 1.229 GB, free: 59.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01208/4.261, allocations: 0.5485 MB / 1.23 GB, free: 58.97 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003483/4.264, allocations: 447.2 kB / 1.23 GB, free: 58.54 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002371/4.267, allocations: 192 kB / 1.23 GB, free: 58.35 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0194/4.286, allocations: 6.951 MB / 1.237 GB, free: 51.43 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.01e-07/4.286, allocations: 192 / 1.237 GB, free: 51.43 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02571/4.312, allocations: 3.478 MB / 1.24 GB, free: 47.96 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.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 (653): * Single equations (assignments): 636 * Array equations: 15 * 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%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4295/4.741, allocations: 28.77 MB / 1.269 GB, free: 176.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.05244/4.794, allocations: 19.9 MB / 1.288 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.325e-05/4.794, allocations: 7.141 kB / 1.288 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02094/4.815, allocations: 7.845 MB / 1.296 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01111/4.826, allocations: 1.249 MB / 1.297 GB, free: 166 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7412/5.567, allocations: 370.5 MB / 1.659 GB, free: 31.75 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02805/5.596, allocations: 10.57 MB / 1.669 GB, free: 26.77 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.03131/5.627, allocations: 6.66 MB / 1.676 GB, free: 22.48 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01828/5.645, allocations: 7.423 MB / 1.683 GB, free: 15.13 MB / 0.5573 GB Notification: Performance of SimCode: time 1.402e-06/5.645, allocations: 0 / 1.683 GB, free: 15.13 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.225/6.871, allocations: 238.5 MB / 1.916 GB, free: 175.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002318/6.871, allocations: 225.6 kB / 1.916 GB, free: 175.4 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.98/19.86, allocations: 0 / 1.916 GB, free: 175.4 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat