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.001341/0.001341, allocations: 118.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001551/0.001551, allocations: 197.2 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.511/1.511, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2325/0.2325, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 75.89 kB / 481.3 MB, free: 4.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4639/0.4654, allocations: 62.43 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.02135/0.4868, allocations: 18.57 MB / 0.5491 GB, free: 15.01 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0144/0.5012, allocations: 5.314 MB / 0.5543 GB, free: 9.754 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00621/0.5075, allocations: 119.7 kB / 0.5544 GB, free: 9.637 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009943/0.5175, allocations: 4.77 MB / 0.5591 GB, free: 4.852 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01182/0.5294, allocations: 3.039 MB / 0.5621 GB, free: 1.801 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00412/0.5336, allocations: 0.9126 MB / 0.563 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01694/0.5505, allocations: 8.422 MB / 0.5712 GB, free: 8.453 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0143/0.5649, allocations: 6.414 MB / 0.5775 GB, free: 1.965 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007321/0.5723, allocations: 2.916 MB / 0.5803 GB, free: 15.04 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007637/0.5799, allocations: 3.956 MB / 0.5842 GB, free: 11.07 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003645/0.5836, allocations: 0.6211 MB / 0.5848 GB, free: 10.45 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005157/0.5888, allocations: 1.452 MB / 0.5862 GB, free: 8.996 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006884/0.5958, allocations: 3.643 MB / 0.5897 GB, free: 5.344 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008787/0.6046, allocations: 4.213 MB / 0.5939 GB, free: 1.105 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01972/0.6243, allocations: 13.44 MB / 0.607 GB, free: 3.613 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.238e-06/0.6244, allocations: 7.938 kB / 0.607 GB, free: 3.605 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.6244, allocations: 0 / 0.607 GB, free: 3.605 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006607/0.6251, allocations: 0 / 0.607 GB, free: 3.605 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.03204/0.6572, allocations: 8.728 MB / 0.6155 GB, free: 10.79 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.6572, allocations: 16.03 kB / 0.6155 GB, free: 10.78 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02286/0.6801, allocations: 5.429 MB / 0.6208 GB, free: 5.328 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0126/0.6928, allocations: 4.914 MB / 0.6256 GB, free: 364 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004447/0.6932, allocations: 439.6 kB / 0.6261 GB, free: 15.92 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002584/0.6958, allocations: 0.5739 MB / 0.6266 GB, free: 15.35 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04447/0.7403, allocations: 19.84 MB / 0.646 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000386/0.7407, allocations: 71.39 kB / 0.6461 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002893/0.7437, allocations: 275.7 kB / 0.6463 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007399/0.7511, allocations: 4.168 MB / 0.6504 GB, free: 5.965 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03896/0.7901, allocations: 17.65 MB / 0.6676 GB, free: 4.293 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.839/1.629, allocations: 73.17 MB / 0.7391 GB, free: 115.6 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01666/1.646, allocations: 7.929 MB / 0.7468 GB, free: 114.2 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006146/1.652, allocations: 5.18 MB / 0.7519 GB, free: 112.1 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002837/1.652, allocations: 61.53 kB / 0.7519 GB, free: 112.1 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.306e-05/1.652, allocations: 74.38 kB / 0.752 GB, free: 112 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=429): time 7.404e-06/1.652, allocations: 0 / 0.752 GB, free: 112 MB / 0.5607 GB Notification: Performance of matching and sorting (n=476): time 0.1001/1.753, allocations: 41.73 MB / 0.7928 GB, free: 82.66 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.959e-05/1.753, allocations: 222.8 kB / 0.793 GB, free: 82.4 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01097/1.764, allocations: 6.382 MB / 0.7992 GB, free: 76.01 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001026/1.765, allocations: 89.7 kB / 0.7993 GB, free: 75.92 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.003044/1.768, allocations: 5.481 MB / 0.8046 GB, free: 70.44 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002408/1.77, allocations: 1.74 MB / 0.8063 GB, free: 68.71 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004758/1.775, allocations: 2.249 MB / 0.8085 GB, free: 66.46 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 6.529e-05/1.775, allocations: 308.2 kB / 0.8088 GB, free: 66.16 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006039/1.781, allocations: 5.023 MB / 0.8137 GB, free: 61.13 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009473/1.791, allocations: 11.09 MB / 0.8246 GB, free: 47.2 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0169/1.808, allocations: 17.43 MB / 0.8416 GB, free: 26.89 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001701/1.808, allocations: 60 kB / 0.8416 GB, free: 26.84 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1483) (initialization): time 0.03059/1.838, allocations: 17.86 MB / 0.8591 GB, free: 8.949 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 9.884e-05/1.838, allocations: 96 kB / 0.8592 GB, free: 8.855 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001576/1.839, allocations: 208 kB / 0.8594 GB, free: 8.652 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005327/1.844, allocations: 2.35 MB / 0.8617 GB, free: 6.289 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007943/1.852, allocations: 2.569 MB / 0.8642 GB, free: 3.719 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02048/1.872, allocations: 17.41 MB / 0.8812 GB, free: 1.77 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008291/1.881, allocations: 0.6552 MB / 0.8818 GB, free: 1.117 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001891/1.883, allocations: 0.6243 MB / 0.8824 GB, free: 0.4961 MB / 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.007484/1.89, allocations: 4.076 MB / 0.8864 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001239/1.891, allocations: 0.59 MB / 0.887 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01659/1.908, allocations: 10.21 MB / 0.897 GB, free: 1.543 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001475/1.908, allocations: 83.73 kB / 0.897 GB, free: 1.465 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.022e-05/1.908, allocations: 12 kB / 0.897 GB, free: 1.453 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.198e-05/1.908, allocations: 19.92 kB / 0.8971 GB, free: 1.434 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04428/1.953, allocations: 21.83 MB / 0.9184 GB, free: 11.46 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-05/1.953, allocations: 12 kB / 0.9184 GB, free: 11.45 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003885/1.957, allocations: 0.7449 MB / 0.9191 GB, free: 10.7 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005655/1.962, allocations: 2.029 MB / 0.9211 GB, free: 8.656 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008222/1.963, allocations: 83.42 kB / 0.9212 GB, free: 8.578 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02023/1.983, allocations: 16.19 MB / 0.937 GB, free: 7.828 MB / 0.6388 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001325/1.983, allocations: 15.94 kB / 0.937 GB, free: 7.812 MB / 0.6388 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02872/2.012, allocations: 16.09 MB / 0.9527 GB, free: 7.473 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001785/2.014, allocations: 0.6221 MB / 0.9533 GB, free: 6.824 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001674/2.016, allocations: 87.67 kB / 0.9534 GB, free: 6.742 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003816/2.02, allocations: 311.5 kB / 0.9537 GB, free: 6.438 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001163/2.021, allocations: 282 kB / 0.954 GB, free: 6.16 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005357/2.021, allocations: 127.3 kB / 0.9541 GB, free: 6.039 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.009347/2.031, allocations: 3.979 MB / 0.958 GB, free: 2.066 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.162e-06/2.031, allocations: 0 / 0.958 GB, free: 2.066 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0135/2.044, allocations: 2.002 MB / 0.96 GB, free: 72 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.002629/2.047, allocations: 243.2 kB / 0.9602 GB, free: 15.83 MB / 0.6701 GB Notification: Performance of simCode: created initialization part: time 0.02453/2.071, allocations: 12.34 MB / 0.9722 GB, free: 3.484 MB / 0.6701 GB Notification: Performance of simCode: created event and clocks part: time 1.686e-05/2.072, allocations: 4.438 kB / 0.9722 GB, free: 3.48 MB / 0.6701 GB Notification: Performance of simCode: created simulation system equations: time 0.3303/2.402, allocations: 4.931 MB / 0.977 GB, free: 250.4 MB / 0.6701 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007254/2.409, allocations: 0.7878 MB / 0.9778 GB, free: 250.3 MB / 0.6701 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04589/2.455, allocations: 20.02 MB / 0.9974 GB, free: 244.2 MB / 0.6701 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01504/2.47, allocations: 5.91 MB / 1.003 GB, free: 242.3 MB / 0.6701 GB Notification: Performance of simCode: alias equations: time 0.0125/2.483, allocations: 3.991 MB / 1.007 GB, free: 242.1 MB / 0.6701 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003105/2.486, allocations: 432.4 kB / 1.007 GB, free: 242.1 MB / 0.6701 GB Notification: Performance of SimCode: time 1.032e-06/2.486, allocations: 3.625 kB / 1.007 GB, free: 242.1 MB / 0.6701 GB Notification: Performance of Templates: time 0.1265/2.612, allocations: 70.51 MB / 1.076 GB, free: 173.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/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