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.001459/0.001459, allocations: 116.3 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001584/0.001584, allocations: 210 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 247.6 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.2195/0.2195, allocations: 46.1 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 75.88 kB / 482 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.3438, allocations: 62.43 MB / 0.5317 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.02116/0.365, allocations: 18.59 MB / 0.5498 GB, free: 15 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01294/0.378, allocations: 5.309 MB / 0.555 GB, free: 9.73 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004204/0.3823, allocations: 115.7 kB / 0.5551 GB, free: 9.617 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009326/0.3917, allocations: 4.77 MB / 0.5598 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00954/0.4012, allocations: 3.042 MB / 0.5627 GB, free: 1.781 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003146/0.4044, allocations: 0.9087 MB / 0.5636 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01368/0.4181, allocations: 8.42 MB / 0.5718 GB, free: 8.434 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00916/0.4273, allocations: 6.414 MB / 0.5781 GB, free: 1.945 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005987/0.4334, allocations: 2.92 MB / 0.581 GB, free: 15.02 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007039/0.4405, allocations: 3.956 MB / 0.5848 GB, free: 11.05 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002224/0.4427, allocations: 0.6211 MB / 0.5854 GB, free: 10.43 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003779/0.4465, allocations: 1.452 MB / 0.5868 GB, free: 8.973 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004828/0.4514, allocations: 3.643 MB / 0.5904 GB, free: 5.32 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006889/0.4583, allocations: 4.217 MB / 0.5945 GB, free: 1.078 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01698/0.4753, allocations: 13.43 MB / 0.6076 GB, free: 3.594 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.4754, allocations: 0 / 0.6076 GB, free: 3.594 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4754, allocations: 0 / 0.6076 GB, free: 3.594 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005044/0.4759, allocations: 0 / 0.6076 GB, free: 3.594 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.02115/0.4971, allocations: 8.748 MB / 0.6162 GB, free: 10.76 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.4971, allocations: 8.031 kB / 0.6162 GB, free: 10.75 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02287/0.52, allocations: 5.429 MB / 0.6215 GB, free: 5.305 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01376/0.5338, allocations: 4.914 MB / 0.6263 GB, free: 340 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004392/0.5343, allocations: 443.6 kB / 0.6267 GB, free: 15.89 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002705/0.537, allocations: 0.5777 MB / 0.6273 GB, free: 15.32 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04255/0.5796, allocations: 19.83 MB / 0.6466 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004215/0.5801, allocations: 71.41 kB / 0.6467 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002824/0.5829, allocations: 279.7 kB / 0.647 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007068/0.59, allocations: 4.165 MB / 0.651 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03914/0.6292, allocations: 17.64 MB / 0.6683 GB, free: 4.277 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7354/1.365, allocations: 73.18 MB / 0.7397 GB, free: 115.7 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01661/1.381, allocations: 7.923 MB / 0.7475 GB, free: 114.3 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006052/1.387, allocations: 5.181 MB / 0.7525 GB, free: 112.2 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000286/1.388, allocations: 62.52 kB / 0.7526 GB, free: 112.2 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.775e-05/1.388, allocations: 74.33 kB / 0.7527 GB, free: 112.1 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=429): time 7.294e-06/1.388, allocations: 0 / 0.7527 GB, free: 112.1 MB / 0.5607 GB Notification: Performance of matching and sorting (n=476): time 0.0956/1.483, allocations: 41.74 MB / 0.7934 GB, free: 82.59 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/1.484, allocations: 222.8 kB / 0.7936 GB, free: 82.33 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007833/1.491, allocations: 6.382 MB / 0.7999 GB, free: 75.94 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001099/1.493, allocations: 89.14 kB / 0.8 GB, free: 75.85 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002793/1.495, allocations: 5.478 MB / 0.8053 GB, free: 70.38 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002114/1.497, allocations: 1.744 MB / 0.807 GB, free: 68.64 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003102/1.501, allocations: 2.249 MB / 0.8092 GB, free: 66.39 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.902e-05/1.501, allocations: 309 kB / 0.8095 GB, free: 66.08 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006478/1.507, allocations: 5.027 MB / 0.8144 GB, free: 61.05 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01111/1.518, allocations: 11.08 MB / 0.8252 GB, free: 47.13 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01919/1.538, allocations: 17.43 MB / 0.8422 GB, free: 26.83 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003719/1.538, allocations: 63.94 kB / 0.8423 GB, free: 26.77 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1483) (initialization): time 0.03514/1.573, allocations: 17.86 MB / 0.8597 GB, free: 8.883 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003057/1.573, allocations: 99.98 kB / 0.8598 GB, free: 8.785 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004632/1.574, allocations: 208 kB / 0.86 GB, free: 8.582 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006403/1.58, allocations: 2.353 MB / 0.8623 GB, free: 6.219 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0089/1.589, allocations: 2.558 MB / 0.8648 GB, free: 3.656 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02252/1.612, allocations: 17.41 MB / 0.8818 GB, free: 1.703 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008959/1.621, allocations: 0.6515 MB / 0.8825 GB, free: 1.051 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002291/1.623, allocations: 0.6244 MB / 0.8831 GB, free: 440 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.008845/1.632, allocations: 4.074 MB / 0.8871 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002126/1.634, allocations: 0.5988 MB / 0.8876 GB, free: 11.74 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02127/1.655, allocations: 10.2 MB / 0.8976 GB, free: 1.477 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001634/1.656, allocations: 91.42 kB / 0.8977 GB, free: 1.391 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-05/1.656, allocations: 8 kB / 0.8977 GB, free: 1.383 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001033/1.656, allocations: 19.92 kB / 0.8977 GB, free: 1.363 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05578/1.712, allocations: 21.84 MB / 0.919 GB, free: 11.38 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-05/1.712, allocations: 9 kB / 0.9191 GB, free: 11.38 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00415/1.716, allocations: 0.7488 MB / 0.9198 GB, free: 10.62 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006275/1.722, allocations: 2.029 MB / 0.9218 GB, free: 8.582 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001089/1.723, allocations: 87.58 kB / 0.9219 GB, free: 8.5 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02156/1.745, allocations: 16.18 MB / 0.9377 GB, free: 7.762 MB / 0.6388 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.41e-05/1.745, allocations: 15.94 kB / 0.9377 GB, free: 7.746 MB / 0.6388 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02964/1.775, allocations: 16.1 MB / 0.9534 GB, free: 7.406 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002173/1.777, allocations: 0.6259 MB / 0.954 GB, free: 6.754 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00226/1.779, allocations: 83.98 kB / 0.9541 GB, free: 6.672 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00486/1.784, allocations: 311.5 kB / 0.9544 GB, free: 6.367 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001673/1.786, allocations: 282 kB / 0.9546 GB, free: 6.09 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000934/1.787, allocations: 131.4 kB / 0.9548 GB, free: 5.965 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.008665/1.795, allocations: 3.971 MB / 0.9586 GB, free: 2 MB / 0.6544 GB Notification: Performance of sort global known variables: time 3.91e-07/1.795, allocations: 0 / 0.9586 GB, free: 2 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01313/1.809, allocations: 2.006 MB / 0.9606 GB, free: 0 / 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.001654/1.81, allocations: 246.4 kB / 0.9608 GB, free: 15.76 MB / 0.6701 GB Notification: Performance of simCode: created initialization part: time 0.02302/1.833, allocations: 12.34 MB / 0.9729 GB, free: 3.41 MB / 0.6701 GB Notification: Performance of simCode: created event and clocks part: time 1.67e-05/1.833, allocations: 0 / 0.9729 GB, free: 3.41 MB / 0.6701 GB Notification: Performance of simCode: created simulation system equations: time 0.3465/2.18, allocations: 4.936 MB / 0.9777 GB, free: 250.6 MB / 0.6701 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007815/2.188, allocations: 0.7775 MB / 0.9785 GB, free: 250.5 MB / 0.6701 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04561/2.233, allocations: 20.88 MB / 0.9989 GB, free: 243.9 MB / 0.6701 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01292/2.246, allocations: 5.901 MB / 1.005 GB, free: 241.9 MB / 0.6701 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00313/2.25, allocations: 0.512 MB / 1.005 GB, free: 241.9 MB / 0.6701 GB Notification: Performance of SimCode: time 2.154e-06/2.25, allocations: 3.312 kB / 1.005 GB, free: 241.9 MB / 0.6701 GB Notification: Performance of Templates: time 0.692/2.942, allocations: 266 MB / 1.265 GB, free: 215.8 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/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