Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002247/0.002247, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.052/2.052, 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.001098/0.001098, allocations: 82.67 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.608e-05/2.636e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09142/0.09147, allocations: 47.58 MB / 369.1 MB, free: 2.199 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.431/0.5226, allocations: 98.46 MB / 467.6 MB, free: 11.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.5229, allocations: 90.64 kB / 467.6 MB, free: 10.97 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7262/1.249, allocations: 107.1 MB / 0.5613 GB, free: 89 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.249, allocations: 0 / 0.5613 GB, free: 89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004115/1.25, allocations: 101.7 kB / 0.5614 GB, free: 89 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.02162/1.271, allocations: 5.27 MB / 0.5665 GB, free: 86.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/1.271, allocations: 11.62 kB / 0.5666 GB, free: 86.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05066/1.322, allocations: 6.937 MB / 0.5733 GB, free: 86.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02669/1.349, allocations: 6.829 MB / 0.58 GB, free: 85.69 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005293/1.349, allocations: 404.3 kB / 0.5804 GB, free: 85.67 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003154/1.353, allocations: 0.5407 MB / 0.5809 GB, free: 85.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03893/1.392, allocations: 12.67 MB / 0.5933 GB, free: 79.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004396/1.392, allocations: 68.75 kB / 0.5934 GB, free: 79.28 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002913/1.395, allocations: 262.1 kB / 0.5936 GB, free: 79.13 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002578/1.398, allocations: 1.125 MB / 0.5947 GB, free: 78.92 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03162/1.429, allocations: 10.3 MB / 0.6048 GB, free: 72.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08564/1.515, allocations: 57.19 MB / 0.6606 GB, free: 15.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01863/1.534, allocations: 4.362 MB / 0.6649 GB, free: 11.17 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004971/1.539, allocations: 2.375 MB / 0.6672 GB, free: 8.789 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02652/1.565, allocations: 9.969 MB / 0.6769 GB, free: 14.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.95e-05/1.565, allocations: 55.81 kB / 0.677 GB, free: 14.66 MB / 426.7 MB Notification: Performance of pre-optimization done (n=192): time 6.241e-06/1.565, allocations: 0 / 0.677 GB, free: 14.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=218): time 0.38/1.945, allocations: 16.2 MB / 0.6928 GB, free: 96.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/1.946, allocations: 207.4 kB / 0.693 GB, free: 96.19 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01297/1.959, allocations: 4.2 MB / 0.6971 GB, free: 95.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005362/1.959, allocations: 57.55 kB / 0.6972 GB, free: 95.87 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003646/1.963, allocations: 3.633 MB / 0.7007 GB, free: 94.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001367/1.964, allocations: 0.8307 MB / 0.7015 GB, free: 94.33 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009963/1.965, allocations: 137.1 kB / 0.7016 GB, free: 94.33 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000686/1.966, allocations: 0.5877 MB / 0.7022 GB, free: 94 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006633/1.973, allocations: 2.189 MB / 0.7044 GB, free: 93.99 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01011/1.983, allocations: 6.15 MB / 0.7104 GB, free: 88.89 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01054/1.993, allocations: 3.652 MB / 0.7139 GB, free: 88.86 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003072/1.994, allocations: 39.41 kB / 0.714 GB, free: 88.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=860) (initialization): time 0.02539/2.019, allocations: 8.664 MB / 0.7224 GB, free: 87.54 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001634/2.019, allocations: 61.25 kB / 0.7225 GB, free: 87.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002238/2.02, allocations: 143.2 kB / 0.7226 GB, free: 87.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004567/2.024, allocations: 0.935 MB / 0.7235 GB, free: 87.37 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00967/2.034, allocations: 1.511 MB / 0.725 GB, free: 87.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01366/2.048, allocations: 7.413 MB / 0.7322 GB, free: 82.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008263/2.056, allocations: 357.1 kB / 0.7326 GB, free: 82.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001698/2.058, allocations: 401.5 kB / 0.733 GB, free: 82.38 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 638 * Number of states: 0 () * Number of discrete variables: 45 (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 (798): * Single equations (assignments): 793 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002605/2.06, allocations: 0.6104 MB / 0.7336 GB, free: 81.88 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001303/2.062, allocations: 434.3 kB / 0.734 GB, free: 81.65 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01109/2.073, allocations: 3.539 MB / 0.7374 GB, free: 80.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.879e-05/2.073, allocations: 25.34 kB / 0.7375 GB, free: 80.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.232e-05/2.073, allocations: 7.406 kB / 0.7375 GB, free: 80.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.321e-05/2.073, allocations: 14.52 kB / 0.7375 GB, free: 80.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02914/2.102, allocations: 9.234 MB / 0.7465 GB, free: 76.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.454e-05/2.102, allocations: 0 / 0.7465 GB, free: 76.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003394/2.106, allocations: 344.1 kB / 0.7468 GB, free: 76.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00398/2.11, allocations: 0.6907 MB / 0.7475 GB, free: 76.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004914/2.11, allocations: 38.62 kB / 0.7475 GB, free: 76.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01201/2.122, allocations: 6.554 MB / 0.7539 GB, free: 72.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/2.122, allocations: 6.734 kB / 0.7539 GB, free: 72.41 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0151/2.137, allocations: 6.245 MB / 0.76 GB, free: 69.69 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002952/2.14, allocations: 0.7549 MB / 0.7608 GB, free: 69.21 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001494/2.142, allocations: 37.33 kB / 0.7608 GB, free: 69.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003849/2.146, allocations: 103 kB / 0.7609 GB, free: 69.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007936/2.147, allocations: 131.6 kB / 0.761 GB, free: 69.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002438/2.147, allocations: 54.84 kB / 0.7611 GB, free: 69.13 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007995/2.155, allocations: 2.971 MB / 0.764 GB, free: 68.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.41e-07/2.155, allocations: 0 / 0.764 GB, free: 68.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008488/2.163, allocations: 1.189 MB / 0.7652 GB, free: 67.96 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (169): * Single equations (assignments): 164 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009114/2.164, allocations: 179.4 kB / 0.7653 GB, free: 67.83 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01371/2.178, allocations: 5.652 MB / 0.7708 GB, free: 64.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/2.178, allocations: 0 / 0.7708 GB, free: 64.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005134/2.183, allocations: 1.952 MB / 0.7728 GB, free: 62.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004743/2.188, allocations: 0.5315 MB / 0.7733 GB, free: 62.06 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02891/2.217, allocations: 9.914 MB / 0.783 GB, free: 53.27 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009724/2.227, allocations: 4.11 MB / 0.787 GB, free: 50.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001972/2.229, allocations: 337.8 kB / 0.7873 GB, free: 49.88 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/2.229, allocations: 0 / 0.7873 GB, free: 49.88 MB / 426.7 MB Notification: Performance of Templates: time 0.6521/2.881, allocations: 112.2 MB / 0.8969 GB, free: 76.45 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches