Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.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.BevelGear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia2.phi|inertia2.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia2.phi|inertia2.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009144/0.0009146, allocations: 182 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.252/1.252, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.0007285/0.0007286, allocations: 82.41 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002808/0.0002811, allocations: 12 kB / 328.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.2172, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1112/0.3284, allocations: 102.1 MB / 477.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002533/0.3287, allocations: 91.95 kB / 477.9 MB, free: 10.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3864/0.7152, allocations: 95.32 MB / 0.5598 GB, free: 56.97 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.827e-06/0.7152, allocations: 4 kB / 0.5598 GB, free: 56.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003336/0.7156, allocations: 99.98 kB / 0.5599 GB, free: 56.87 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1755 * Number of variables: 1755 Notification: Performance of Generate backend data structure: time 0.02403/0.7396, allocations: 6.049 MB / 0.5658 GB, free: 50.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.7397, allocations: 8.031 kB / 0.5658 GB, free: 50.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01402/0.7537, allocations: 3.566 MB / 0.5693 GB, free: 47.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009961/0.7637, allocations: 4.241 MB / 0.5734 GB, free: 42.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003684/0.7642, allocations: 378 kB / 0.5738 GB, free: 42.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002582/0.7668, allocations: 0.4919 MB / 0.5743 GB, free: 41.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02854/0.7953, allocations: 12.86 MB / 0.5868 GB, free: 28.03 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000354/0.7957, allocations: 67.39 kB / 0.5869 GB, free: 27.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002302/0.7981, allocations: 239.9 kB / 0.5871 GB, free: 27.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001792/0.7999, allocations: 1.098 MB / 0.5882 GB, free: 26.63 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0232/0.8231, allocations: 11.29 MB / 0.5992 GB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2749/1.098, allocations: 56.02 MB / 0.6539 GB, free: 54.38 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01597/1.114, allocations: 5.749 MB / 0.6595 GB, free: 53.71 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004051/1.118, allocations: 3.45 MB / 0.6629 GB, free: 53.68 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001592/1.12, allocations: 1.039 MB / 0.6639 GB, free: 52.84 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/1.12, allocations: 54.41 kB / 0.664 GB, free: 52.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 5.791e-06/1.12, allocations: 0 / 0.664 GB, free: 52.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=255): time 0.08488/1.205, allocations: 30.65 MB / 0.6939 GB, free: 48.74 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/1.205, allocations: 214.1 kB / 0.6941 GB, free: 48.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008157/1.213, allocations: 4.328 MB / 0.6983 GB, free: 47.02 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007646/1.214, allocations: 61.42 kB / 0.6984 GB, free: 46.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002487/1.216, allocations: 3.472 MB / 0.7018 GB, free: 44.42 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001504/1.218, allocations: 0.9603 MB / 0.7027 GB, free: 43.72 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001115/1.219, allocations: 133.8 kB / 0.7029 GB, free: 43.62 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006724/1.22, allocations: 0.5893 MB / 0.7034 GB, free: 43.19 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005609/1.225, allocations: 3.481 MB / 0.7068 GB, free: 42 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007574/1.233, allocations: 7.372 MB / 0.714 GB, free: 35.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01308/1.246, allocations: 11.68 MB / 0.7254 GB, free: 25.53 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002298/1.246, allocations: 40 kB / 0.7255 GB, free: 25.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=885) (initialization): time 0.02517/1.272, allocations: 12.75 MB / 0.7379 GB, free: 15.05 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001922/1.272, allocations: 64 kB / 0.738 GB, free: 14.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002674/1.272, allocations: 136 kB / 0.7381 GB, free: 14.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006308/1.278, allocations: 2.251 MB / 0.7403 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006257/1.285, allocations: 1.64 MB / 0.7419 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01857/1.303, allocations: 15.17 MB / 0.7567 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006686/1.31, allocations: 459.2 kB / 0.7572 GB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002005/1.312, allocations: 444.2 kB / 0.7576 GB, free: 13.37 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 620 * Number of states: 0 () * Number of discrete variables: 36 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (812): * Single equations (assignments): 806 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 16,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007089/1.319, allocations: 2.387 MB / 0.7599 GB, free: 10.98 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001715/1.321, allocations: 402.8 kB / 0.7603 GB, free: 10.58 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01707/1.338, allocations: 7.667 MB / 0.7678 GB, free: 2.879 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.75e-05/1.338, allocations: 28 kB / 0.7678 GB, free: 2.852 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.285e-05/1.338, allocations: 11.94 kB / 0.7678 GB, free: 2.84 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001022/1.338, allocations: 11.95 kB / 0.7679 GB, free: 2.828 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03538/1.374, allocations: 15.12 MB / 0.7826 GB, free: 3.707 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.651e-05/1.374, allocations: 3.328 kB / 0.7826 GB, free: 3.707 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002854/1.377, allocations: 439.3 kB / 0.783 GB, free: 3.277 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006273/1.383, allocations: 2.043 MB / 0.785 GB, free: 1.227 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007369/1.384, allocations: 47.89 kB / 0.7851 GB, free: 1.184 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01948/1.403, allocations: 13.87 MB / 0.7986 GB, free: 2.938 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/1.403, allocations: 4 kB / 0.7986 GB, free: 2.934 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02219/1.426, allocations: 12.01 MB / 0.8104 GB, free: 6.844 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003123/1.429, allocations: 0.972 MB / 0.8113 GB, free: 5.848 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001528/1.43, allocations: 43.83 kB / 0.8113 GB, free: 5.809 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003325/1.434, allocations: 215.7 kB / 0.8116 GB, free: 5.598 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001113/1.435, allocations: 161.7 kB / 0.8117 GB, free: 5.438 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005923/1.435, allocations: 60 kB / 0.8118 GB, free: 5.379 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006442/1.442, allocations: 2.707 MB / 0.8144 GB, free: 2.668 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.354e-06/1.442, allocations: 0 / 0.8144 GB, free: 2.668 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008721/1.451, allocations: 1.393 MB / 0.8158 GB, free: 1.281 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.phi,inertia1.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (198): * Single equations (assignments): 192 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(4,100.0%) 18,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001123/1.452, allocations: 196.5 kB / 0.816 GB, free: 1.09 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.2156/1.667, allocations: 8.644 MB / 0.8244 GB, free: 145.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/1.667, allocations: 0 / 0.8244 GB, free: 145.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00574/1.673, allocations: 3.745 MB / 0.8281 GB, free: 144.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003813/1.677, allocations: 489.7 kB / 0.8285 GB, free: 144.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02478/1.702, allocations: 14.75 MB / 0.8429 GB, free: 139.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005271/1.707, allocations: 3.759 MB / 0.8466 GB, free: 139.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002075/1.709, allocations: 367.2 kB / 0.8469 GB, free: 139.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.283e-06/1.709, allocations: 0 / 0.8469 GB, free: 139.1 MB / 474.7 MB Notification: Performance of Templates: time 0.367/2.076, allocations: 139.4 MB / 0.9831 GB, free: 134.4 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/BevelGear1D/BevelGear1D.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,inertia2.phi,inertia2.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w Variables in the result:inertia2.phi,inertia2.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w,time