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.00113/0.00113, allocations: 115.8 kB / 18.4 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.001224/0.001224, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1985/0.1985, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 71.89 kB / 419 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1118, allocations: 62.44 MB / 481.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.01842/0.1302, allocations: 18.57 MB / 0.4883 GB, free: 1.902 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01124/0.1415, allocations: 5.318 MB / 0.4935 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002824/0.1444, allocations: 119.6 kB / 0.4936 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008374/0.1528, allocations: 4.766 MB / 0.4983 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007048/0.1599, allocations: 3.035 MB / 0.5012 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002377/0.1623, allocations: 0.9087 MB / 0.5021 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2217/0.384, allocations: 8.413 MB / 0.5103 GB, free: 13.13 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009198/0.3932, allocations: 6.41 MB / 0.5166 GB, free: 12.42 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006417/0.3997, allocations: 2.928 MB / 0.5194 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006483/0.4062, allocations: 3.949 MB / 0.5233 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002548/0.4088, allocations: 0.626 MB / 0.5239 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003924/0.4127, allocations: 1.438 MB / 0.5253 GB, free: 11.58 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003591/0.4163, allocations: 3.626 MB / 0.5289 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004491/0.4208, allocations: 4.216 MB / 0.533 GB, free: 7.285 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01242/0.4333, allocations: 13.44 MB / 0.5461 GB, free: 15.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.4333, allocations: 0 / 0.5461 GB, free: 15.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4333, allocations: 0 / 0.5461 GB, free: 15.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003984/0.4337, allocations: 0 / 0.5461 GB, free: 15.39 MB / 398.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.01981/0.4536, allocations: 8.735 MB / 0.5546 GB, free: 6.777 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.4536, allocations: 12.03 kB / 0.5546 GB, free: 6.766 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0203/0.4739, allocations: 5.432 MB / 0.56 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01216/0.4861, allocations: 4.927 MB / 0.5648 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003469/0.4865, allocations: 435.5 kB / 0.5652 GB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00211/0.4886, allocations: 0.569 MB / 0.5657 GB, free: 11.81 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03411/0.5227, allocations: 19.85 MB / 0.5851 GB, free: 7.285 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002166/0.523, allocations: 69.61 kB / 0.5852 GB, free: 7.246 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009127/0.5239, allocations: 274.1 kB / 0.5854 GB, free: 7.051 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006486/0.5304, allocations: 4.175 MB / 0.5895 GB, free: 2.934 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03556/0.566, allocations: 17.64 MB / 0.6067 GB, free: 1.547 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09776/0.6638, allocations: 73.17 MB / 0.6782 GB, free: 7.098 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01663/0.6805, allocations: 7.923 MB / 0.6859 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007035/0.6875, allocations: 5.179 MB / 0.691 GB, free: 9.738 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002653/0.6878, allocations: 72.03 kB / 0.6911 GB, free: 9.684 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.519e-05/0.6879, allocations: 77.09 kB / 0.6911 GB, free: 9.598 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 7.304e-06/0.6879, allocations: 0 / 0.6911 GB, free: 9.598 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.436/1.124, allocations: 41.71 MB / 0.7319 GB, free: 176.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.911e-05/1.124, allocations: 223.5 kB / 0.7321 GB, free: 176.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008469/1.133, allocations: 6.384 MB / 0.7383 GB, free: 174.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007696/1.133, allocations: 85.45 kB / 0.7384 GB, free: 174 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002381/1.136, allocations: 5.482 MB / 0.7438 GB, free: 169.9 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001363/1.137, allocations: 1.738 MB / 0.7455 GB, free: 168.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002421/1.139, allocations: 2.25 MB / 0.7476 GB, free: 167.5 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.386e-05/1.14, allocations: 306.1 kB / 0.7479 GB, free: 167.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005819/1.145, allocations: 5.029 MB / 0.7529 GB, free: 165.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007244/1.153, allocations: 11.09 MB / 0.7637 GB, free: 155.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01397/1.167, allocations: 17.42 MB / 0.7807 GB, free: 142.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001013/1.167, allocations: 61.38 kB / 0.7808 GB, free: 142.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=1483) (initialization): time 0.02459/1.191, allocations: 17.87 MB / 0.7982 GB, free: 128.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.839e-05/1.191, allocations: 96 kB / 0.7983 GB, free: 128 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001973/1.192, allocations: 208 kB / 0.7985 GB, free: 127.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005171/1.197, allocations: 2.351 MB / 0.8008 GB, free: 125.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008262/1.205, allocations: 2.558 MB / 0.8033 GB, free: 122.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01623/1.221, allocations: 17.41 MB / 0.8203 GB, free: 105 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008406/1.23, allocations: 0.6554 MB / 0.8209 GB, free: 104.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001903/1.232, allocations: 0.6286 MB / 0.8215 GB, free: 103.7 MB / 0.545 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.006442/1.238, allocations: 4.068 MB / 0.8255 GB, free: 99.63 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00131/1.239, allocations: 0.5939 MB / 0.8261 GB, free: 99.03 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01342/1.253, allocations: 10.2 MB / 0.8361 GB, free: 88.77 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.929e-05/1.253, allocations: 91.91 kB / 0.8362 GB, free: 88.68 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.771e-05/1.253, allocations: 12 kB / 0.8362 GB, free: 88.67 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.927e-05/1.253, allocations: 23.86 kB / 0.8362 GB, free: 88.64 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03058/1.284, allocations: 21.81 MB / 0.8575 GB, free: 66.71 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.47e-05/1.284, allocations: 17.48 kB / 0.8575 GB, free: 66.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002969/1.287, allocations: 0.734 MB / 0.8582 GB, free: 65.96 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004766/1.291, allocations: 2.037 MB / 0.8602 GB, free: 63.91 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003331/1.292, allocations: 91.92 kB / 0.8603 GB, free: 63.82 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01405/1.306, allocations: 16.19 MB / 0.8761 GB, free: 47.08 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.696e-06/1.306, allocations: 15.94 kB / 0.8761 GB, free: 47.07 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01862/1.325, allocations: 16.1 MB / 0.8918 GB, free: 30.72 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001665/1.326, allocations: 0.6221 MB / 0.8925 GB, free: 30.07 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001415/1.328, allocations: 85.7 kB / 0.8925 GB, free: 29.99 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002922/1.331, allocations: 309.1 kB / 0.8928 GB, free: 29.69 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007115/1.331, allocations: 291.5 kB / 0.8931 GB, free: 29.41 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000295/1.332, allocations: 124 kB / 0.8932 GB, free: 29.29 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004606/1.336, allocations: 3.975 MB / 0.8971 GB, free: 25.32 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.11e-07/1.336, allocations: 0 / 0.8971 GB, free: 25.32 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008003/1.344, allocations: 2.009 MB / 0.8991 GB, free: 23.31 MB / 0.545 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.0006033/1.345, allocations: 239.7 kB / 0.8993 GB, free: 23.08 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01418/1.359, allocations: 12.35 MB / 0.9114 GB, free: 10.72 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/1.359, allocations: 0 / 0.9114 GB, free: 10.72 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.2036/1.563, allocations: 4.924 MB / 0.9162 GB, free: 170.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005401/1.568, allocations: 0.7753 MB / 0.9169 GB, free: 170.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03494/1.603, allocations: 20.03 MB / 0.9365 GB, free: 164.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007719/1.611, allocations: 5.914 MB / 0.9423 GB, free: 162.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007333/1.618, allocations: 3.989 MB / 0.9461 GB, free: 162.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001482/1.62, allocations: 439.7 kB / 0.9466 GB, free: 162.3 MB / 0.545 GB Notification: Performance of SimCode: time 4.01e-07/1.62, allocations: 7.328 kB / 0.9466 GB, free: 162.3 MB / 0.545 GB Notification: Performance of Templates: time 0.1008/1.721, allocations: 66.99 MB / 1.012 GB, free: 107.1 MB / 0.545 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 -s gbode -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