Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 114.8 kB / 17.74 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 188.5 kB / 18.67 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 51.92 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3015/0.3027, allocations: 49.43 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.0149/0.3177, allocations: 13.31 MB / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01038/0.3281, allocations: 4.614 MB / 419.3 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003057/0.3312, allocations: 79.81 kB / 419.4 MB, free: 6.801 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007994/0.3393, allocations: 4.092 MB / 423.5 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007368/0.3467, allocations: 2.068 MB / 425.6 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003232/0.35, allocations: 0.8071 MB / 426.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009734/0.3597, allocations: 4.75 MB / 431.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0081/0.3679, allocations: 5.11 MB / 436.2 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004221/0.3722, allocations: 1.935 MB / 438.2 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004689/0.3769, allocations: 2.703 MB / 440.9 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001841/0.3788, allocations: 452 kB / 441.3 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003664/0.3825, allocations: 1.327 MB / 442.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003602/0.3861, allocations: 2.342 MB / 445 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006048/0.3922, allocations: 2.715 MB / 447.7 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0142/0.4064, allocations: 8.734 MB / 456.4 MB, free: 1.613 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.4065, allocations: 4 kB / 456.4 MB, free: 1.609 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4065, allocations: 0 / 456.4 MB, free: 1.609 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004148/0.4069, allocations: 4 kB / 456.4 MB, free: 1.605 MB / 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.04776/0.4547, allocations: 6.933 MB / 463.4 MB, free: 10.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.247e-05/0.4548, allocations: 8.031 kB / 463.4 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03191/0.4867, allocations: 2.537 MB / 465.9 MB, free: 8.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0124/0.4992, allocations: 3.132 MB / 469.1 MB, free: 4.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004492/0.4997, allocations: 299.8 kB / 469.4 MB, free: 4.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002594/0.5023, allocations: 407.7 kB / 469.7 MB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04963/0.552, allocations: 13.25 MB / 483 MB, free: 6.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002335/0.5522, allocations: 47.53 kB / 483 MB, free: 6.113 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001628/0.5539, allocations: 195.8 kB / 483.2 MB, free: 5.922 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008245/0.5622, allocations: 2.198 MB / 485.4 MB, free: 3.719 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0489/0.6111, allocations: 12.66 MB / 498.1 MB, free: 7.039 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1203/0.7315, allocations: 49.05 MB / 0.5343 GB, free: 4.781 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3649/1.097, allocations: 6.412 MB / 0.5406 GB, free: 128.7 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007385/1.104, allocations: 3.921 MB / 0.5444 GB, free: 127.4 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0016/1.106, allocations: 426.3 kB / 0.5448 GB, free: 127.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.201e-05/1.106, allocations: 60.84 kB / 0.5449 GB, free: 127.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=214): time 1.235e-05/1.106, allocations: 0 / 0.5449 GB, free: 127.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=252): time 0.1459/1.252, allocations: 36.06 MB / 0.5801 GB, free: 100.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.469e-05/1.252, allocations: 213.9 kB / 0.5803 GB, free: 100.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005008/1.257, allocations: 4.4 MB / 0.5846 GB, free: 95.98 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007912/1.258, allocations: 64.98 kB / 0.5847 GB, free: 95.91 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001481/1.259, allocations: 3.445 MB / 0.588 GB, free: 92.47 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001159/1.26, allocations: 0.9516 MB / 0.589 GB, free: 91.52 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002177/1.262, allocations: 1.583 MB / 0.5905 GB, free: 89.93 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.364e-05/1.263, allocations: 317 kB / 0.5908 GB, free: 89.62 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004711/1.267, allocations: 4.323 MB / 0.595 GB, free: 85.29 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006943/1.274, allocations: 8.214 MB / 0.603 GB, free: 75.17 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01253/1.287, allocations: 13.35 MB / 0.6161 GB, free: 59.92 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001013/1.287, allocations: 40 kB / 0.6161 GB, free: 59.88 MB / 462.1 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.02358/1.31, allocations: 14.76 MB / 0.6305 GB, free: 45.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.647e-05/1.311, allocations: 65.97 kB / 0.6306 GB, free: 45.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000137/1.311, allocations: 139.9 kB / 0.6307 GB, free: 44.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006403/1.317, allocations: 2.457 MB / 0.6331 GB, free: 42.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00642/1.324, allocations: 1.782 MB / 0.6349 GB, free: 40.65 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01752/1.341, allocations: 17.03 MB / 0.6515 GB, free: 23.22 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006705/1.348, allocations: 471.3 kB / 0.652 GB, free: 22.76 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00161/1.35, allocations: 0.4957 MB / 0.6524 GB, free: 22.27 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.004815/1.354, allocations: 2.392 MB / 0.6548 GB, free: 19.86 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001244/1.356, allocations: 394.8 kB / 0.6552 GB, free: 19.47 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01498/1.371, allocations: 9.625 MB / 0.6646 GB, free: 9.812 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.396e-05/1.371, allocations: 28 kB / 0.6646 GB, free: 9.785 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.627e-05/1.371, allocations: 12 kB / 0.6646 GB, free: 9.773 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.891e-05/1.371, allocations: 11.95 kB / 0.6646 GB, free: 9.762 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03011/1.401, allocations: 18.01 MB / 0.6822 GB, free: 7.734 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.994e-05/1.401, allocations: 3.938 kB / 0.6822 GB, free: 7.73 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003542/1.405, allocations: 0.5855 MB / 0.6828 GB, free: 7.145 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006788/1.411, allocations: 2.24 MB / 0.685 GB, free: 4.895 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008235/1.412, allocations: 131.7 kB / 0.6851 GB, free: 4.766 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02102/1.433, allocations: 15.66 MB / 0.7004 GB, free: 4.691 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/1.433, allocations: 7.938 kB / 0.7004 GB, free: 4.684 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02473/1.458, allocations: 15.14 MB / 0.7152 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0012/1.459, allocations: 455.8 kB / 0.7156 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001483/1.461, allocations: 47.98 kB / 0.7156 GB, free: 4.941 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003914/1.465, allocations: 219.7 kB / 0.7159 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001134/1.466, allocations: 241.5 kB / 0.7161 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006265/1.467, allocations: 147.8 kB / 0.7162 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005388/1.472, allocations: 2.775 MB / 0.7189 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4e-07/1.472, allocations: 0 / 0.7189 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007791/1.48, allocations: 1.425 MB / 0.7203 GB, free: 144 kB / 0.4981 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.001051/1.481, allocations: 197.8 kB / 0.7205 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.2336/1.715, allocations: 10.38 MB / 0.7307 GB, free: 178.8 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/1.715, allocations: 1.969 kB / 0.7307 GB, free: 178.8 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006462/1.721, allocations: 4.625 MB / 0.7352 GB, free: 178.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003892/1.725, allocations: 0.4901 MB / 0.7356 GB, free: 178.1 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02081/1.746, allocations: 13.64 MB / 0.749 GB, free: 172.6 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004348/1.75, allocations: 3.726 MB / 0.7526 GB, free: 171 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002337/1.753, allocations: 0.5878 MB / 0.7532 GB, free: 170.6 MB / 0.5137 GB Notification: Performance of SimCode: time 6.01e-07/1.753, allocations: 0 / 0.7532 GB, free: 170.6 MB / 0.5137 GB Notification: Performance of Templates: time 0.1444/1.897, allocations: 147 MB / 0.8968 GB, free: 25 MB / 0.5137 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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