Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002328/0.002333, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.077/2.077, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0011/0.001099, allocations: 90.64 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2899/0.2899, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.906e-05/1.921e-05, allocations: 4 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4063/0.4064, allocations: 58.85 MB / 477.1 MB, free: 5.262 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2049/0.6113, allocations: 109.7 MB / 0.573 GB, free: 5.621 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/0.6117, allocations: 83.45 kB / 0.5731 GB, free: 5.543 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9735/1.585, allocations: 160.7 MB / 0.73 GB, free: 77.48 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.164e-06/1.585, allocations: 0 / 0.73 GB, free: 77.48 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.000499/1.586, allocations: 163.9 kB / 0.7301 GB, free: 77.32 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.03167/1.617, allocations: 7.505 MB / 0.7375 GB, free: 69.74 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/1.618, allocations: 8.031 kB / 0.7375 GB, free: 69.73 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07354/1.691, allocations: 10.06 MB / 0.7473 GB, free: 59.65 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03192/1.723, allocations: 8.424 MB / 0.7555 GB, free: 51.2 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005775/1.724, allocations: 268 kB / 0.7558 GB, free: 50.94 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0051/1.729, allocations: 499.8 kB / 0.7563 GB, free: 50.45 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03692/1.766, allocations: 13.11 MB / 0.7691 GB, free: 37.34 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04931/1.815, allocations: 18.8 MB / 0.7874 GB, free: 17.08 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005056/1.816, allocations: 91.2 kB / 0.7875 GB, free: 16.99 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004282/1.82, allocations: 44 kB / 0.7875 GB, free: 16.95 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004194/1.824, allocations: 2.108 MB / 0.7896 GB, free: 14.84 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5574/2.382, allocations: 81.11 MB / 0.8688 GB, free: 65.25 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01651/2.398, allocations: 8.058 MB / 0.8767 GB, free: 63.45 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01039/2.409, allocations: 4.99 MB / 0.8816 GB, free: 63.4 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003924/2.409, allocations: 61.3 kB / 0.8816 GB, free: 63.39 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.482e-05/2.409, allocations: 86.48 kB / 0.8817 GB, free: 63.35 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=452): time 8.857e-06/2.409, allocations: 3.219 kB / 0.8817 GB, free: 63.35 MB / 0.4952 GB Notification: Performance of matching and sorting (n=499): time 0.1162/2.525, allocations: 36.47 MB / 0.9173 GB, free: 54.58 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/2.526, allocations: 229.8 kB / 0.9175 GB, free: 54.36 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01201/2.538, allocations: 5.164 MB / 0.9226 GB, free: 52.51 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.001105/2.539, allocations: 25.7 kB / 0.9226 GB, free: 52.48 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004814/2.544, allocations: 5.731 MB / 0.9282 GB, free: 48.16 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002964/2.547, allocations: 1.766 MB / 0.9299 GB, free: 46.84 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001531/2.548, allocations: 0 / 0.9299 GB, free: 46.84 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0009973/2.549, allocations: 0.8247 MB / 0.9307 GB, free: 46.31 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01103/2.56, allocations: 4.65 MB / 0.9353 GB, free: 44.66 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01585/2.576, allocations: 11.16 MB / 0.9462 GB, free: 34.27 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01617/2.592, allocations: 7.232 MB / 0.9532 GB, free: 29.68 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002841/2.593, allocations: 68 kB / 0.9533 GB, free: 29.61 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1560) (initialization): time 0.04286/2.636, allocations: 15.68 MB / 0.9686 GB, free: 16.17 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001628/2.636, allocations: 108 kB / 0.9687 GB, free: 16.06 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003653/2.636, allocations: 228.8 kB / 0.9689 GB, free: 15.84 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007473/2.644, allocations: 1.711 MB / 0.9706 GB, free: 14.51 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01739/2.661, allocations: 2.729 MB / 0.9733 GB, free: 12.16 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02269/2.684, allocations: 13.26 MB / 0.9862 GB, free: 0 / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01256/2.697, allocations: 473.9 kB / 0.9867 GB, free: 15.64 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003266/2.7, allocations: 0.6697 MB / 0.9873 GB, free: 14.99 MB / 0.5108 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1051 * Number of states: 0 () * Number of discrete variables: 51 (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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1436): * Single equations (assignments): 1423 * 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.004485/2.704, allocations: 0.6833 MB / 0.988 GB, free: 14.3 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002308/2.707, allocations: 0.5859 MB / 0.9886 GB, free: 13.71 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02916/2.736, allocations: 9.131 MB / 0.9975 GB, free: 6.113 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002576/2.736, allocations: 96.47 kB / 0.9976 GB, free: 6.027 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.814e-05/2.736, allocations: 12 kB / 0.9976 GB, free: 6.016 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001072/2.736, allocations: 23.83 kB / 0.9976 GB, free: 6.012 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06425/2.801, allocations: 19.75 MB / 1.017 GB, free: 5.656 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.859e-05/2.801, allocations: 12 kB / 1.017 GB, free: 5.645 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007771/2.809, allocations: 0.7972 MB / 1.018 GB, free: 5.012 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007145/2.816, allocations: 1.338 MB / 1.019 GB, free: 4.043 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001115/2.817, allocations: 31.22 kB / 1.019 GB, free: 4.02 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02455/2.841, allocations: 12.12 MB / 1.031 GB, free: 8.613 MB / 0.5421 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-05/2.842, allocations: 27.19 kB / 1.031 GB, free: 8.59 MB / 0.5421 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4411/3.283, allocations: 17 MB / 1.047 GB, free: 136.4 MB / 0.5421 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006153/3.289, allocations: 1.33 MB / 1.049 GB, free: 136.3 MB / 0.5421 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002711/3.292, allocations: 23.5 kB / 1.049 GB, free: 136.3 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007174/3.299, allocations: 240.7 kB / 1.049 GB, free: 136.3 MB / 0.5421 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001961/3.301, allocations: 298.9 kB / 1.049 GB, free: 136.3 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008747/3.302, allocations: 128.9 kB / 1.049 GB, free: 136.3 MB / 0.5421 GB Notification: Performance of sorting global known variables: time 0.01313/3.315, allocations: 3.431 MB / 1.053 GB, free: 136.1 MB / 0.5421 GB Notification: Performance of sort global known variables: time 1.483e-06/3.315, allocations: 0 / 1.053 GB, free: 136.1 MB / 0.5421 GB Notification: Performance of remove unused functions: time 0.02396/3.339, allocations: 1.75 MB / 1.055 GB, free: 136.1 MB / 0.5421 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (383): * Single equations (assignments): 370 * 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.002282/3.341, allocations: 187 kB / 1.055 GB, free: 136 MB / 0.5421 GB Notification: Performance of simCode: created initialization part: time 0.03842/3.38, allocations: 11.47 MB / 1.066 GB, free: 135.6 MB / 0.5421 GB Notification: Performance of simCode: created event and clocks part: time 2.32e-05/3.38, allocations: 3.906 kB / 1.066 GB, free: 135.6 MB / 0.5421 GB Notification: Performance of simCode: created simulation system equations: time 0.01584/3.396, allocations: 4.672 MB / 1.07 GB, free: 135.1 MB / 0.5421 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008286/3.404, allocations: 0.5488 MB / 1.071 GB, free: 135 MB / 0.5421 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07571/3.48, allocations: 18.08 MB / 1.089 GB, free: 131.7 MB / 0.5421 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02573/3.506, allocations: 6.284 MB / 1.095 GB, free: 129.7 MB / 0.5421 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007394/3.513, allocations: 0.521 MB / 1.095 GB, free: 129.7 MB / 0.5421 GB Notification: Performance of SimCode: time 2.525e-06/3.513, allocations: 0 / 1.095 GB, free: 129.7 MB / 0.5421 GB Notification: Performance of Templates: time 0.8962/4.409, allocations: 254.2 MB / 1.343 GB, free: 92.56 MB / 0.5421 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches