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.001712/0.001712, allocations: 109.6 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001837/0.001837, allocations: 212 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.608/1.608, allocations: 227.4 MB / 247.4 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2239/0.2239, allocations: 46.09 MB / 344.8 MB, free: 11.65 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 76.72 kB / 418.2 MB, free: 19.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1219, allocations: 62.44 MB / 480.7 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.01875/0.1407, allocations: 18.58 MB / 499.3 MB, free: 2.668 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01124/0.152, allocations: 5.307 MB / 0.4928 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003335/0.1554, allocations: 119.7 kB / 0.4929 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008776/0.1642, allocations: 4.762 MB / 0.4975 GB, free: 8.449 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007833/0.1721, allocations: 3.046 MB / 0.5005 GB, free: 5.391 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002464/0.1746, allocations: 0.9048 MB / 0.5014 GB, free: 4.484 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2659/0.4405, allocations: 8.405 MB / 0.5096 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0105/0.4511, allocations: 6.422 MB / 0.5159 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007255/0.4583, allocations: 2.919 MB / 0.5187 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007868/0.4662, allocations: 3.951 MB / 0.5226 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002944/0.4692, allocations: 0.6206 MB / 0.5232 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004975/0.4742, allocations: 1.446 MB / 0.5246 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005459/0.4797, allocations: 3.618 MB / 0.5281 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007992/0.4877, allocations: 4.212 MB / 0.5322 GB, free: 7.336 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01477/0.5025, allocations: 12.96 MB / 0.5449 GB, free: 15.96 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.5025, allocations: 4 kB / 0.5449 GB, free: 15.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.5025, allocations: 0 / 0.5449 GB, free: 15.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000566/0.5031, allocations: 0 / 0.5449 GB, free: 15.96 MB / 398.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.02339/0.5265, allocations: 8.728 MB / 0.5534 GB, free: 7.676 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.5266, allocations: 16.03 kB / 0.5534 GB, free: 7.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02386/0.5505, allocations: 5.43 MB / 0.5587 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01359/0.5641, allocations: 4.852 MB / 0.5635 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005849/0.5647, allocations: 434.5 kB / 0.5639 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003553/0.5683, allocations: 0.5695 MB / 0.5644 GB, free: 12.78 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04422/0.6126, allocations: 19.85 MB / 0.5838 GB, free: 8.254 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004908/0.6131, allocations: 73.8 kB / 0.5839 GB, free: 8.211 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002758/0.6159, allocations: 272.5 kB / 0.5841 GB, free: 8.02 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007567/0.6235, allocations: 4.173 MB / 0.5882 GB, free: 3.898 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03794/0.6614, allocations: 17.65 MB / 0.6055 GB, free: 2.512 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1115/0.773, allocations: 73.55 MB / 0.6773 GB, free: 7.938 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01796/0.791, allocations: 7.918 MB / 0.685 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007601/0.7987, allocations: 5.188 MB / 0.6901 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003984/0.7991, allocations: 63.09 kB / 0.6901 GB, free: 10.53 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.87e-05/0.7992, allocations: 73.03 kB / 0.6902 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 9.127e-06/0.7992, allocations: 0 / 0.6902 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.3618/1.161, allocations: 41.72 MB / 0.731 GB, free: 177.8 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/1.161, allocations: 233.5 kB / 0.7312 GB, free: 177.6 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01182/1.173, allocations: 6.38 MB / 0.7374 GB, free: 175.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001207/1.174, allocations: 91.45 kB / 0.7375 GB, free: 175.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00382/1.178, allocations: 5.485 MB / 0.7429 GB, free: 171 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002488/1.181, allocations: 1.738 MB / 0.7446 GB, free: 169.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003622/1.184, allocations: 2.245 MB / 0.7467 GB, free: 168.7 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.342e-05/1.184, allocations: 302.4 kB / 0.747 GB, free: 168.4 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007195/1.191, allocations: 5.028 MB / 0.7519 GB, free: 166.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01005/1.202, allocations: 11.09 MB / 0.7628 GB, free: 157 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01769/1.219, allocations: 17.42 MB / 0.7798 GB, free: 143.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002316/1.22, allocations: 62.81 kB / 0.7798 GB, free: 143.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1483) (initialization): time 0.03376/1.253, allocations: 17.87 MB / 0.7973 GB, free: 130.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002923/1.254, allocations: 96 kB / 0.7974 GB, free: 130.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004066/1.254, allocations: 208 kB / 0.7976 GB, free: 130.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005826/1.26, allocations: 2.352 MB / 0.7999 GB, free: 128.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008251/1.268, allocations: 2.562 MB / 0.8024 GB, free: 125.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0172/1.285, allocations: 17.43 MB / 0.8194 GB, free: 107.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009441/1.295, allocations: 0.6514 MB / 0.82 GB, free: 107.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002246/1.297, allocations: 0.6249 MB / 0.8207 GB, free: 106.4 MB / 0.545 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.009367/1.307, allocations: 4.069 MB / 0.8246 GB, free: 102.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00235/1.309, allocations: 0.5925 MB / 0.8252 GB, free: 101.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01758/1.327, allocations: 10.2 MB / 0.8352 GB, free: 91.49 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001071/1.327, allocations: 87.98 kB / 0.8353 GB, free: 91.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.346e-05/1.327, allocations: 9.312 kB / 0.8353 GB, free: 91.39 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.295e-05/1.327, allocations: 27.86 kB / 0.8353 GB, free: 91.37 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04091/1.368, allocations: 21.92 MB / 0.8567 GB, free: 69.28 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-05/1.368, allocations: 8 kB / 0.8567 GB, free: 69.27 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003601/1.371, allocations: 0.7339 MB / 0.8574 GB, free: 68.54 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005215/1.377, allocations: 2.041 MB / 0.8594 GB, free: 66.48 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009368/1.378, allocations: 89.78 kB / 0.8595 GB, free: 66.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0155/1.393, allocations: 16.2 MB / 0.8753 GB, free: 49.65 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.189e-05/1.393, allocations: 15.94 kB / 0.8753 GB, free: 49.63 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02406/1.417, allocations: 16.1 MB / 0.891 GB, free: 33.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001932/1.419, allocations: 0.626 MB / 0.8917 GB, free: 32.64 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002128/1.421, allocations: 82.17 kB / 0.8917 GB, free: 32.57 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004369/1.426, allocations: 309.3 kB / 0.892 GB, free: 32.27 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001167/1.427, allocations: 285.9 kB / 0.8923 GB, free: 31.98 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006764/1.428, allocations: 127.5 kB / 0.8924 GB, free: 31.86 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007491/1.435, allocations: 3.983 MB / 0.8963 GB, free: 27.89 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.01e-07/1.435, allocations: 0 / 0.8963 GB, free: 27.89 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01186/1.447, allocations: 2.003 MB / 0.8983 GB, free: 25.89 MB / 0.545 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.001386/1.448, allocations: 241.7 kB / 0.8985 GB, free: 25.65 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2663/1.715, allocations: 21.92 MB / 0.9199 GB, free: 171.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.57e-05/1.715, allocations: 2.125 kB / 0.9199 GB, free: 171.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008773/1.724, allocations: 4.936 MB / 0.9247 GB, free: 170.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007206/1.731, allocations: 0.7763 MB / 0.9255 GB, free: 170.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04264/1.774, allocations: 21.09 MB / 0.9461 GB, free: 161.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01132/1.785, allocations: 5.893 MB / 0.9518 GB, free: 159.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003163/1.788, allocations: 0.5124 MB / 0.9523 GB, free: 159.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.462e-06/1.788, allocations: 0 / 0.9523 GB, free: 159.2 MB / 0.545 GB Notification: Performance of Templates: time 0.5341/2.322, allocations: 263.6 MB / 1.21 GB, free: 119.7 MB / 0.5606 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/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_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches