Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gc1.actuatedRevolute_b.phi|gc1.actuatedRevolute_b.w|gc2.actuatedRevolute_b.phi|gc2.actuatedRevolute_b.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gc1.actuatedRevolute_b.phi|gc1.actuatedRevolute_b.w|gc2.actuatedRevolute_b.phi|gc2.actuatedRevolute_b.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009917/0.0009917, allocations: 175.7 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007809/0.0007808, allocations: 101.5 kB / 292.2 MB, free: 10.9 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3031/0.3031, allocations: 44.22 MB / 387.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002945/0.0002945, allocations: 8 kB / 459.9 MB, free: 1.5 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3294, allocations: 61.89 MB / 0.5096 GB, free: 38.2 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1411/0.4705, allocations: 110.6 MB / 0.6176 GB, free: 484 kB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000373/0.471, allocations: 95.94 kB / 0.6177 GB, free: 388 kB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.173/1.645, allocations: 280.7 MB / 0.8918 GB, free: 43.89 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.826e-06/1.645, allocations: 0 / 0.8918 GB, free: 43.89 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.001435/1.646, allocations: 276.3 kB / 0.892 GB, free: 43.88 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5288 * Number of variables: 5288 Notification: Performance of Generate backend data structure: time 0.05191/1.698, allocations: 13.74 MB / 0.9055 GB, free: 38.51 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/1.698, allocations: 11.91 kB / 0.9055 GB, free: 38.51 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07493/1.773, allocations: 18.44 MB / 0.9235 GB, free: 37.53 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04244/1.815, allocations: 14.15 MB / 0.9373 GB, free: 36.06 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001296/1.817, allocations: 1.062 MB / 0.9383 GB, free: 36.03 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008423/1.825, allocations: 1.425 MB / 0.9397 GB, free: 36.01 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09159/1.917, allocations: 35.64 MB / 0.9745 GB, free: 30.43 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001739/1.919, allocations: 135 kB / 0.9747 GB, free: 30.42 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008753/1.927, allocations: 0.6433 MB / 0.9753 GB, free: 30.42 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005329/1.933, allocations: 3.598 MB / 0.9788 GB, free: 30.38 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06268/1.995, allocations: 32.27 MB / 1.01 GB, free: 15.93 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5851/2.581, allocations: 137.4 MB / 1.144 GB, free: 30.5 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03251/2.613, allocations: 15.19 MB / 1.159 GB, free: 28.61 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07275/2.686, allocations: 34.52 MB / 1.193 GB, free: 25.73 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001672/2.686, allocations: 97.12 kB / 1.193 GB, free: 25.69 MB / 0.573 GB Notification: Performance of pre-optimization done (n=705): time 2.401e-05/2.686, allocations: 0 / 1.193 GB, free: 25.69 MB / 0.573 GB Notification: Performance of matching and sorting (n=787): time 0.2407/2.927, allocations: 83 MB / 1.274 GB, free: 14.48 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000197/2.927, allocations: 303.8 kB / 1.274 GB, free: 14.13 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02186/2.949, allocations: 9.163 MB / 1.283 GB, free: 6.66 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.001697/2.951, allocations: 132.2 kB / 1.284 GB, free: 6.527 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.009703/2.96, allocations: 9.585 MB / 1.293 GB, free: 14.1 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.004972/2.965, allocations: 2.852 MB / 1.296 GB, free: 11.57 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003317/2.969, allocations: 347.8 kB / 1.296 GB, free: 11.24 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.002543/2.971, allocations: 1.083 MB / 1.297 GB, free: 10.37 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01564/2.987, allocations: 8 MB / 1.305 GB, free: 3.543 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3863/3.373, allocations: 18.65 MB / 1.323 GB, free: 113.2 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01898/3.392, allocations: 11.76 MB / 1.335 GB, free: 113.1 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0006784/3.393, allocations: 93.34 kB / 1.335 GB, free: 113.1 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2328) (initialization): time 0.06104/3.454, allocations: 26.99 MB / 1.361 GB, free: 111.5 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009284/3.455, allocations: 146.6 kB / 1.361 GB, free: 111.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000939/3.456, allocations: 323.8 kB / 1.362 GB, free: 111.5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006963/3.463, allocations: 2.407 MB / 1.364 GB, free: 111.5 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01517/3.478, allocations: 4.139 MB / 1.368 GB, free: 111.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01893/3.497, allocations: 14.77 MB / 1.382 GB, free: 108.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01465/3.512, allocations: 1.057 MB / 1.383 GB, free: 108.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004375/3.516, allocations: 0.9692 MB / 1.384 GB, free: 108.3 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1479 * Number of states: 0 () * Number of discrete variables: 97 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (2132): * Single equations (assignments): 2115 * 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.01961/3.536, allocations: 7.002 MB / 1.391 GB, free: 107.8 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003215/3.539, allocations: 0.9819 MB / 1.392 GB, free: 107.8 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03077/3.57, allocations: 15.32 MB / 1.407 GB, free: 103.4 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001807/3.57, allocations: 160.7 kB / 1.407 GB, free: 103.4 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-05/3.57, allocations: 13.09 kB / 1.407 GB, free: 103.4 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001101/3.57, allocations: 33.11 kB / 1.407 GB, free: 103.4 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07602/3.646, allocations: 33.56 MB / 1.44 GB, free: 91.33 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.049e-05/3.647, allocations: 11.16 kB / 1.44 GB, free: 91.33 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005841/3.652, allocations: 1.313 MB / 1.441 GB, free: 91.23 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005712/3.658, allocations: 1.775 MB / 1.443 GB, free: 90.86 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009702/3.659, allocations: 127.8 kB / 1.443 GB, free: 90.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01577/3.675, allocations: 13.39 MB / 1.456 GB, free: 83.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/3.675, allocations: 14.16 kB / 1.456 GB, free: 83.82 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03368/3.709, allocations: 25.64 MB / 1.481 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003246/3.712, allocations: 0.9683 MB / 1.482 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003005/3.715, allocations: 117.8 kB / 1.482 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006188/3.721, allocations: 0.5076 MB / 1.483 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001373/3.723, allocations: 426.3 kB / 1.483 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008154/3.723, allocations: 182.1 kB / 1.483 GB, free: 59.42 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.01193/3.735, allocations: 6.357 MB / 1.49 GB, free: 54.25 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/3.735, allocations: 0 / 1.49 GB, free: 54.25 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01599/3.751, allocations: 3.323 MB / 1.493 GB, free: 50.94 MB / 0.6042 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 (611): * Single equations (assignments): 594 * 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.001396/3.753, allocations: 312.5 kB / 1.493 GB, free: 50.65 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.02668/3.779, allocations: 19.07 MB / 1.512 GB, free: 33.79 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/3.779, allocations: 0.9375 kB / 1.512 GB, free: 33.79 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0108/3.79, allocations: 7.414 MB / 1.519 GB, free: 27.23 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006685/3.797, allocations: 1.248 MB / 1.52 GB, free: 26.18 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.405/4.202, allocations: 40.09 MB / 1.559 GB, free: 99.55 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03189/4.234, allocations: 10.3 MB / 1.569 GB, free: 98.47 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.02411/4.258, allocations: 6.474 MB / 1.576 GB, free: 98.33 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005207/4.263, allocations: 0.6971 MB / 1.576 GB, free: 98.31 MB / 0.6042 GB Notification: Performance of SimCode: time 1.974e-06/4.263, allocations: 0 / 1.576 GB, free: 98.31 MB / 0.6042 GB Notification: Performance of Templates: time 0.1934/4.457, allocations: 99.79 MB / 1.674 GB, free: 72 MB / 0.6042 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint2/GearConstraint2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches