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.0009343/0.0009341, allocations: 95.94 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009954/0.0009955, allocations: 205.9 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 227.7 MB / 246.8 MB, free: 9.785 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2306/0.2306, allocations: 46.18 MB / 345.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003992/0.0003993, allocations: 11.98 kB / 419.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1287, allocations: 63.56 MB / 483.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.3728/0.5016, allocations: 75.57 MB / 0.5456 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04858/0.5502, allocations: 14.97 MB / 0.5602 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0234/0.5736, allocations: 337.5 kB / 0.5605 GB, free: 5.422 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00331/0.577, allocations: 0.7967 MB / 0.5613 GB, free: 4.832 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009968/0.587, allocations: 2.903 MB / 0.5641 GB, free: 2.816 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002755/0.5898, allocations: 0.8322 MB / 0.5649 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01619/0.606, allocations: 12.15 MB / 0.5768 GB, free: 6.707 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01549/0.6215, allocations: 8.589 MB / 0.5852 GB, free: 14.03 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00521/0.6267, allocations: 2.163 MB / 0.5873 GB, free: 11.86 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006478/0.6333, allocations: 3.698 MB / 0.5909 GB, free: 8.145 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002011/0.6353, allocations: 280 kB / 0.5912 GB, free: 7.871 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004819/0.6401, allocations: 1.155 MB / 0.5923 GB, free: 6.715 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005222/0.6454, allocations: 3.252 MB / 0.5955 GB, free: 3.453 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008315/0.6537, allocations: 3.782 MB / 0.5992 GB, free: 15.64 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01688/0.6706, allocations: 12.42 MB / 0.6113 GB, free: 3.176 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/0.6707, allocations: 4 kB / 0.6113 GB, free: 3.172 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.6707, allocations: 0 / 0.6113 GB, free: 3.172 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000741/0.6714, allocations: 0 / 0.6113 GB, free: 3.172 MB / 446.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.023/0.6945, allocations: 7.105 MB / 0.6182 GB, free: 11.98 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/0.6945, allocations: 8.875 kB / 0.6183 GB, free: 11.97 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02275/0.7173, allocations: 5.586 MB / 0.6237 GB, free: 6.367 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01257/0.7299, allocations: 4.848 MB / 0.6284 GB, free: 1.461 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005203/0.7304, allocations: 439.5 kB / 0.6289 GB, free: 1.031 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002608/0.733, allocations: 0.578 MB / 0.6294 GB, free: 464 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04836/0.7814, allocations: 19.86 MB / 0.6488 GB, free: 11.56 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005338/0.782, allocations: 71.31 kB / 0.6489 GB, free: 11.49 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0032/0.7852, allocations: 271.7 kB / 0.6491 GB, free: 11.22 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007883/0.7931, allocations: 4.168 MB / 0.6532 GB, free: 7.051 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0425/0.8357, allocations: 17.68 MB / 0.6705 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6526/1.488, allocations: 73.62 MB / 0.7424 GB, free: 132 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0155/1.504, allocations: 7.941 MB / 0.7501 GB, free: 129.3 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006369/1.51, allocations: 5.181 MB / 0.7552 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000208/1.511, allocations: 58.89 kB / 0.7553 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.966e-05/1.511, allocations: 89.14 kB / 0.7553 GB, free: 127.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 6.513e-06/1.511, allocations: 0 / 0.7553 GB, free: 127.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.08591/1.597, allocations: 41.76 MB / 0.7961 GB, free: 100.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.079e-05/1.597, allocations: 226.8 kB / 0.7963 GB, free: 99.89 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007398/1.604, allocations: 6.385 MB / 0.8026 GB, free: 93.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009805/1.605, allocations: 91.5 kB / 0.8027 GB, free: 93.41 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002604/1.608, allocations: 5.473 MB / 0.808 GB, free: 87.93 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001887/1.61, allocations: 1.742 MB / 0.8097 GB, free: 86.21 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00117/1.611, allocations: 0.9623 MB / 0.8106 GB, free: 85.24 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.741e-05/1.611, allocations: 309.1 kB / 0.8109 GB, free: 84.93 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006052/1.617, allocations: 5.035 MB / 0.8159 GB, free: 79.89 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008889/1.626, allocations: 11.08 MB / 0.8267 GB, free: 65.91 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01715/1.643, allocations: 17.44 MB / 0.8437 GB, free: 45.51 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001918/1.643, allocations: 60 kB / 0.8438 GB, free: 45.45 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1483) (initialization): time 0.03465/1.678, allocations: 17.87 MB / 0.8612 GB, free: 27.55 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001205/1.678, allocations: 92 kB / 0.8613 GB, free: 27.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001974/1.678, allocations: 208 kB / 0.8615 GB, free: 27.26 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005503/1.684, allocations: 2.351 MB / 0.8638 GB, free: 24.89 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008369/1.692, allocations: 2.569 MB / 0.8663 GB, free: 22.32 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01572/1.708, allocations: 16.13 MB / 0.8821 GB, free: 5.668 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009053/1.717, allocations: 0.6725 MB / 0.8827 GB, free: 4.996 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002516/1.72, allocations: 0.6224 MB / 0.8833 GB, free: 4.375 MB / 0.5294 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.009502/1.729, allocations: 4.072 MB / 0.8873 GB, free: 296 kB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001508/1.731, allocations: 0.5929 MB / 0.8879 GB, free: 15.69 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01929/1.75, allocations: 10.22 MB / 0.8979 GB, free: 5.41 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001542/1.75, allocations: 84.92 kB / 0.8979 GB, free: 5.328 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.96e-05/1.75, allocations: 12 kB / 0.898 GB, free: 5.316 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.35e-05/1.75, allocations: 20.95 kB / 0.898 GB, free: 5.297 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3618/2.112, allocations: 21.93 MB / 0.9194 GB, free: 183.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.736e-05/2.112, allocations: 12.94 kB / 0.9194 GB, free: 183.5 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004874/2.117, allocations: 0.743 MB / 0.9201 GB, free: 183.5 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006854/2.124, allocations: 2.029 MB / 0.9221 GB, free: 183.5 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001314/2.125, allocations: 86.11 kB / 0.9222 GB, free: 183.5 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01989/2.145, allocations: 15.04 MB / 0.9369 GB, free: 176.9 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.589e-05/2.145, allocations: 23.55 kB / 0.9369 GB, free: 176.9 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02304/2.168, allocations: 16.11 MB / 0.9526 GB, free: 170.8 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001828/2.17, allocations: 0.6369 MB / 0.9533 GB, free: 170.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001177/2.171, allocations: 76.38 kB / 0.9533 GB, free: 170.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002947/2.174, allocations: 322.3 kB / 0.9536 GB, free: 170.6 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008539/2.175, allocations: 288.7 kB / 0.9539 GB, free: 170.5 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003081/2.175, allocations: 128 kB / 0.954 GB, free: 170.5 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.008071/2.184, allocations: 3.974 MB / 0.9579 GB, free: 169.2 MB / 0.5607 GB Notification: Performance of sort global known variables: time 3.51e-07/2.184, allocations: 0 / 0.9579 GB, free: 169.2 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01194/2.196, allocations: 2.003 MB / 0.9599 GB, free: 168.9 MB / 0.5607 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.001429/2.197, allocations: 232.6 kB / 0.9601 GB, free: 168.8 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01729/2.214, allocations: 12.3 MB / 0.9721 GB, free: 163.5 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/2.214, allocations: 0 / 0.9721 GB, free: 163.5 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.006639/2.221, allocations: 4.947 MB / 0.9769 GB, free: 159.1 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01573/2.237, allocations: 0.7396 MB / 0.9777 GB, free: 158.5 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04592/2.283, allocations: 24.36 MB / 1.001 GB, free: 135 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01065/2.293, allocations: 5.911 MB / 1.007 GB, free: 129 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.0103/2.304, allocations: 3.983 MB / 1.011 GB, free: 125.1 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002541/2.306, allocations: 435.4 kB / 1.012 GB, free: 124.6 MB / 0.5607 GB Notification: Performance of SimCode: time 1.653e-06/2.306, allocations: 3.938 kB / 1.012 GB, free: 124.6 MB / 0.5607 GB Notification: Performance of Templates: time 0.1219/2.428, allocations: 71.35 MB / 1.081 GB, free: 53.54 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