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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001271/0.00127, allocations: 207.3 kB / 17.99 MB, free: 3.773 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00107/0.00107, allocations: 111.2 kB / 296.7 MB, free: 6.484 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3912/0.3912, allocations: 44.83 MB / 392.7 MB, free: 34.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001093, allocations: 71.88 kB / 465.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.3141, allocations: 62 MB / 0.5151 GB, free: 37.88 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.06072/0.3749, allocations: 81.63 MB / 0.5949 GB, free: 7.727 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03968/0.4146, allocations: 15.85 MB / 0.6103 GB, free: 7.816 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01823/0.4329, allocations: 355.1 kB / 0.6107 GB, free: 7.469 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008784/0.4418, allocations: 4.745 MB / 0.6153 GB, free: 2.711 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008439/0.4502, allocations: 2.931 MB / 0.6182 GB, free: 15.77 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002849/0.4531, allocations: 0.8348 MB / 0.619 GB, free: 14.93 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.01441/0.4675, allocations: 12.33 MB / 0.631 GB, free: 2.59 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008694/0.4763, allocations: 6.281 MB / 0.6372 GB, free: 12.23 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005616/0.4819, allocations: 2.6 MB / 0.6397 GB, free: 9.625 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006921/0.4889, allocations: 4.217 MB / 0.6438 GB, free: 5.395 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001857/0.4908, allocations: 447.9 kB / 0.6443 GB, free: 4.957 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003288/0.4941, allocations: 1.322 MB / 0.6455 GB, free: 3.633 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003547/0.4977, allocations: 3.545 MB / 0.649 GB, free: 80 kB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006737/0.5044, allocations: 4.112 MB / 0.653 GB, free: 11.94 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01511/0.5196, allocations: 12.98 MB / 0.6657 GB, free: 14.91 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.5196, allocations: 0 / 0.6657 GB, free: 14.91 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5196, allocations: 0 / 0.6657 GB, free: 14.91 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004802/0.5201, allocations: 4 kB / 0.6657 GB, free: 14.91 MB / 490.7 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.02086/0.541, allocations: 8.841 MB / 0.6743 GB, free: 5.988 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.5411, allocations: 8.031 kB / 0.6743 GB, free: 5.98 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02073/0.5618, allocations: 5.46 MB / 0.6797 GB, free: 0.5 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5135/1.075, allocations: 4.854 MB / 0.6844 GB, free: 127.1 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004195/1.076, allocations: 440.8 kB / 0.6848 GB, free: 127 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002534/1.078, allocations: 0.5776 MB / 0.6854 GB, free: 126.9 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03475/1.113, allocations: 20.03 MB / 0.705 GB, free: 118.3 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002697/1.113, allocations: 69.44 kB / 0.705 GB, free: 118.3 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001517/1.115, allocations: 277.3 kB / 0.7053 GB, free: 118.1 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007955/1.123, allocations: 4.243 MB / 0.7094 GB, free: 117.4 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03413/1.157, allocations: 17.8 MB / 0.7268 GB, free: 107.6 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08915/1.246, allocations: 73.96 MB / 0.799 GB, free: 31.68 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01466/1.261, allocations: 7.939 MB / 0.8068 GB, free: 23.5 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005863/1.267, allocations: 5.189 MB / 0.8119 GB, free: 18.3 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002492/1.267, allocations: 66.47 kB / 0.8119 GB, free: 18.23 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.511e-05/1.267, allocations: 69.09 kB / 0.812 GB, free: 18.16 MB / 490.8 MB Notification: Performance of pre-optimization done (n=429): time 7.744e-06/1.267, allocations: 0 / 0.812 GB, free: 18.16 MB / 490.8 MB Notification: Performance of matching and sorting (n=476): time 0.09752/1.365, allocations: 41.76 MB / 0.8528 GB, free: 8.281 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001764/1.365, allocations: 226.8 kB / 0.853 GB, free: 8.016 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01014/1.375, allocations: 6.406 MB / 0.8592 GB, free: 1.602 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001148/1.376, allocations: 89.7 kB / 0.8593 GB, free: 1.508 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003904/1.38, allocations: 5.519 MB / 0.8647 GB, free: 11.91 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.002525/1.383, allocations: 1.738 MB / 0.8664 GB, free: 10.15 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003476/1.386, allocations: 2.257 MB / 0.8686 GB, free: 7.883 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 9.151e-05/1.386, allocations: 305.1 kB / 0.8689 GB, free: 7.582 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007292/1.394, allocations: 5.027 MB / 0.8738 GB, free: 2.551 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01199/1.406, allocations: 11.12 MB / 0.8847 GB, free: 4.5 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2921/1.698, allocations: 17.45 MB / 0.9017 GB, free: 154.5 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001827/1.698, allocations: 61.44 kB / 0.9018 GB, free: 154.5 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.03774/1.736, allocations: 17.88 MB / 0.9192 GB, free: 148.3 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.000305/1.736, allocations: 97.5 kB / 0.9193 GB, free: 148.3 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004724/1.737, allocations: 216.5 kB / 0.9195 GB, free: 148.3 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007261/1.744, allocations: 2.343 MB / 0.9218 GB, free: 147.9 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0101/1.754, allocations: 2.566 MB / 0.9243 GB, free: 147.6 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01919/1.773, allocations: 16.13 MB / 0.9401 GB, free: 138.1 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009073/1.782, allocations: 0.6615 MB / 0.9407 GB, free: 137.9 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002471/1.785, allocations: 0.6231 MB / 0.9413 GB, free: 137.8 MB / 0.5418 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 (1362): * Single equations (assignments): 1349 * 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.007262/1.792, allocations: 4.098 MB / 0.9453 GB, free: 136 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0012/1.793, allocations: 0.5949 MB / 0.9459 GB, free: 136 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01579/1.809, allocations: 10.2 MB / 0.9559 GB, free: 131.2 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000121/1.809, allocations: 91.78 kB / 0.956 GB, free: 131.1 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.141e-05/1.809, allocations: 12 kB / 0.956 GB, free: 131.1 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.578e-05/1.81, allocations: 18.52 kB / 0.956 GB, free: 131.1 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04285/1.852, allocations: 21.97 MB / 0.9775 GB, free: 112.1 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.608e-05/1.852, allocations: 12 kB / 0.9775 GB, free: 112.1 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003705/1.856, allocations: 0.7371 MB / 0.9782 GB, free: 111.3 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005386/1.862, allocations: 2.036 MB / 0.9802 GB, free: 109.3 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001307/1.863, allocations: 95.83 kB / 0.9803 GB, free: 109.2 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01516/1.878, allocations: 15.02 MB / 0.9949 GB, free: 93.73 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.31e-05/1.878, allocations: 23.81 kB / 0.995 GB, free: 93.7 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1195/1.998, allocations: 78.46 MB / 1.072 GB, free: 14.7 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002001/2, allocations: 0.6338 MB / 1.072 GB, free: 14.04 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001444/2.001, allocations: 79.98 kB / 1.072 GB, free: 13.96 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003119/2.004, allocations: 315.2 kB / 1.073 GB, free: 13.66 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008585/2.005, allocations: 285.9 kB / 1.073 GB, free: 13.38 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003102/2.005, allocations: 120 kB / 1.073 GB, free: 13.26 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.005671/2.011, allocations: 3.987 MB / 1.077 GB, free: 9.277 MB / 0.5418 GB Notification: Performance of sort global known variables: time 3.1e-07/2.011, allocations: 0 / 1.077 GB, free: 9.277 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01243/2.024, allocations: 2.594 MB / 1.079 GB, free: 6.691 MB / 0.5418 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.001038/2.025, allocations: 236.8 kB / 1.08 GB, free: 6.453 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.01828/2.043, allocations: 12.29 MB / 1.092 GB, free: 10.14 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.454e-05/2.043, allocations: 4 kB / 1.092 GB, free: 10.14 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.2792/2.322, allocations: 4.93 MB / 1.096 GB, free: 176.7 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005304/2.328, allocations: 0.7479 MB / 1.097 GB, free: 176.6 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0485/2.376, allocations: 27.87 MB / 1.124 GB, free: 164.8 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01555/2.392, allocations: 6.117 MB / 1.13 GB, free: 162.8 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.01315/2.405, allocations: 4.034 MB / 1.134 GB, free: 162.6 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0032/2.408, allocations: 446.2 kB / 1.135 GB, free: 162.6 MB / 0.5574 GB Notification: Performance of SimCode: time 1.553e-06/2.408, allocations: 0 / 1.135 GB, free: 162.6 MB / 0.5574 GB Notification: Performance of Templates: time 0.1404/2.549, allocations: 91.35 MB / 1.224 GB, free: 83.93 MB / 0.5574 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@2/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