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.001572/0.001572, allocations: 121.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002703/0.002703, allocations: 199.9 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2438/0.2438, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 80.2 kB / 481.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4584/0.4598, allocations: 62.44 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.02143/0.4812, allocations: 18.58 MB / 0.5492 GB, free: 15 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0152/0.4965, allocations: 5.307 MB / 0.5543 GB, free: 9.762 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005435/0.5019, allocations: 119.7 kB / 0.5544 GB, free: 9.645 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01016/0.5121, allocations: 4.766 MB / 0.5591 GB, free: 4.863 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01173/0.5239, allocations: 3.132 MB / 0.5622 GB, free: 1.719 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003338/0.5273, allocations: 0.9126 MB / 0.5631 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.014/0.5413, allocations: 8.416 MB / 0.5713 GB, free: 8.375 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0128/0.5542, allocations: 6.411 MB / 0.5775 GB, free: 1.891 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006292/0.5605, allocations: 2.928 MB / 0.5804 GB, free: 14.95 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006727/0.5673, allocations: 3.952 MB / 0.5843 GB, free: 10.99 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002895/0.5702, allocations: 0.6211 MB / 0.5849 GB, free: 10.37 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005668/0.5759, allocations: 1.448 MB / 0.5863 GB, free: 8.918 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006415/0.5823, allocations: 3.639 MB / 0.5898 GB, free: 5.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0112/0.5936, allocations: 4.217 MB / 0.5939 GB, free: 1.027 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0229/0.6165, allocations: 13.44 MB / 0.6071 GB, free: 3.535 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.819e-06/0.6166, allocations: 4 kB / 0.6071 GB, free: 3.531 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.6166, allocations: 4 kB / 0.6071 GB, free: 3.527 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006101/0.6172, allocations: 0 / 0.6071 GB, free: 3.527 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: 2997 * Number of variables: 2997 Notification: Performance of Generate backend data structure: time 0.02625/0.6435, allocations: 8.732 MB / 0.6156 GB, free: 10.71 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/0.6435, allocations: 8.031 kB / 0.6156 GB, free: 10.7 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02296/0.6665, allocations: 5.433 MB / 0.6209 GB, free: 5.246 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01312/0.6797, allocations: 4.914 MB / 0.6257 GB, free: 280 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007627/0.6805, allocations: 443.6 kB / 0.6261 GB, free: 15.84 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003166/0.6837, allocations: 0.5739 MB / 0.6267 GB, free: 15.26 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04489/0.7286, allocations: 19.84 MB / 0.6461 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004775/0.7291, allocations: 71.39 kB / 0.6461 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003643/0.7328, allocations: 275.7 kB / 0.6464 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008071/0.7409, allocations: 4.161 MB / 0.6505 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04018/0.7811, allocations: 17.66 MB / 0.6677 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7296/1.511, allocations: 73.17 MB / 0.7392 GB, free: 115.6 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0155/1.526, allocations: 7.932 MB / 0.7469 GB, free: 114.3 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006658/1.533, allocations: 5.184 MB / 0.752 GB, free: 112.2 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003031/1.533, allocations: 57.44 kB / 0.752 GB, free: 112.2 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.346e-05/1.533, allocations: 78.16 kB / 0.7521 GB, free: 112.1 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=429): time 7.664e-06/1.533, allocations: 0 / 0.7521 GB, free: 112.1 MB / 0.5607 GB Notification: Performance of matching and sorting (n=476): time 0.08905/1.622, allocations: 41.73 MB / 0.7928 GB, free: 82.61 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.828e-05/1.623, allocations: 226.8 kB / 0.7931 GB, free: 82.35 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007466/1.63, allocations: 6.378 MB / 0.7993 GB, free: 75.96 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0009916/1.631, allocations: 85.7 kB / 0.7994 GB, free: 75.87 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.00255/1.634, allocations: 5.485 MB / 0.8047 GB, free: 70.39 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001969/1.636, allocations: 1.742 MB / 0.8064 GB, free: 68.66 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002908/1.639, allocations: 2.252 MB / 0.8086 GB, free: 66.4 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 6.086e-05/1.639, allocations: 309.1 kB / 0.8089 GB, free: 66.1 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005948/1.645, allocations: 5.023 MB / 0.8138 GB, free: 61.07 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01245/1.657, allocations: 11.09 MB / 0.8247 GB, free: 47.15 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02026/1.677, allocations: 17.43 MB / 0.8417 GB, free: 26.85 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002408/1.678, allocations: 64 kB / 0.8417 GB, free: 26.79 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1483) (initialization): time 0.03179/1.709, allocations: 17.86 MB / 0.8592 GB, free: 8.898 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003352/1.71, allocations: 96 kB / 0.8593 GB, free: 8.805 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004128/1.71, allocations: 208 kB / 0.8595 GB, free: 8.602 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00629/1.717, allocations: 2.35 MB / 0.8618 GB, free: 6.238 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008941/1.726, allocations: 2.562 MB / 0.8643 GB, free: 3.672 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02267/1.748, allocations: 17.41 MB / 0.8813 GB, free: 1.727 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009193/1.758, allocations: 0.6585 MB / 0.8819 GB, free: 1.07 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002606/1.76, allocations: 0.621 MB / 0.8825 GB, free: 460 kB / 0.5763 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 (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.01167/1.772, allocations: 4.08 MB / 0.8865 GB, free: 12.36 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002344/1.774, allocations: 0.5939 MB / 0.8871 GB, free: 11.76 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02287/1.797, allocations: 10.2 MB / 0.897 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001508/1.797, allocations: 91.97 kB / 0.8971 GB, free: 1.41 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.993e-05/1.797, allocations: 8 kB / 0.8971 GB, free: 1.402 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001108/1.797, allocations: 19.92 kB / 0.8972 GB, free: 1.383 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05761/1.855, allocations: 21.84 MB / 0.9185 GB, free: 11.41 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.499e-05/1.855, allocations: 12.03 kB / 0.9185 GB, free: 11.39 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004202/1.859, allocations: 0.7371 MB / 0.9192 GB, free: 10.66 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00631/1.866, allocations: 2.029 MB / 0.9212 GB, free: 8.613 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001283/1.867, allocations: 87.98 kB / 0.9213 GB, free: 8.527 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02173/1.889, allocations: 16.19 MB / 0.9371 GB, free: 7.781 MB / 0.6388 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-05/1.889, allocations: 15.94 kB / 0.9371 GB, free: 7.766 MB / 0.6388 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03178/1.921, allocations: 16.09 MB / 0.9528 GB, free: 7.434 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00243/1.923, allocations: 0.6259 MB / 0.9534 GB, free: 6.781 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003083/1.926, allocations: 79.44 kB / 0.9535 GB, free: 6.707 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004968/1.931, allocations: 311.5 kB / 0.9538 GB, free: 6.402 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001828/1.933, allocations: 293.9 kB / 0.9541 GB, free: 6.113 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001052/1.934, allocations: 123.3 kB / 0.9542 GB, free: 5.996 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.009694/1.944, allocations: 3.975 MB / 0.9581 GB, free: 2.027 MB / 0.6544 GB Notification: Performance of sort global known variables: time 7.01e-07/1.944, allocations: 0 / 0.9581 GB, free: 2.027 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01208/1.956, allocations: 1.999 MB / 0.96 GB, free: 32 kB / 0.6544 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 (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 {(3,37,77.8%), (1,2,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001408/1.958, allocations: 244.1 kB / 0.9603 GB, free: 15.79 MB / 0.6701 GB Notification: Performance of simCode: created initialization part: time 0.02294/1.98, allocations: 12.35 MB / 0.9723 GB, free: 3.434 MB / 0.6701 GB Notification: Performance of simCode: created event and clocks part: time 1.777e-05/1.981, allocations: 0 / 0.9723 GB, free: 3.434 MB / 0.6701 GB Notification: Performance of simCode: created simulation system equations: time 0.3107/2.291, allocations: 4.925 MB / 0.9771 GB, free: 250.5 MB / 0.6701 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006591/2.298, allocations: 0.782 MB / 0.9779 GB, free: 250.4 MB / 0.6701 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04077/2.339, allocations: 20.02 MB / 0.9975 GB, free: 244.3 MB / 0.6701 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0127/2.351, allocations: 5.911 MB / 1.003 GB, free: 242.4 MB / 0.6701 GB Notification: Performance of simCode: alias equations: time 0.009995/2.361, allocations: 3.994 MB / 1.007 GB, free: 242.2 MB / 0.6701 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002181/2.364, allocations: 435.3 kB / 1.008 GB, free: 242.2 MB / 0.6701 GB Notification: Performance of SimCode: time 1.122e-06/2.364, allocations: 4 kB / 1.008 GB, free: 242.2 MB / 0.6701 GB Notification: Performance of Templates: time 0.1187/2.482, allocations: 70.83 MB / 1.077 GB, free: 173.3 MB / 0.6701 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