Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009494/0.0009494, allocations: 103 kB / 17.01 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001159/0.001159, allocations: 197.2 kB / 17.9 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.562/1.562, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2298/0.2298, allocations: 46.19 MB / 344.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003561/0.0003563, allocations: 8 kB / 418.8 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1534, allocations: 63.57 MB / 482.4 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.4086/0.562, allocations: 70.25 MB / 0.5397 GB, free: 4.242 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04749/0.6096, allocations: 14.33 MB / 0.5537 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02127/0.6309, allocations: 342.8 kB / 0.554 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01389/0.6448, allocations: 3.748 MB / 0.5577 GB, free: 7.648 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03652/0.6814, allocations: 10.81 MB / 0.5682 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006877/0.6883, allocations: 0.8035 MB / 0.569 GB, free: 14.26 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0914/0.7797, allocations: 64.51 MB / 0.632 GB, free: 13.66 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01621/0.796, allocations: 7.759 MB / 0.6396 GB, free: 5.852 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006386/0.8025, allocations: 2.343 MB / 0.6419 GB, free: 3.5 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007046/0.8095, allocations: 3.641 MB / 0.6454 GB, free: 15.85 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002311/0.8119, allocations: 276 kB / 0.6457 GB, free: 15.58 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004945/0.8169, allocations: 1.01 MB / 0.6467 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006059/0.823, allocations: 3.171 MB / 0.6498 GB, free: 11.39 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004375/0.8274, allocations: 1.563 MB / 0.6513 GB, free: 9.812 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01611/0.8435, allocations: 10.37 MB / 0.6614 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.8436, allocations: 8 kB / 0.6614 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.365e-06/0.8436, allocations: 0 / 0.6614 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0006293/0.8442, allocations: 0 / 0.6614 GB, free: 15.41 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2997 * Number of variables: 2997 Notification: Performance of Generate backend data structure: time 0.01907/0.8633, allocations: 7.204 MB / 0.6685 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.8633, allocations: 8.031 kB / 0.6685 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02005/0.8834, allocations: 5.589 MB / 0.6739 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01212/0.8956, allocations: 4.774 MB / 0.6786 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006278/0.8962, allocations: 439.2 kB / 0.679 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003165/0.8994, allocations: 0.5737 MB / 0.6796 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04321/0.9427, allocations: 19.81 MB / 0.6989 GB, free: 7.82 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003564/0.9431, allocations: 71.39 kB / 0.699 GB, free: 7.75 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002281/0.9453, allocations: 279.7 kB / 0.6993 GB, free: 7.477 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007024/0.9524, allocations: 4.168 MB / 0.7033 GB, free: 3.301 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5969/1.549, allocations: 17.59 MB / 0.7205 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1016/1.651, allocations: 73.6 MB / 0.7924 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01505/1.666, allocations: 7.934 MB / 0.8001 GB, free: 102.1 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006106/1.672, allocations: 5.175 MB / 0.8052 GB, free: 96.96 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003018/1.673, allocations: 58.23 kB / 0.8052 GB, free: 96.92 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.841e-05/1.673, allocations: 85.02 kB / 0.8053 GB, free: 96.82 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 7.634e-06/1.673, allocations: 0 / 0.8053 GB, free: 96.82 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.08906/1.762, allocations: 41.69 MB / 0.846 GB, free: 55.05 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.02e-05/1.762, allocations: 234.8 kB / 0.8463 GB, free: 54.77 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008203/1.77, allocations: 6.339 MB / 0.8525 GB, free: 48.43 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001032/1.771, allocations: 93.7 kB / 0.8525 GB, free: 48.33 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003113/1.774, allocations: 5.478 MB / 0.8579 GB, free: 42.85 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002256/1.776, allocations: 1.734 MB / 0.8596 GB, free: 41.13 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006776/1.777, allocations: 221.3 kB / 0.8598 GB, free: 40.92 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0004884/1.778, allocations: 0.7973 MB / 0.8606 GB, free: 40.11 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006529/1.784, allocations: 4.988 MB / 0.8654 GB, free: 35.12 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009602/1.794, allocations: 11.05 MB / 0.8762 GB, free: 21.14 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01014/1.804, allocations: 7.379 MB / 0.8834 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001535/1.804, allocations: 60 kB / 0.8835 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1483) (initialization): time 0.03615/1.84, allocations: 17.77 MB / 0.9009 GB, free: 11.89 MB / 0.5451 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001845/1.841, allocations: 99.12 kB / 0.9009 GB, free: 11.8 MB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003592/1.841, allocations: 208 kB / 0.9011 GB, free: 11.6 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006391/1.847, allocations: 2.382 MB / 0.9035 GB, free: 9.203 MB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009484/1.857, allocations: 2.569 MB / 0.906 GB, free: 6.629 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2877/2.145, allocations: 16.1 MB / 0.9217 GB, free: 163.7 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008316/2.153, allocations: 0.667 MB / 0.9224 GB, free: 163.5 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002683/2.156, allocations: 0.6216 MB / 0.923 GB, free: 163.4 MB / 0.5451 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 955 * Number of states: 0 () * Number of discrete variables: 53 (torque1.torqueArrow.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 (1359): * Single equations (assignments): 1346 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(3,77.8%) 40,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01006/2.166, allocations: 4.081 MB / 0.927 GB, free: 161.9 MB / 0.5451 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001872/2.168, allocations: 0.5927 MB / 0.9275 GB, free: 161.9 MB / 0.5451 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01912/2.187, allocations: 10.18 MB / 0.9375 GB, free: 158.3 MB / 0.5451 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001251/2.187, allocations: 89.34 kB / 0.9376 GB, free: 158.3 MB / 0.5451 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.953e-05/2.187, allocations: 15.3 kB / 0.9376 GB, free: 158.3 MB / 0.5451 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.516e-05/2.187, allocations: 21.61 kB / 0.9376 GB, free: 158.3 MB / 0.5451 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03763/2.225, allocations: 21.88 MB / 0.959 GB, free: 150.6 MB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.59e-05/2.225, allocations: 11.5 kB / 0.959 GB, free: 150.6 MB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003428/2.228, allocations: 0.7496 MB / 0.9597 GB, free: 150.6 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005051/2.233, allocations: 2.03 MB / 0.9617 GB, free: 150.2 MB / 0.5451 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000735/2.234, allocations: 84.98 kB / 0.9618 GB, free: 150.1 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01494/2.249, allocations: 15.02 MB / 0.9764 GB, free: 138.7 MB / 0.5451 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.478e-06/2.249, allocations: 19.31 kB / 0.9765 GB, free: 138.6 MB / 0.5451 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02016/2.269, allocations: 16.06 MB / 0.9921 GB, free: 122.7 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001899/2.271, allocations: 0.6353 MB / 0.9928 GB, free: 122.2 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001337/2.273, allocations: 81.17 kB / 0.9928 GB, free: 122.1 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002855/2.275, allocations: 321 kB / 0.9931 GB, free: 121.8 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007565/2.276, allocations: 288.4 kB / 0.9934 GB, free: 121.5 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003253/2.277, allocations: 124.8 kB / 0.9935 GB, free: 121.4 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.005896/2.282, allocations: 3.927 MB / 0.9974 GB, free: 117.4 MB / 0.5451 GB Notification: Performance of sort global known variables: time 2.11e-07/2.282, allocations: 0 / 0.9974 GB, free: 117.4 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.01039/2.293, allocations: 2 MB / 0.9993 GB, free: 115.5 MB / 0.5451 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (359): * Single equations (assignments): 346 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 37,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001128/2.294, allocations: 243.5 kB / 0.9996 GB, free: 115.2 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.01855/2.313, allocations: 12.23 MB / 1.012 GB, free: 103 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 1.383e-05/2.313, allocations: 0 / 1.012 GB, free: 103 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.006414/2.319, allocations: 4.934 MB / 1.016 GB, free: 98.06 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004735/2.324, allocations: 0.7355 MB / 1.017 GB, free: 97.34 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0298/2.354, allocations: 23.51 MB / 1.04 GB, free: 73.76 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006879/2.361, allocations: 5.907 MB / 1.046 GB, free: 67.82 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.008876/2.369, allocations: 3.983 MB / 1.05 GB, free: 63.82 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001738/2.371, allocations: 439.4 kB / 1.05 GB, free: 63.39 MB / 0.5451 GB Notification: Performance of SimCode: time 1.333e-06/2.371, allocations: 0 / 1.05 GB, free: 63.39 MB / 0.5451 GB Notification: Performance of Templates: time 0.3623/2.734, allocations: 69.84 MB / 1.118 GB, free: 181.9 MB / 0.5607 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches