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.00172/0.00172, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002089/0.002089, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.4 MB / 247.1 MB, free: 9.094 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001417, allocations: 60.12 kB / 307.1 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1038, allocations: 50.54 MB / 357.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.2332/0.337, allocations: 61.75 MB / 419.4 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03122/0.3683, allocations: 12.51 MB / 431.9 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01327/0.3816, allocations: 271.3 kB / 432.2 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008003/0.3897, allocations: 3.926 MB / 436.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005969/0.3957, allocations: 1.9 MB / 438 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002384/0.3981, allocations: 0.7568 MB / 438.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007232/0.4053, allocations: 4.988 MB / 443.7 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007999/0.4134, allocations: 5.391 MB / 449.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003746/0.4172, allocations: 1.943 MB / 451.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004541/0.4217, allocations: 2.96 MB / 454 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001673/0.4235, allocations: 452 kB / 454.5 MB, free: 10.49 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003484/0.427, allocations: 1.338 MB / 455.8 MB, free: 9.152 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003239/0.4302, allocations: 2.346 MB / 458.2 MB, free: 6.801 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00485/0.4351, allocations: 2.727 MB / 460.9 MB, free: 4.059 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008073/0.4432, allocations: 6.958 MB / 467.8 MB, free: 13.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.802e-06/0.4432, allocations: 3.938 kB / 467.8 MB, free: 13.08 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4433, allocations: 4 kB / 467.9 MB, free: 13.08 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003339/0.4436, allocations: 0 / 467.9 MB, free: 13.08 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.03183/0.4754, allocations: 6.971 MB / 474.8 MB, free: 6.035 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.4755, allocations: 8.031 kB / 474.8 MB, free: 6.027 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01711/0.4926, allocations: 2.556 MB / 477.4 MB, free: 3.461 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007713/0.5004, allocations: 3.069 MB / 480.5 MB, free: 340 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003345/0.5008, allocations: 299.8 kB / 480.8 MB, free: 40 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00201/0.5028, allocations: 411.7 kB / 481.2 MB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03022/0.533, allocations: 13.25 MB / 494.4 MB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002707/0.5333, allocations: 47.53 kB / 494.4 MB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001591/0.535, allocations: 191.9 kB / 494.6 MB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004637/0.5396, allocations: 2.19 MB / 496.8 MB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02791/0.5675, allocations: 12.68 MB / 0.4976 GB, free: 2.52 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2485/0.8161, allocations: 49.28 MB / 0.5457 GB, free: 117.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0261/0.8423, allocations: 6.41 MB / 0.5519 GB, free: 116.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004787/0.8471, allocations: 3.907 MB / 0.5558 GB, free: 115.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008956/0.848, allocations: 416 kB / 0.5562 GB, free: 114.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.404e-05/0.8481, allocations: 61.66 kB / 0.5562 GB, free: 114.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=214): time 4.989e-06/0.8481, allocations: 0 / 0.5562 GB, free: 114.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.09547/0.9436, allocations: 36.07 MB / 0.5914 GB, free: 92.71 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.81e-05/0.9437, allocations: 213.5 kB / 0.5916 GB, free: 92.46 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005065/0.9487, allocations: 4.408 MB / 0.5959 GB, free: 88.03 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008228/0.9496, allocations: 65.38 kB / 0.596 GB, free: 87.96 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001516/0.9511, allocations: 3.441 MB / 0.5994 GB, free: 84.54 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001231/0.9524, allocations: 0.9548 MB / 0.6003 GB, free: 83.59 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002121/0.9545, allocations: 1.587 MB / 0.6019 GB, free: 81.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.025e-05/0.9545, allocations: 308.4 kB / 0.6021 GB, free: 81.69 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004741/0.9593, allocations: 4.327 MB / 0.6064 GB, free: 77.36 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006402/0.9657, allocations: 8.21 MB / 0.6144 GB, free: 67.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01247/0.9782, allocations: 13.37 MB / 0.6274 GB, free: 52.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.776e-05/0.9784, allocations: 40 kB / 0.6275 GB, free: 52.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.02219/1.001, allocations: 14.75 MB / 0.6419 GB, free: 37.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.343e-05/1.001, allocations: 67.94 kB / 0.642 GB, free: 37.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001138/1.001, allocations: 136 kB / 0.6421 GB, free: 37.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005876/1.007, allocations: 2.455 MB / 0.6445 GB, free: 34.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006235/1.013, allocations: 1.786 MB / 0.6462 GB, free: 32.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01691/1.03, allocations: 17.05 MB / 0.6629 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006584/1.037, allocations: 478.8 kB / 0.6633 GB, free: 14.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001451/1.038, allocations: 0.4919 MB / 0.6638 GB, free: 14.45 MB / 446.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.004227/1.042, allocations: 2.383 MB / 0.6661 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001065/1.043, allocations: 390.9 kB / 0.6665 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01375/1.057, allocations: 9.643 MB / 0.6759 GB, free: 1.992 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.153e-05/1.057, allocations: 24 kB / 0.6759 GB, free: 1.969 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-05/1.057, allocations: 12 kB / 0.676 GB, free: 1.957 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.047e-05/1.057, allocations: 7.969 kB / 0.676 GB, free: 1.949 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03145/1.089, allocations: 18.12 MB / 0.6937 GB, free: 15.81 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.756e-05/1.089, allocations: 0 / 0.6937 GB, free: 15.81 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003286/1.092, allocations: 0.5888 MB / 0.6942 GB, free: 15.22 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006397/1.098, allocations: 2.242 MB / 0.6964 GB, free: 12.96 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006224/1.099, allocations: 123.8 kB / 0.6965 GB, free: 12.84 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2073/1.306, allocations: 15.62 MB / 0.7118 GB, free: 159.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.306, allocations: 0.9688 kB / 0.7118 GB, free: 159.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02497/1.331, allocations: 15.12 MB / 0.7266 GB, free: 156.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001203/1.333, allocations: 455.4 kB / 0.727 GB, free: 155.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001335/1.334, allocations: 44.33 kB / 0.727 GB, free: 155.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003621/1.338, allocations: 223.4 kB / 0.7273 GB, free: 155.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000999/1.339, allocations: 247.8 kB / 0.7275 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003954/1.339, allocations: 145.4 kB / 0.7276 GB, free: 155.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004098/1.343, allocations: 2.781 MB / 0.7303 GB, free: 154.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.12e-07/1.343, allocations: 0 / 0.7303 GB, free: 154.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006502/1.35, allocations: 1.416 MB / 0.7317 GB, free: 154.7 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 (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.0007294/1.35, allocations: 189.2 kB / 0.7319 GB, free: 154.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01772/1.368, allocations: 12.96 MB / 0.7446 GB, free: 150.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.291e-06/1.368, allocations: 0 / 0.7446 GB, free: 150.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005927/1.374, allocations: 4.618 MB / 0.7491 GB, free: 146.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003592/1.378, allocations: 0.4953 MB / 0.7496 GB, free: 146.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01976/1.398, allocations: 16.14 MB / 0.7653 GB, free: 131.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003306/1.401, allocations: 3.726 MB / 0.769 GB, free: 128.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002377/1.403, allocations: 0.5886 MB / 0.7695 GB, free: 127.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.132e-06/1.403, allocations: 0.5469 kB / 0.7695 GB, free: 127.8 MB / 478.1 MB Notification: Performance of Templates: time 0.3127/1.716, allocations: 146.2 MB / 0.9123 GB, free: 142.8 MB / 478.1 MB 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