Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001623/0.001623, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001748/0.001748, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.447/1.447, allocations: 227.7 MB / 247.7 MB, free: 10.42 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 62.89 kB / 307.9 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1094, allocations: 50.54 MB / 358.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01714/0.1266, allocations: 13.18 MB / 371.6 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1792/0.3058, allocations: 4.67 MB / 376.3 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002715/0.3086, allocations: 80.91 kB / 376.4 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007395/0.316, allocations: 4.08 MB / 380.4 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0063/0.3224, allocations: 2.032 MB / 382.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00229/0.3247, allocations: 0.8349 MB / 383.3 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007137/0.3318, allocations: 4.766 MB / 388.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008587/0.3405, allocations: 5.128 MB / 393.2 MB, free: 3.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004639/0.3452, allocations: 1.903 MB / 395.1 MB, free: 2.215 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004405/0.3496, allocations: 2.707 MB / 397.8 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001533/0.3511, allocations: 452 kB / 398.2 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003256/0.3544, allocations: 1.313 MB / 399.6 MB, free: 308 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00323/0.3577, allocations: 2.312 MB / 401.9 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005016/0.3627, allocations: 2.713 MB / 404.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01078/0.3735, allocations: 8.444 MB / 413 MB, free: 3.133 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3736, allocations: 0 / 413 MB, free: 3.133 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.337e-06/0.3736, allocations: 8 kB / 413 MB, free: 3.125 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003184/0.3739, allocations: 0 / 413 MB, free: 3.125 MB / 318.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.03018/0.4041, allocations: 6.96 MB / 420 MB, free: 12.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.4041, allocations: 8.031 kB / 420 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01688/0.421, allocations: 2.567 MB / 422.6 MB, free: 9.609 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007708/0.4288, allocations: 3.069 MB / 425.6 MB, free: 6.512 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002663/0.4291, allocations: 298.1 kB / 425.9 MB, free: 6.258 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001375/0.4305, allocations: 403 kB / 426.3 MB, free: 5.898 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02825/0.4587, allocations: 13.25 MB / 439.6 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001474/0.4589, allocations: 51.52 kB / 439.6 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006368/0.4596, allocations: 188.3 kB / 439.8 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004577/0.4641, allocations: 2.193 MB / 442 MB, free: 5.621 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02856/0.4927, allocations: 12.67 MB / 454.7 MB, free: 8.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08482/0.5776, allocations: 49.28 MB / 0.4922 GB, free: 6.695 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03795/0.6156, allocations: 6.413 MB / 0.4984 GB, free: 136 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008527/0.6242, allocations: 3.909 MB / 0.5022 GB, free: 12.21 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001483/0.6257, allocations: 418.5 kB / 0.5026 GB, free: 11.76 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.514e-05/0.6258, allocations: 59.81 kB / 0.5027 GB, free: 11.7 MB / 430.1 MB Notification: Performance of pre-optimization done (n=214): time 5.32e-06/0.6258, allocations: 3.938 kB / 0.5027 GB, free: 11.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=252): time 0.3003/0.9261, allocations: 36.08 MB / 0.5379 GB, free: 138.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.9262, allocations: 207.8 kB / 0.5381 GB, free: 137.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007653/0.9339, allocations: 4.409 MB / 0.5424 GB, free: 136.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008439/0.9348, allocations: 62.36 kB / 0.5425 GB, free: 136.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002231/0.937, allocations: 3.441 MB / 0.5458 GB, free: 133.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001534/0.9385, allocations: 0.9506 MB / 0.5468 GB, free: 132.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002308/0.9409, allocations: 1.589 MB / 0.5483 GB, free: 132.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.814e-05/0.9409, allocations: 317.2 kB / 0.5486 GB, free: 131.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005955/0.9469, allocations: 4.325 MB / 0.5529 GB, free: 130.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007938/0.9549, allocations: 8.214 MB / 0.5609 GB, free: 124 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.013/0.9679, allocations: 13.36 MB / 0.5739 GB, free: 115.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001263/0.9681, allocations: 38.81 kB / 0.574 GB, free: 115.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.02323/0.9913, allocations: 14.76 MB / 0.5884 GB, free: 102.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.449e-05/0.9914, allocations: 68.25 kB / 0.5884 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001413/0.9916, allocations: 136 kB / 0.5886 GB, free: 102.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005919/0.9975, allocations: 2.461 MB / 0.591 GB, free: 100.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006263/1.004, allocations: 1.782 MB / 0.5927 GB, free: 98.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01677/1.021, allocations: 17.02 MB / 0.6093 GB, free: 80.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007257/1.028, allocations: 475.2 kB / 0.6098 GB, free: 80.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001521/1.029, allocations: 0.4958 MB / 0.6103 GB, free: 79.98 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.005062/1.035, allocations: 2.386 MB / 0.6126 GB, free: 77.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001575/1.036, allocations: 390.9 kB / 0.613 GB, free: 77.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01375/1.05, allocations: 9.641 MB / 0.6224 GB, free: 67.53 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.367e-05/1.05, allocations: 31.52 kB / 0.6224 GB, free: 67.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.612e-05/1.05, allocations: 9.781 kB / 0.6224 GB, free: 67.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.783e-05/1.05, allocations: 15.95 kB / 0.6224 GB, free: 67.48 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02883/1.079, allocations: 18.1 MB / 0.6401 GB, free: 49.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-05/1.079, allocations: 0 / 0.6401 GB, free: 49.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003299/1.082, allocations: 0.5811 MB / 0.6407 GB, free: 48.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005917/1.088, allocations: 2.246 MB / 0.6429 GB, free: 46.54 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008664/1.089, allocations: 131.8 kB / 0.643 GB, free: 46.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01646/1.106, allocations: 15.62 MB / 0.6583 GB, free: 30.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.686e-06/1.106, allocations: 3.984 kB / 0.6583 GB, free: 30.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02198/1.128, allocations: 15.11 MB / 0.673 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001509/1.129, allocations: 463.7 kB / 0.6735 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001849/1.131, allocations: 44 kB / 0.6735 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004173/1.135, allocations: 223.4 kB / 0.6737 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00118/1.136, allocations: 237.5 kB / 0.6739 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006603/1.137, allocations: 147.8 kB / 0.6741 GB, free: 14.07 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004755/1.142, allocations: 2.771 MB / 0.6768 GB, free: 11.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.51e-07/1.142, allocations: 4 kB / 0.6768 GB, free: 11.29 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008654/1.151, allocations: 1.419 MB / 0.6782 GB, free: 9.871 MB / 446.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.001024/1.152, allocations: 191.5 kB / 0.6784 GB, free: 9.684 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02007/1.172, allocations: 12.97 MB / 0.691 GB, free: 12.72 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/1.172, allocations: 0 / 0.691 GB, free: 12.72 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1927/1.364, allocations: 4.618 MB / 0.6955 GB, free: 146.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004336/1.369, allocations: 0.4938 MB / 0.696 GB, free: 146.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02523/1.394, allocations: 13.77 MB / 0.7095 GB, free: 142.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004773/1.399, allocations: 3.731 MB / 0.7131 GB, free: 141.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002432/1.401, allocations: 0.5896 MB / 0.7137 GB, free: 141.3 MB / 462.1 MB Notification: Performance of SimCode: time 6.81e-07/1.401, allocations: 0 / 0.7137 GB, free: 141.3 MB / 462.1 MB Notification: Performance of Templates: time 0.1444/1.546, allocations: 146.2 MB / 0.8565 GB, free: 7.297 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/BevelGear1D/BevelGear1D.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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