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.002597/0.002597, allocations: 180.2 kB / 13.65 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.032/2.032, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001063/0.001062, allocations: 82.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2698/0.2698, allocations: 43.49 MB / 359.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.624e-05/4.654e-05, allocations: 4 kB / 425.3 MB, free: 23.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1345, allocations: 58.85 MB / 484.1 MB, free: 12.49 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5329/0.6674, allocations: 110.3 MB / 0.5805 GB, free: 9.656 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.6678, allocations: 81.61 kB / 0.5806 GB, free: 9.617 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.028/1.696, allocations: 164.3 MB / 0.741 GB, free: 94.92 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.414e-06/1.696, allocations: 3.906 kB / 0.741 GB, free: 94.92 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004598/1.696, allocations: 162.1 kB / 0.7412 GB, free: 94.92 MB / 0.4948 GB 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.02913/1.725, allocations: 7.505 MB / 0.7485 GB, free: 91.82 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/1.725, allocations: 11.12 kB / 0.7485 GB, free: 91.82 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1143/1.84, allocations: 10.05 MB / 0.7583 GB, free: 91.25 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0307/1.871, allocations: 8.437 MB / 0.7666 GB, free: 90.29 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008002/1.871, allocations: 0.6309 MB / 0.7672 GB, free: 90.27 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005151/1.877, allocations: 0.8181 MB / 0.768 GB, free: 90.27 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06126/1.938, allocations: 20.37 MB / 0.7879 GB, free: 85.79 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006377/1.939, allocations: 97.17 kB / 0.788 GB, free: 85.73 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004948/1.944, allocations: 396.8 kB / 0.7883 GB, free: 85.51 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004563/1.948, allocations: 2.107 MB / 0.7904 GB, free: 85.12 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05126/1.999, allocations: 17.77 MB / 0.8078 GB, free: 75.27 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1468/2.146, allocations: 85.17 MB / 0.8909 GB, free: 11.07 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03109/2.177, allocations: 7.968 MB / 0.8987 GB, free: 2.879 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3776/2.555, allocations: 5.083 MB / 0.9037 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006026/2.556, allocations: 64.36 kB / 0.9037 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.474e-05/2.556, allocations: 78.75 kB / 0.9038 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=450): time 1.017e-05/2.556, allocations: 0 / 0.9038 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=501): time 0.1602/2.716, allocations: 37.66 MB / 0.9406 GB, free: 97.97 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/2.716, allocations: 230.9 kB / 0.9408 GB, free: 97.75 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01434/2.731, allocations: 5.698 MB / 0.9464 GB, free: 97.22 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001168/2.732, allocations: 93.28 kB / 0.9465 GB, free: 97.19 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005079/2.737, allocations: 5.522 MB / 0.9519 GB, free: 94.16 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003104/2.74, allocations: 1.82 MB / 0.9536 GB, free: 93.08 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001797/2.742, allocations: 219.9 kB / 0.9538 GB, free: 93.08 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001035/2.743, allocations: 0.8081 MB / 0.9546 GB, free: 92.74 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01194/2.755, allocations: 4.806 MB / 0.9593 GB, free: 92.71 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01622/2.771, allocations: 10.97 MB / 0.97 GB, free: 83.27 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01645/2.788, allocations: 7.304 MB / 0.9772 GB, free: 81.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002417/2.788, allocations: 63.34 kB / 0.9772 GB, free: 81.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1490) (initialization): time 0.04582/2.834, allocations: 16.77 MB / 0.9936 GB, free: 75.76 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001672/2.834, allocations: 95.16 kB / 0.9937 GB, free: 75.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003468/2.834, allocations: 217.1 kB / 0.9939 GB, free: 75.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007541/2.842, allocations: 1.728 MB / 0.9956 GB, free: 75.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01708/2.859, allocations: 2.599 MB / 0.9981 GB, free: 75.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02555/2.885, allocations: 14.03 MB / 1.012 GB, free: 63.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01304/2.898, allocations: 0.6595 MB / 1.012 GB, free: 63.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00302/2.901, allocations: 0.6321 MB / 1.013 GB, free: 62.66 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 979 * 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 (1366): * Single equations (assignments): 1353 * 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.00524/2.906, allocations: 0.9329 MB / 1.014 GB, free: 61.72 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002255/2.909, allocations: 0.6131 MB / 1.015 GB, free: 61.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02959/2.938, allocations: 9.611 MB / 1.024 GB, free: 53.04 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001767/2.938, allocations: 91.8 kB / 1.024 GB, free: 52.96 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.334e-05/2.938, allocations: 12 kB / 1.024 GB, free: 52.95 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001064/2.939, allocations: 25.66 kB / 1.024 GB, free: 52.95 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06348/3.002, allocations: 21.59 MB / 1.045 GB, free: 34.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.332e-05/3.002, allocations: 12 kB / 1.045 GB, free: 34.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007659/3.01, allocations: 0.7955 MB / 1.046 GB, free: 34.22 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006814/3.017, allocations: 1.358 MB / 1.047 GB, free: 33.23 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001278/3.018, allocations: 92.92 kB / 1.047 GB, free: 33.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02158/3.04, allocations: 12.89 MB / 1.06 GB, free: 21 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.379e-05/3.04, allocations: 15.94 kB / 1.06 GB, free: 20.98 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03793/3.078, allocations: 17.14 MB / 1.077 GB, free: 5.043 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005731/3.083, allocations: 1.382 MB / 1.078 GB, free: 3.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002617/3.086, allocations: 89.52 kB / 1.078 GB, free: 3.668 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006772/3.093, allocations: 311.1 kB / 1.078 GB, free: 3.473 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001833/3.095, allocations: 301.5 kB / 1.079 GB, free: 3.273 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007496/3.096, allocations: 131.3 kB / 1.079 GB, free: 3.152 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01262/3.108, allocations: 4.054 MB / 1.083 GB, free: 0 / 0.5105 GB Notification: Performance of sort global known variables: time 1.273e-06/3.108, allocations: 336 / 1.083 GB, free: 0 / 0.5105 GB Notification: Performance of remove unused functions: time 0.01623/3.125, allocations: 2.104 MB / 1.085 GB, free: 14.07 MB / 0.5261 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (385): * Single equations (assignments): 372 * 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.001814/3.126, allocations: 243.8 kB / 1.085 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.4296/3.556, allocations: 12.34 MB / 1.097 GB, free: 101.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.19e-05/3.556, allocations: 0 / 1.097 GB, free: 101.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0167/3.573, allocations: 4.869 MB / 1.102 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007152/3.58, allocations: 0.7325 MB / 1.103 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05597/3.636, allocations: 18.33 MB / 1.121 GB, free: 97.95 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01564/3.652, allocations: 6.282 MB / 1.127 GB, free: 97.04 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004244/3.656, allocations: 0.5298 MB / 1.127 GB, free: 97.03 MB / 0.5261 GB Notification: Performance of SimCode: time 1.523e-06/3.656, allocations: 0 / 1.127 GB, free: 97.03 MB / 0.5261 GB Notification: Performance of Templates: time 0.8672/4.523, allocations: 258.3 MB / 1.379 GB, free: 98.75 MB / 0.5417 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