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.001351/0.001351, allocations: 93.94 kB / 16.98 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001787/0.001787, allocations: 204.3 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.605/1.605, allocations: 227.2 MB / 245.9 MB, free: 12.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.24/0.24, allocations: 45.91 MB / 344 MB, free: 12.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000291/0.0002912, allocations: 8 kB / 417.9 MB, free: 20.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1458, allocations: 63.47 MB / 481.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.3371/0.483, allocations: 69.9 MB / 0.5384 GB, free: 5.082 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04116/0.5242, allocations: 15.89 MB / 0.5539 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02445/0.5487, allocations: 352.1 kB / 0.5542 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01582/0.5646, allocations: 3.587 MB / 0.5577 GB, free: 7.566 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04272/0.6074, allocations: 10.08 MB / 0.5676 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006356/0.6137, allocations: 0.7879 MB / 0.5683 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.07517/0.689, allocations: 49.8 MB / 0.617 GB, free: 12.63 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01504/0.7041, allocations: 7.73 MB / 0.6245 GB, free: 4.828 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005203/0.7093, allocations: 1.943 MB / 0.6264 GB, free: 2.879 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005111/0.7145, allocations: 2.562 MB / 0.6289 GB, free: 316 kB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002027/0.7165, allocations: 280 kB / 0.6292 GB, free: 36 kB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003813/0.7204, allocations: 0.9832 MB / 0.6301 GB, free: 15.05 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006456/0.7269, allocations: 3.004 MB / 0.6331 GB, free: 12.04 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00407/0.731, allocations: 1.598 MB / 0.6346 GB, free: 10.43 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0145/0.7455, allocations: 10.65 MB / 0.645 GB, free: 15.75 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.7455, allocations: 0 / 0.645 GB, free: 15.75 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.7456, allocations: 0 / 0.645 GB, free: 15.75 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0006593/0.7462, allocations: 0 / 0.645 GB, free: 15.75 MB / 494.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.02055/0.7668, allocations: 7.574 MB / 0.6524 GB, free: 8.09 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.7669, allocations: 12.03 kB / 0.6524 GB, free: 8.078 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05461/0.8215, allocations: 11.53 MB / 0.6637 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01396/0.8355, allocations: 4.982 MB / 0.6686 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000523/0.836, allocations: 443.2 kB / 0.669 GB, free: 7.016 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003312/0.8394, allocations: 0.5738 MB / 0.6695 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04805/0.8874, allocations: 20.04 MB / 0.6891 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000361/0.8879, allocations: 67.39 kB / 0.6892 GB, free: 1.309 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002854/0.8907, allocations: 279.7 kB / 0.6894 GB, free: 1.035 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007745/0.8985, allocations: 4.231 MB / 0.6936 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5197/1.418, allocations: 17.68 MB / 0.7108 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09963/1.518, allocations: 73.59 MB / 0.7827 GB, free: 119.4 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01588/1.534, allocations: 7.902 MB / 0.7904 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000455/1.534, allocations: 61.91 kB / 0.7905 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.335e-05/1.534, allocations: 77.03 kB / 0.7906 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 9.238e-06/1.534, allocations: 0 / 0.7906 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.1198/1.654, allocations: 41.62 MB / 0.8312 GB, free: 69.22 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.701e-05/1.654, allocations: 234.8 kB / 0.8314 GB, free: 68.95 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008849/1.663, allocations: 6.617 MB / 0.8379 GB, free: 62.33 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001131/1.664, allocations: 86.88 kB / 0.838 GB, free: 62.24 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003131/1.668, allocations: 5.575 MB / 0.8434 GB, free: 56.66 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002384/1.67, allocations: 1.734 MB / 0.8451 GB, free: 54.95 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00081/1.671, allocations: 216.6 kB / 0.8453 GB, free: 54.73 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0005763/1.671, allocations: 0.7849 MB / 0.8461 GB, free: 53.95 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006778/1.678, allocations: 4.773 MB / 0.8507 GB, free: 49.17 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.011/1.689, allocations: 10.79 MB / 0.8613 GB, free: 35.44 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01057/1.7, allocations: 7.149 MB / 0.8683 GB, free: 28.28 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001469/1.7, allocations: 60 kB / 0.8683 GB, free: 28.22 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1446) (initialization): time 0.03204/1.732, allocations: 16.81 MB / 0.8847 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003411/1.732, allocations: 96 kB / 0.8848 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004526/1.733, allocations: 208 kB / 0.885 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004905/1.738, allocations: 1.844 MB / 0.8868 GB, free: 9.227 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009068/1.747, allocations: 2.511 MB / 0.8893 GB, free: 6.711 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01904/1.766, allocations: 15.13 MB / 0.9041 GB, free: 7.051 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0102/1.776, allocations: 0.6413 MB / 0.9047 GB, free: 6.41 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002873/1.779, allocations: 0.6223 MB / 0.9053 GB, free: 5.789 MB / 0.5451 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 (1322): * Single equations (assignments): 1309 * 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,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01124/1.79, allocations: 4.09 MB / 0.9093 GB, free: 1.684 MB / 0.5451 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002577/1.793, allocations: 0.6055 MB / 0.9099 GB, free: 1.07 MB / 0.5451 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3024/2.095, allocations: 9.444 MB / 0.9191 GB, free: 171.2 MB / 0.5451 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001516/2.096, allocations: 96.25 kB / 0.9192 GB, free: 171.2 MB / 0.5451 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-05/2.096, allocations: 13.75 kB / 0.9192 GB, free: 171.2 MB / 0.5451 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001051/2.096, allocations: 20.19 kB / 0.9192 GB, free: 171.2 MB / 0.5451 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04123/2.137, allocations: 21.22 MB / 0.9399 GB, free: 163.6 MB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.143e-05/2.137, allocations: 11.69 kB / 0.94 GB, free: 163.6 MB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003538/2.141, allocations: 0.754 MB / 0.9407 GB, free: 163.5 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003905/2.145, allocations: 1.504 MB / 0.9422 GB, free: 163.2 MB / 0.5451 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006484/2.145, allocations: 89.94 kB / 0.9422 GB, free: 163.1 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01338/2.159, allocations: 14.05 MB / 0.956 GB, free: 154.3 MB / 0.5451 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/2.159, allocations: 15.72 kB / 0.956 GB, free: 154.3 MB / 0.5451 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01918/2.178, allocations: 16.9 MB / 0.9725 GB, free: 141 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001881/2.18, allocations: 0.6423 MB / 0.9731 GB, free: 140.7 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00133/2.181, allocations: 80.94 kB / 0.9732 GB, free: 140.6 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003112/2.184, allocations: 303.1 kB / 0.9735 GB, free: 140.4 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007614/2.185, allocations: 290.9 kB / 0.9738 GB, free: 140.2 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003088/2.185, allocations: 125.5 kB / 0.9739 GB, free: 140.1 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.006128/2.191, allocations: 4.15 MB / 0.9779 GB, free: 136.2 MB / 0.5451 GB Notification: Performance of sort global known variables: time 4.61e-07/2.191, allocations: 3.375 kB / 0.9779 GB, free: 136.2 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.01244/2.204, allocations: 2.003 MB / 0.9799 GB, free: 134.2 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 {(1,100.0%) 39,(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.00163/2.206, allocations: 245.7 kB / 0.9801 GB, free: 134 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.01938/2.225, allocations: 11.81 MB / 0.9917 GB, free: 122.3 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 1.492e-05/2.225, allocations: 0 / 0.9917 GB, free: 122.3 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.00739/2.232, allocations: 4.782 MB / 0.9963 GB, free: 117.5 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005151/2.238, allocations: 0.7306 MB / 0.997 GB, free: 116.8 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04206/2.28, allocations: 23.29 MB / 1.02 GB, free: 93.43 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009119/2.289, allocations: 6.12 MB / 1.026 GB, free: 87.27 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.01005/2.299, allocations: 4.011 MB / 1.03 GB, free: 83.25 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002295/2.301, allocations: 435.4 kB / 1.03 GB, free: 82.82 MB / 0.5451 GB Notification: Performance of SimCode: time 9.52e-07/2.301, allocations: 0 / 1.03 GB, free: 82.82 MB / 0.5451 GB Notification: Performance of Templates: time 0.1111/2.412, allocations: 69.14 MB / 1.098 GB, free: 13.97 MB / 0.5451 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","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches