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.0008661/0.0008657, allocations: 96.5 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008698/0.0008698, allocations: 207.8 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002933/0.0002933, allocations: 8 kB / 308.4 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.103, allocations: 51.52 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.2456/0.3486, allocations: 60.21 MB / 420.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02867/0.3773, allocations: 12.54 MB / 432.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01195/0.3893, allocations: 271.3 kB / 432.9 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002025/0.3914, allocations: 0.4896 MB / 433.4 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005725/0.3972, allocations: 1.919 MB / 435.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002291/0.3995, allocations: 0.7528 MB / 436.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008993/0.4085, allocations: 7.021 MB / 443.1 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01096/0.4195, allocations: 7.157 MB / 450.3 MB, free: 340 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00288/0.4224, allocations: 1.338 MB / 451.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003756/0.4262, allocations: 2.402 MB / 454 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009667/0.4272, allocations: 172 kB / 454.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002536/0.4297, allocations: 1.104 MB / 455.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002416/0.4322, allocations: 2.002 MB / 457.3 MB, free: 9.297 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00281/0.435, allocations: 2.342 MB / 459.6 MB, free: 6.934 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006954/0.442, allocations: 6.73 MB / 466.4 MB, free: 192 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.442, allocations: 0 / 466.4 MB, free: 192 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.442, allocations: 0 / 466.4 MB, free: 192 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002462/0.4423, allocations: 4 kB / 466.4 MB, free: 188 kB / 366.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.02586/0.4682, allocations: 5.768 MB / 472.1 MB, free: 10.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.4682, allocations: 12.03 kB / 472.1 MB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01748/0.4857, allocations: 2.638 MB / 474.8 MB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007406/0.4932, allocations: 3.069 MB / 477.8 MB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003287/0.4935, allocations: 307.8 kB / 478.1 MB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0017/0.4953, allocations: 399.8 kB / 478.5 MB, free: 3.863 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02992/0.5252, allocations: 13.28 MB / 491.8 MB, free: 5.836 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002205/0.5255, allocations: 51.53 kB / 491.9 MB, free: 5.785 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001343/0.5268, allocations: 183.9 kB / 492 MB, free: 5.605 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004752/0.5316, allocations: 2.19 MB / 494.2 MB, free: 3.406 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02824/0.5599, allocations: 12.71 MB / 0.4951 GB, free: 6.688 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2648/0.8247, allocations: 49.23 MB / 0.5431 GB, free: 116.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02519/0.8499, allocations: 6.438 MB / 0.5494 GB, free: 115.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00477/0.8547, allocations: 3.922 MB / 0.5532 GB, free: 115.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008363/0.8556, allocations: 431.5 kB / 0.5537 GB, free: 114.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/0.8556, allocations: 59.94 kB / 0.5537 GB, free: 114.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=214): time 4.509e-06/0.8556, allocations: 0 / 0.5537 GB, free: 114.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.09769/0.9533, allocations: 36.13 MB / 0.589 GB, free: 92.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.164e-05/0.9534, allocations: 205.9 kB / 0.5892 GB, free: 92.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004829/0.9583, allocations: 4.41 MB / 0.5935 GB, free: 88.02 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005916/0.9589, allocations: 64.89 kB / 0.5936 GB, free: 87.95 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001407/0.9603, allocations: 3.445 MB / 0.5969 GB, free: 84.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009027/0.9612, allocations: 0.9488 MB / 0.5979 GB, free: 83.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006978/0.9619, allocations: 0.5843 MB / 0.5984 GB, free: 82.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.83e-05/0.962, allocations: 303.8 kB / 0.5987 GB, free: 82.69 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004687/0.9667, allocations: 4.327 MB / 0.6029 GB, free: 78.36 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006429/0.9731, allocations: 8.23 MB / 0.611 GB, free: 68.32 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01331/0.9865, allocations: 13.38 MB / 0.624 GB, free: 53.17 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001096/0.9866, allocations: 40 kB / 0.6241 GB, free: 53.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.02425/1.011, allocations: 14.76 MB / 0.6385 GB, free: 38.35 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.478e-05/1.011, allocations: 71.88 kB / 0.6386 GB, free: 38.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001335/1.011, allocations: 136 kB / 0.6387 GB, free: 38.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006162/1.017, allocations: 2.461 MB / 0.6411 GB, free: 35.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00607/1.023, allocations: 1.788 MB / 0.6428 GB, free: 33.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01656/1.04, allocations: 15.85 MB / 0.6583 GB, free: 17.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00656/1.047, allocations: 479.2 kB / 0.6588 GB, free: 17.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00158/1.048, allocations: 0.501 MB / 0.6593 GB, free: 16.68 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.004582/1.053, allocations: 2.387 MB / 0.6616 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001135/1.054, allocations: 390.9 kB / 0.662 GB, free: 13.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01458/1.069, allocations: 9.657 MB / 0.6714 GB, free: 4.211 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.067e-05/1.069, allocations: 28 kB / 0.6714 GB, free: 4.184 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.25e-05/1.069, allocations: 8 kB / 0.6714 GB, free: 4.176 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.704e-05/1.069, allocations: 15.95 kB / 0.6715 GB, free: 4.16 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03052/1.099, allocations: 18.13 MB / 0.6892 GB, free: 2.008 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.755e-05/1.099, allocations: 0 / 0.6892 GB, free: 2.008 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003189/1.102, allocations: 0.5888 MB / 0.6897 GB, free: 1.418 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006526/1.109, allocations: 2.23 MB / 0.6919 GB, free: 15.18 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005745/1.11, allocations: 128.5 kB / 0.692 GB, free: 15.05 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01906/1.129, allocations: 14.56 MB / 0.7063 GB, free: 100 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/1.129, allocations: 0 / 0.7063 GB, free: 100 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2281/1.357, allocations: 15.15 MB / 0.721 GB, free: 157.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/1.358, allocations: 467.3 kB / 0.7215 GB, free: 157.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001127/1.359, allocations: 41.84 kB / 0.7215 GB, free: 157.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003401/1.363, allocations: 232.7 kB / 0.7218 GB, free: 157.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000834/1.363, allocations: 233.9 kB / 0.722 GB, free: 157.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004521/1.364, allocations: 152.2 kB / 0.7221 GB, free: 157.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004777/1.369, allocations: 2.773 MB / 0.7248 GB, free: 156.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.369, allocations: 1.312 kB / 0.7248 GB, free: 156.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006107/1.375, allocations: 1.425 MB / 0.7262 GB, free: 156.1 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.0007411/1.376, allocations: 183.5 kB / 0.7264 GB, free: 156 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01335/1.389, allocations: 10.38 MB / 0.7365 GB, free: 152.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/1.389, allocations: 3.906 kB / 0.7365 GB, free: 152.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006455/1.395, allocations: 4.622 MB / 0.741 GB, free: 150.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004902/1.4, allocations: 471.1 kB / 0.7415 GB, free: 150.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02247/1.423, allocations: 16.29 MB / 0.7574 GB, free: 136.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004702/1.428, allocations: 3.733 MB / 0.7611 GB, free: 133.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002364/1.43, allocations: 0.5883 MB / 0.7616 GB, free: 132.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.262e-06/1.43, allocations: 0 / 0.7616 GB, free: 132.8 MB / 478.1 MB Notification: Performance of Templates: time 0.351/1.781, allocations: 145.3 MB / 0.9035 GB, free: 146.2 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