Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002788/0.002788, allocations: 104 kB / 18.4 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003197/0.003197, allocations: 190.3 kB / 19.33 MB, free: 3.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.682/3.682, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002208/0.002208, allocations: 55.92 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2445, allocations: 46.61 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.5691/0.8138, allocations: 13.97 MB / 389.8 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02081/0.8346, allocations: 4.727 MB / 394.5 MB, free: 2.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007632/0.8424, allocations: 85.84 kB / 394.6 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01378/0.8563, allocations: 4.069 MB / 398.7 MB, free: 372 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01427/0.8706, allocations: 2.087 MB / 400.8 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005457/0.8761, allocations: 0.8149 MB / 401.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0176/0.8938, allocations: 4.602 MB / 406.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01633/0.9102, allocations: 5.136 MB / 411.3 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008517/0.9188, allocations: 1.945 MB / 413.3 MB, free: 8.789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009129/0.928, allocations: 2.721 MB / 416 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003498/0.9315, allocations: 455.1 kB / 416.4 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00709/0.9387, allocations: 1.327 MB / 417.7 MB, free: 5.543 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006219/0.945, allocations: 2.346 MB / 420.1 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009867/0.9549, allocations: 2.731 MB / 422.8 MB, free: 456 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0213/0.9763, allocations: 8.76 MB / 431.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.85e-05/0.9764, allocations: 0 / 431.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.9764, allocations: 4 kB / 431.6 MB, free: 7.652 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005459/0.9769, allocations: 0 / 431.6 MB, free: 7.652 MB / 350.1 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.05541/1.032, allocations: 6.958 MB / 438.5 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.603e-05/1.032, allocations: 8.031 kB / 438.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03091/1.063, allocations: 2.537 MB / 441.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01734/1.081, allocations: 3.179 MB / 444.3 MB, free: 10.83 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000669/1.082, allocations: 303.8 kB / 444.6 MB, free: 10.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00387/1.086, allocations: 411.6 kB / 445 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05568/1.141, allocations: 13.27 MB / 458.2 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003412/1.142, allocations: 51.53 kB / 458.3 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002268/1.144, allocations: 187.8 kB / 458.5 MB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00774/1.152, allocations: 2.19 MB / 460.7 MB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06244/1.214, allocations: 12.7 MB / 473.4 MB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1551/1.369, allocations: 49.2 MB / 0.5103 GB, free: 10.55 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05683/1.426, allocations: 6.441 MB / 0.5166 GB, free: 3.957 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01419/1.441, allocations: 3.92 MB / 0.5204 GB, free: 28 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002108/1.443, allocations: 420.3 kB / 0.5208 GB, free: 15.56 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001426/1.443, allocations: 59.81 kB / 0.5209 GB, free: 15.49 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 2.543e-05/1.443, allocations: 0 / 0.5209 GB, free: 15.49 MB / 462.1 MB Notification: Performance of matching and sorting (n=255): time 0.8084/2.251, allocations: 36.17 MB / 0.5562 GB, free: 147.9 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002419/2.252, allocations: 205.4 kB / 0.5564 GB, free: 147.7 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02373/2.276, allocations: 4.43 MB / 0.5607 GB, free: 146.2 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001839/2.278, allocations: 62.02 kB / 0.5608 GB, free: 146.1 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.007971/2.286, allocations: 3.458 MB / 0.5642 GB, free: 144 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003878/2.29, allocations: 0.9494 MB / 0.5651 GB, free: 143.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01297/2.303, allocations: 1.605 MB / 0.5667 GB, free: 142.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002076/2.303, allocations: 306.7 kB / 0.567 GB, free: 142.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0172/2.32, allocations: 4.332 MB / 0.5712 GB, free: 141 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02184/2.342, allocations: 8.239 MB / 0.5792 GB, free: 134.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0458/2.388, allocations: 13.39 MB / 0.5923 GB, free: 125.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004984/2.389, allocations: 39.16 kB / 0.5923 GB, free: 125.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.07341/2.462, allocations: 14.78 MB / 0.6068 GB, free: 116.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002209/2.462, allocations: 64 kB / 0.6068 GB, free: 116.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003682/2.463, allocations: 136 kB / 0.607 GB, free: 116 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01242/2.475, allocations: 2.456 MB / 0.6094 GB, free: 113.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01329/2.489, allocations: 1.791 MB / 0.6111 GB, free: 111.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03577/2.524, allocations: 17.05 MB / 0.6278 GB, free: 94.24 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01614/2.541, allocations: 467.2 kB / 0.6282 GB, free: 93.79 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003399/2.544, allocations: 0.5018 MB / 0.6287 GB, free: 93.29 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * 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 (830): * Single equations (assignments): 824 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,16,100.0%), (4,21,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01001/2.554, allocations: 2.392 MB / 0.631 GB, free: 90.89 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002232/2.557, allocations: 398.8 kB / 0.6314 GB, free: 90.49 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02715/2.584, allocations: 9.657 MB / 0.6408 GB, free: 80.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001301/2.584, allocations: 27.94 kB / 0.6409 GB, free: 80.77 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.519e-05/2.584, allocations: 12 kB / 0.6409 GB, free: 80.76 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.822e-05/2.584, allocations: 15.89 kB / 0.6409 GB, free: 80.75 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0556/2.64, allocations: 18.04 MB / 0.6585 GB, free: 62.71 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.311e-05/2.64, allocations: 0 / 0.6585 GB, free: 62.71 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005835/2.646, allocations: 0.5871 MB / 0.6591 GB, free: 62.12 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01085/2.657, allocations: 2.243 MB / 0.6613 GB, free: 59.87 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001602/2.658, allocations: 127.8 kB / 0.6614 GB, free: 59.74 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03853/2.697, allocations: 15.66 MB / 0.6767 GB, free: 43.66 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.293e-06/2.697, allocations: 0 / 0.6767 GB, free: 43.66 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04725/2.744, allocations: 15.18 MB / 0.6915 GB, free: 28.39 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006063/2.75, allocations: 1.062 MB / 0.6926 GB, free: 27.31 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002434/2.753, allocations: 40.88 kB / 0.6926 GB, free: 27.27 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007005/2.76, allocations: 223.7 kB / 0.6928 GB, free: 27.05 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002/2.762, allocations: 237.5 kB / 0.693 GB, free: 26.82 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008441/2.763, allocations: 151.2 kB / 0.6932 GB, free: 26.68 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.008624/2.772, allocations: 2.791 MB / 0.6959 GB, free: 23.88 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.242e-06/2.772, allocations: 4 kB / 0.6959 GB, free: 23.88 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01616/2.788, allocations: 1.432 MB / 0.6973 GB, free: 22.45 MB / 478.1 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (4,18,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001911/2.79, allocations: 195.9 kB / 0.6975 GB, free: 22.25 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02683/2.817, allocations: 10.42 MB / 0.7077 GB, free: 11.82 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.6e-05/2.817, allocations: 0 / 0.7077 GB, free: 11.82 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01238/2.829, allocations: 4.64 MB / 0.7122 GB, free: 7.145 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007249/2.837, allocations: 498.7 kB / 0.7127 GB, free: 6.672 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04987/2.887, allocations: 13.69 MB / 0.7261 GB, free: 8.961 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01263/2.899, allocations: 3.74 MB / 0.7297 GB, free: 5.191 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005685/2.905, allocations: 0.5847 MB / 0.7303 GB, free: 4.605 MB / 494.1 MB Notification: Performance of SimCode: time 2.564e-06/2.905, allocations: 0 / 0.7303 GB, free: 4.605 MB / 494.1 MB Notification: Performance of Templates: time 0.8271/3.732, allocations: 148.2 MB / 0.875 GB, free: 30.09 MB / 494.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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