Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint") translateModel(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 112.8 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 187.1 kB / 19.39 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.502/1.502, allocations: 222.9 MB / 243.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2318/0.2318, allocations: 44.18 MB / 337.4 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 56.14 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4225/0.4242, allocations: 60.82 MB / 0.5196 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.021/0.4452, allocations: 18.73 MB / 0.5379 GB, free: 5.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0159/0.4612, allocations: 5.31 MB / 0.5431 GB, free: 1.633 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005626/0.4668, allocations: 118.8 kB / 0.5432 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01062/0.4775, allocations: 4.79 MB / 0.5478 GB, free: 14.41 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009713/0.4873, allocations: 3.199 MB / 0.551 GB, free: 11.84 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002725/0.49, allocations: 0.9048 MB / 0.5519 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01201/0.502, allocations: 8.408 MB / 0.5601 GB, free: 2.512 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008832/0.5109, allocations: 6.434 MB / 0.5664 GB, free: 12 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005358/0.5163, allocations: 2.951 MB / 0.5692 GB, free: 9.039 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006315/0.5226, allocations: 3.984 MB / 0.5731 GB, free: 5.043 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002365/0.525, allocations: 0.625 MB / 0.5737 GB, free: 4.418 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004544/0.5296, allocations: 1.459 MB / 0.5752 GB, free: 2.957 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007506/0.5371, allocations: 3.709 MB / 0.5788 GB, free: 15.24 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01003/0.5472, allocations: 4.287 MB / 0.583 GB, free: 10.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01757/0.5648, allocations: 13.64 MB / 0.5963 GB, free: 13.24 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.5649, allocations: 0 / 0.5963 GB, free: 13.24 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.5649, allocations: 0 / 0.5963 GB, free: 13.24 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005437/0.5654, allocations: 0 / 0.5963 GB, free: 13.24 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.02422/0.5897, allocations: 8.826 MB / 0.6049 GB, free: 4.328 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.814e-05/0.5897, allocations: 8.031 kB / 0.6049 GB, free: 4.32 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02226/0.612, allocations: 5.433 MB / 0.6102 GB, free: 14.87 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01365/0.6257, allocations: 4.988 MB / 0.6151 GB, free: 9.82 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004994/0.6262, allocations: 443.6 kB / 0.6155 GB, free: 9.387 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002712/0.629, allocations: 0.5817 MB / 0.6161 GB, free: 8.805 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04217/0.6711, allocations: 20.03 MB / 0.6356 GB, free: 3.746 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005222/0.6717, allocations: 71.31 kB / 0.6357 GB, free: 3.676 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003122/0.6749, allocations: 275.7 kB / 0.636 GB, free: 3.406 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007798/0.6827, allocations: 4.235 MB / 0.6401 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03876/0.7215, allocations: 17.8 MB / 0.6575 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4809/1.202, allocations: 73.57 MB / 0.7293 GB, free: 122.6 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01684/1.219, allocations: 7.931 MB / 0.7371 GB, free: 121.4 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006602/1.226, allocations: 5.18 MB / 0.7421 GB, free: 120.2 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002106/1.226, allocations: 63.02 kB / 0.7422 GB, free: 120.1 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.716e-05/1.226, allocations: 75.09 kB / 0.7423 GB, free: 120.1 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=429): time 7.163e-06/1.226, allocations: 3.562 kB / 0.7423 GB, free: 120.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=476): time 0.09682/1.323, allocations: 41.76 MB / 0.7831 GB, free: 96.12 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/1.323, allocations: 230.4 kB / 0.7833 GB, free: 95.86 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008738/1.332, allocations: 6.402 MB / 0.7895 GB, free: 89.45 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001142/1.333, allocations: 85.7 kB / 0.7896 GB, free: 89.36 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002914/1.336, allocations: 5.528 MB / 0.795 GB, free: 83.84 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002283/1.338, allocations: 1.74 MB / 0.7967 GB, free: 82.11 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00318/1.342, allocations: 2.255 MB / 0.7989 GB, free: 79.85 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.055e-05/1.342, allocations: 301.1 kB / 0.7992 GB, free: 79.55 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00625/1.348, allocations: 5.031 MB / 0.8041 GB, free: 74.52 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009498/1.357, allocations: 11.12 MB / 0.815 GB, free: 60.62 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01688/1.374, allocations: 17.45 MB / 0.832 GB, free: 40.38 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001625/1.375, allocations: 60 kB / 0.8321 GB, free: 40.32 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.02883/1.403, allocations: 17.89 MB / 0.8495 GB, free: 22.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001618/1.404, allocations: 96 kB / 0.8496 GB, free: 22.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002248/1.404, allocations: 212 kB / 0.8498 GB, free: 22.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005951/1.41, allocations: 2.341 MB / 0.8521 GB, free: 19.75 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008452/1.418, allocations: 2.569 MB / 0.8546 GB, free: 17.17 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01679/1.435, allocations: 17.42 MB / 0.8716 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00904/1.444, allocations: 0.6593 MB / 0.8723 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001792/1.446, allocations: 0.621 MB / 0.8729 GB, free: 13.93 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 958 * Number of states: 0 () * Number of discrete variables: 53 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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.groundColor[3],world.groundColor[2],world.groundColor[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 (1362): * Single equations (assignments): 1349 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (3,40,77.8%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007336/1.453, allocations: 4.109 MB / 0.8769 GB, free: 9.812 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001214/1.455, allocations: 0.59 MB / 0.8775 GB, free: 9.215 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01812/1.473, allocations: 10.2 MB / 0.8874 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001295/1.473, allocations: 19.92 kB / 0.8875 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/1.473, allocations: 3.188 kB / 0.8875 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002415/1.475, allocations: 0.6103 MB / 0.8881 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001855/1.477, allocations: 67.98 kB / 0.8881 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003492/1.481, allocations: 303.1 kB / 0.8884 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009833/1.482, allocations: 286.3 kB / 0.8887 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01985/1.502, allocations: 10.14 MB / 0.8986 GB, free: 3.559 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.02002/1.522, allocations: 14.14 MB / 0.9124 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.006165/1.528, allocations: 3.947 MB / 0.9162 GB, free: 1.402 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.008827/1.537, allocations: 3.972 MB / 0.9201 GB, free: 13.44 MB / 0.6231 GB Notification: Performance of Backend: time 1.032e-06/1.537, allocations: 0 / 0.9201 GB, free: 13.44 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.02232/1.559, allocations: 9.082 MB / 0.929 GB, free: 4.379 MB / 0.6231 GB Notification: Performance of SimCode: time 0.03454/1.594, allocations: 17.38 MB / 0.946 GB, free: 2.973 MB / 0.6387 GB Notification: Performance of Templates: time 0.4763/2.07, allocations: 94.06 MB / 1.038 GB, free: 197.3 MB / 0.6544 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches