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.001153/0.001153, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001322, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.9 MB, free: 8.996 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 59.12 kB / 306.9 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09868/0.1002, allocations: 50.54 MB / 357.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.2286/0.3289, allocations: 61.74 MB / 419.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02996/0.3589, allocations: 12.61 MB / 431.8 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01416/0.3731, allocations: 267.4 kB / 432.1 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0078/0.381, allocations: 4.082 MB / 436.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005662/0.3867, allocations: 1.912 MB / 438 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002322/0.389, allocations: 0.7529 MB / 438.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008521/0.3976, allocations: 7.012 MB / 445.8 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007351/0.405, allocations: 5.039 MB / 450.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003383/0.4084, allocations: 1.717 MB / 452.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004183/0.4126, allocations: 2.859 MB / 455.4 MB, free: 9.457 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001382/0.414, allocations: 328 kB / 455.7 MB, free: 9.137 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002973/0.417, allocations: 1.252 MB / 457 MB, free: 7.883 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002825/0.4199, allocations: 2.225 MB / 459.2 MB, free: 5.652 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00418/0.4241, allocations: 2.598 MB / 461.8 MB, free: 3.039 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007321/0.4314, allocations: 6.896 MB / 468.7 MB, free: 12.13 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.4315, allocations: 0 / 468.7 MB, free: 12.13 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4315, allocations: 0 / 468.7 MB, free: 12.13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003382/0.4318, allocations: 0 / 468.7 MB, free: 12.13 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.02999/0.4618, allocations: 6.973 MB / 475.7 MB, free: 5.082 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.4619, allocations: 8.031 kB / 475.7 MB, free: 5.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01573/0.4776, allocations: 2.568 MB / 478.3 MB, free: 2.496 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007231/0.4849, allocations: 3.058 MB / 481.3 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003313/0.4853, allocations: 299.8 kB / 481.6 MB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001803/0.4871, allocations: 407.7 kB / 482 MB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02907/0.5162, allocations: 13.25 MB / 495.3 MB, free: 0.6875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002362/0.5165, allocations: 43.59 kB / 495.3 MB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001514/0.518, allocations: 191.8 kB / 495.5 MB, free: 468 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004419/0.5224, allocations: 2.198 MB / 497.7 MB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0277/0.5501, allocations: 12.68 MB / 0.4984 GB, free: 1.559 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2476/0.7978, allocations: 49.27 MB / 0.5465 GB, free: 117.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02574/0.8235, allocations: 6.415 MB / 0.5528 GB, free: 116.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004969/0.8286, allocations: 3.916 MB / 0.5566 GB, free: 115.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000882/0.8295, allocations: 426.9 kB / 0.557 GB, free: 114.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/0.8295, allocations: 59 kB / 0.5571 GB, free: 114.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=214): time 5.511e-06/0.8296, allocations: 0 / 0.5571 GB, free: 114.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.09827/0.9278, allocations: 36.07 MB / 0.5923 GB, free: 92.54 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.907e-05/0.9279, allocations: 205.9 kB / 0.5925 GB, free: 92.29 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007021/0.935, allocations: 4.407 MB / 0.5968 GB, free: 87.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008285/0.9358, allocations: 65.09 kB / 0.5969 GB, free: 87.79 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001791/0.9376, allocations: 3.45 MB / 0.6002 GB, free: 84.36 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001403/0.9391, allocations: 0.9438 MB / 0.6011 GB, free: 83.42 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003893/0.943, allocations: 1.591 MB / 0.6027 GB, free: 81.82 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.164e-05/0.943, allocations: 303.6 kB / 0.603 GB, free: 81.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005329/0.9484, allocations: 4.32 MB / 0.6072 GB, free: 77.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006899/0.9553, allocations: 8.218 MB / 0.6152 GB, free: 67.13 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01317/0.9685, allocations: 13.37 MB / 0.6283 GB, free: 51.93 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001177/0.9686, allocations: 36 kB / 0.6283 GB, free: 51.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.02453/0.9932, allocations: 14.76 MB / 0.6427 GB, free: 37.11 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001408/0.9934, allocations: 60 kB / 0.6428 GB, free: 37.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001961/0.9936, allocations: 136 kB / 0.6429 GB, free: 36.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006188/0.9998, allocations: 2.463 MB / 0.6453 GB, free: 34.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006187/1.006, allocations: 1.778 MB / 0.6471 GB, free: 32.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01743/1.023, allocations: 15.86 MB / 0.6626 GB, free: 16.42 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006232/1.03, allocations: 471.1 kB / 0.663 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001496/1.031, allocations: 0.4919 MB / 0.6635 GB, free: 15.47 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.004607/1.036, allocations: 2.387 MB / 0.6658 GB, free: 13.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001342/1.037, allocations: 394.9 kB / 0.6662 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0151/1.052, allocations: 9.633 MB / 0.6756 GB, free: 3.016 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-05/1.052, allocations: 24 kB / 0.6756 GB, free: 2.992 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.631e-05/1.052, allocations: 12 kB / 0.6756 GB, free: 2.98 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.676e-05/1.053, allocations: 11.95 kB / 0.6757 GB, free: 2.969 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03388/1.086, allocations: 18.11 MB / 0.6933 GB, free: 0.832 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.823e-05/1.086, allocations: 4 kB / 0.6933 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003368/1.09, allocations: 0.5811 MB / 0.6939 GB, free: 252 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006635/1.097, allocations: 2.244 MB / 0.6961 GB, free: 13.99 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006679/1.097, allocations: 126.6 kB / 0.6962 GB, free: 13.87 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2061/1.303, allocations: 14.56 MB / 0.7104 GB, free: 160 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/1.303, allocations: 4.875 kB / 0.7104 GB, free: 160 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02508/1.329, allocations: 15.13 MB / 0.7252 GB, free: 156.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/1.33, allocations: 461.4 kB / 0.7257 GB, free: 156.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001341/1.331, allocations: 41.47 kB / 0.7257 GB, free: 156.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003502/1.334, allocations: 223.7 kB / 0.7259 GB, free: 156.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001023/1.336, allocations: 242.1 kB / 0.7261 GB, free: 156.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004173/1.336, allocations: 144.7 kB / 0.7263 GB, free: 156.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004588/1.341, allocations: 2.783 MB / 0.729 GB, free: 155.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.21e-07/1.341, allocations: 3.75 kB / 0.729 GB, free: 155.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007061/1.348, allocations: 1.41 MB / 0.7304 GB, free: 155.6 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.0008474/1.349, allocations: 192.6 kB / 0.7306 GB, free: 155.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01272/1.361, allocations: 10.36 MB / 0.7407 GB, free: 152 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/1.361, allocations: 0 / 0.7407 GB, free: 152 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005898/1.367, allocations: 4.618 MB / 0.7452 GB, free: 150.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004076/1.371, allocations: 477.6 kB / 0.7456 GB, free: 150 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02/1.391, allocations: 16.15 MB / 0.7614 GB, free: 135.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003246/1.395, allocations: 3.728 MB / 0.765 GB, free: 132.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002491/1.397, allocations: 0.5825 MB / 0.7656 GB, free: 132.1 MB / 478.1 MB Notification: Performance of SimCode: time 1.102e-06/1.397, allocations: 4 kB / 0.7656 GB, free: 132.1 MB / 478.1 MB Notification: Performance of Templates: time 0.3228/1.72, allocations: 146.2 MB / 0.9084 GB, free: 145.5 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