Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001643/0.001643, allocations: 115.7 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00212/0.00212, allocations: 217.9 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 64.08 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.265, allocations: 50.54 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01487/0.2799, allocations: 13.19 MB / 423.1 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009963/0.2899, allocations: 4.657 MB / 427.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002554/0.2925, allocations: 87.69 kB / 427.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007809/0.3004, allocations: 4.065 MB / 431.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005964/0.3064, allocations: 2.038 MB / 434 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002396/0.3088, allocations: 0.8266 MB / 434.8 MB, free: 8.641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00754/0.3163, allocations: 4.779 MB / 439.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007408/0.3238, allocations: 5.11 MB / 444.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003552/0.3274, allocations: 1.928 MB / 446.6 MB, free: 12.74 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004419/0.3319, allocations: 2.699 MB / 449.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001736/0.3336, allocations: 452 kB / 449.8 MB, free: 9.594 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003442/0.3371, allocations: 1.315 MB / 451.1 MB, free: 8.277 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003066/0.3402, allocations: 2.322 MB / 453.4 MB, free: 5.949 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004685/0.3449, allocations: 2.7 MB / 456.1 MB, free: 3.234 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01054/0.3555, allocations: 8.691 MB / 464.8 MB, free: 10.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.778e-06/0.3555, allocations: 4 kB / 464.8 MB, free: 10.51 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.3555, allocations: 8 kB / 464.8 MB, free: 10.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003264/0.3559, allocations: 0 / 464.8 MB, free: 10.5 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1750 * Number of variables: 1750 Notification: Performance of Generate backend data structure: time 0.03052/0.3864, allocations: 6.969 MB / 471.8 MB, free: 3.461 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/0.3865, allocations: 8.031 kB / 471.8 MB, free: 3.453 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01747/0.4039, allocations: 2.568 MB / 474.3 MB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007946/0.4119, allocations: 3.116 MB / 477.5 MB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003041/0.4123, allocations: 303.8 kB / 477.7 MB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001807/0.4141, allocations: 399.8 kB / 478.1 MB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02816/0.4423, allocations: 13.25 MB / 491.4 MB, free: 15.01 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001751/0.4425, allocations: 55.48 kB / 491.4 MB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009606/0.4435, allocations: 183.9 kB / 491.6 MB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004402/0.4479, allocations: 2.198 MB / 493.8 MB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02677/0.4747, allocations: 12.68 MB / 0.4946 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3118/0.7865, allocations: 49.05 MB / 0.5425 GB, free: 111.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02372/0.8103, allocations: 6.412 MB / 0.5488 GB, free: 110.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004166/0.8145, allocations: 3.916 MB / 0.5526 GB, free: 110.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007912/0.8153, allocations: 419.9 kB / 0.553 GB, free: 110.2 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/0.8153, allocations: 60.09 kB / 0.5531 GB, free: 110.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=214): time 4.278e-06/0.8153, allocations: 3.719 kB / 0.5531 GB, free: 110.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=252): time 0.09224/0.9076, allocations: 36.07 MB / 0.5883 GB, free: 83.37 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.245e-05/0.9077, allocations: 209.2 kB / 0.5885 GB, free: 83.13 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004972/0.9127, allocations: 4.412 MB / 0.5928 GB, free: 78.7 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008548/0.9136, allocations: 61.7 kB / 0.5929 GB, free: 78.63 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001362/0.9149, allocations: 3.451 MB / 0.5962 GB, free: 75.18 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001321/0.9163, allocations: 0.9461 MB / 0.5972 GB, free: 74.25 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002114/0.9184, allocations: 1.587 MB / 0.5987 GB, free: 72.65 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.314e-05/0.9184, allocations: 305.1 kB / 0.599 GB, free: 72.35 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004679/0.9231, allocations: 4.323 MB / 0.6032 GB, free: 68.02 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006739/0.9299, allocations: 8.215 MB / 0.6112 GB, free: 57.98 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01295/0.9429, allocations: 13.36 MB / 0.6243 GB, free: 42.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001535/0.9431, allocations: 40 kB / 0.6243 GB, free: 42.76 MB / 462.1 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.02316/0.9663, allocations: 14.76 MB / 0.6388 GB, free: 27.98 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.229e-05/0.9664, allocations: 62.81 kB / 0.6388 GB, free: 27.92 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001238/0.9665, allocations: 140.2 kB / 0.6389 GB, free: 27.78 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006325/0.9728, allocations: 2.456 MB / 0.6413 GB, free: 25.31 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006387/0.9793, allocations: 1.778 MB / 0.6431 GB, free: 23.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01769/0.997, allocations: 17.02 MB / 0.6597 GB, free: 6.102 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007148/1.004, allocations: 476.2 kB / 0.6602 GB, free: 5.637 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001991/1.006, allocations: 499.7 kB / 0.6606 GB, free: 5.148 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * 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 (826): * Single equations (assignments): 820 * 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.006952/1.013, allocations: 2.389 MB / 0.663 GB, free: 2.746 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00176/1.015, allocations: 402.2 kB / 0.6634 GB, free: 2.352 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01759/1.033, allocations: 9.63 MB / 0.6728 GB, free: 8.691 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.351e-05/1.033, allocations: 24 kB / 0.6728 GB, free: 8.668 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.274e-05/1.033, allocations: 12 kB / 0.6728 GB, free: 8.656 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-05/1.033, allocations: 11.95 kB / 0.6728 GB, free: 8.645 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03674/1.07, allocations: 18.02 MB / 0.6904 GB, free: 6.613 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.741e-05/1.07, allocations: 0 / 0.6904 GB, free: 6.613 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003536/1.073, allocations: 0.5849 MB / 0.691 GB, free: 6.027 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006851/1.08, allocations: 2.245 MB / 0.6932 GB, free: 3.773 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008294/1.081, allocations: 127.8 kB / 0.6933 GB, free: 3.648 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02158/1.103, allocations: 15.67 MB / 0.7086 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/1.103, allocations: 0 / 0.7086 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02582/1.128, allocations: 15.14 MB / 0.7234 GB, free: 4.352 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001244/1.13, allocations: 459.7 kB / 0.7238 GB, free: 3.879 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001557/1.131, allocations: 48 kB / 0.7238 GB, free: 3.832 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003931/1.135, allocations: 215.7 kB / 0.7241 GB, free: 3.621 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001174/1.136, allocations: 233.6 kB / 0.7243 GB, free: 3.391 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000644/1.137, allocations: 155.5 kB / 0.7244 GB, free: 3.242 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005248/1.142, allocations: 2.771 MB / 0.7271 GB, free: 476 kB / 0.5138 GB Notification: Performance of sort global known variables: time 2.81e-07/1.142, allocations: 0 / 0.7271 GB, free: 476 kB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007584/1.15, allocations: 1.415 MB / 0.7285 GB, free: 15.05 MB / 0.5294 GB 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 (195): * Single equations (assignments): 189 * 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.001026/1.151, allocations: 189.3 kB / 0.7287 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2316/1.383, allocations: 10.39 MB / 0.7388 GB, free: 187.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/1.383, allocations: 0 / 0.7388 GB, free: 187.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006137/1.389, allocations: 4.631 MB / 0.7434 GB, free: 187 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003323/1.392, allocations: 498 kB / 0.7438 GB, free: 186.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01985/1.412, allocations: 13.65 MB / 0.7572 GB, free: 181.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003662/1.416, allocations: 3.735 MB / 0.7608 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002356/1.418, allocations: 0.5862 MB / 0.7614 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of SimCode: time 6.71e-07/1.418, allocations: 0 / 0.7614 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of Templates: time 0.1477/1.566, allocations: 147 MB / 0.9049 GB, free: 34.93 MB / 0.5294 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/BevelGear1D/BevelGear1D.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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