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.001467/0.001467, allocations: 110.5 kB / 17.73 MB, free: 5.191 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.001589/0.001589, allocations: 191 kB / 18.67 MB, free: 4.266 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.35/1.35, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 43.94 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2969, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01454/0.3115, allocations: 13.31 MB / 414.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.3218, allocations: 4.622 MB / 419.3 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002684/0.3245, allocations: 83.75 kB / 419.4 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007674/0.3323, allocations: 4.085 MB / 423.5 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006068/0.3384, allocations: 2.069 MB / 425.6 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002488/0.3409, allocations: 0.8071 MB / 426.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007529/0.3484, allocations: 4.744 MB / 431.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007645/0.3561, allocations: 5.115 MB / 436.2 MB, free: 5.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004192/0.3604, allocations: 1.939 MB / 438.2 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004327/0.3647, allocations: 2.691 MB / 440.9 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001778/0.3665, allocations: 456 kB / 441.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003501/0.3701, allocations: 1.338 MB / 442.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003292/0.3734, allocations: 2.322 MB / 445 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004697/0.3781, allocations: 2.731 MB / 447.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01213/0.3903, allocations: 8.725 MB / 456.4 MB, free: 1.609 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.3903, allocations: 0 / 456.4 MB, free: 1.609 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.707e-06/0.3904, allocations: 0 / 456.4 MB, free: 1.609 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003611/0.3907, allocations: 3.938 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.03073/0.4215, allocations: 6.941 MB / 463.4 MB, free: 10.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.4215, allocations: 12.03 kB / 463.4 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01549/0.437, allocations: 2.533 MB / 465.9 MB, free: 8.035 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007233/0.4443, allocations: 3.132 MB / 469.1 MB, free: 4.844 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002741/0.4446, allocations: 295.8 kB / 469.3 MB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001626/0.4463, allocations: 403.7 kB / 469.7 MB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02805/0.4743, allocations: 13.26 MB / 483 MB, free: 6.148 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002049/0.4746, allocations: 43.59 kB / 483 MB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001379/0.4759, allocations: 191.8 kB / 483.2 MB, free: 5.918 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004657/0.4806, allocations: 2.198 MB / 485.4 MB, free: 3.715 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02835/0.509, allocations: 12.68 MB / 498.1 MB, free: 7.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06866/0.5777, allocations: 49.05 MB / 0.5343 GB, free: 4.766 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2351/0.8128, allocations: 6.407 MB / 0.5406 GB, free: 128.7 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004059/0.8169, allocations: 3.915 MB / 0.5444 GB, free: 127.4 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000832/0.8178, allocations: 429.4 kB / 0.5448 GB, free: 127.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.874e-05/0.8178, allocations: 54.91 kB / 0.5449 GB, free: 127.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=214): time 4.499e-06/0.8178, allocations: 0 / 0.5449 GB, free: 127.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=252): time 0.1231/0.941, allocations: 36.07 MB / 0.5801 GB, free: 100.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.695e-05/0.9411, allocations: 209.9 kB / 0.5803 GB, free: 100.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00642/0.9475, allocations: 4.401 MB / 0.5846 GB, free: 95.95 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008827/0.9485, allocations: 65.7 kB / 0.5847 GB, free: 95.88 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001799/0.9503, allocations: 3.445 MB / 0.588 GB, free: 92.43 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001438/0.9517, allocations: 0.9534 MB / 0.589 GB, free: 91.49 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003917/0.9557, allocations: 1.587 MB / 0.5905 GB, free: 89.89 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.921e-05/0.9557, allocations: 313 kB / 0.5908 GB, free: 89.59 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005312/0.9611, allocations: 4.323 MB / 0.595 GB, free: 85.26 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007103/0.9682, allocations: 8.214 MB / 0.603 GB, free: 75.14 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01341/0.9816, allocations: 13.36 MB / 0.6161 GB, free: 59.88 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001387/0.9818, allocations: 40 kB / 0.6161 GB, free: 59.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.02536/1.007, allocations: 14.75 MB / 0.6305 GB, free: 45.07 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001528/1.007, allocations: 68.06 kB / 0.6306 GB, free: 45 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002134/1.008, allocations: 139.9 kB / 0.6307 GB, free: 44.87 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006276/1.014, allocations: 2.457 MB / 0.6331 GB, free: 42.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006371/1.02, allocations: 1.782 MB / 0.6349 GB, free: 40.61 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01766/1.038, allocations: 17.03 MB / 0.6515 GB, free: 23.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006927/1.045, allocations: 474.6 kB / 0.652 GB, free: 22.72 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001794/1.047, allocations: 0.4996 MB / 0.6524 GB, free: 22.22 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.005394/1.052, allocations: 2.373 MB / 0.6548 GB, free: 19.84 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001426/1.054, allocations: 402.8 kB / 0.6552 GB, free: 19.44 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01486/1.069, allocations: 9.622 MB / 0.6645 GB, free: 9.781 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-05/1.069, allocations: 33.08 kB / 0.6646 GB, free: 9.75 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.645e-05/1.069, allocations: 12 kB / 0.6646 GB, free: 9.738 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.451e-05/1.069, allocations: 11.95 kB / 0.6646 GB, free: 9.727 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03248/1.101, allocations: 18 MB / 0.6822 GB, free: 7.703 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-05/1.101, allocations: 8.969 kB / 0.6822 GB, free: 7.695 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003321/1.105, allocations: 0.581 MB / 0.6828 GB, free: 7.113 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006437/1.111, allocations: 2.243 MB / 0.685 GB, free: 4.863 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001084/1.112, allocations: 127.2 kB / 0.6851 GB, free: 4.742 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02018/1.132, allocations: 15.66 MB / 0.7004 GB, free: 4.66 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/1.132, allocations: 7.938 kB / 0.7004 GB, free: 4.652 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02415/1.157, allocations: 15.13 MB / 0.7152 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001288/1.158, allocations: 455.8 kB / 0.7156 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001494/1.159, allocations: 40 kB / 0.7156 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003574/1.163, allocations: 227.6 kB / 0.7158 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009848/1.164, allocations: 241.5 kB / 0.7161 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005876/1.165, allocations: 151.3 kB / 0.7162 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005372/1.17, allocations: 2.771 MB / 0.7189 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.41e-07/1.17, allocations: 0 / 0.7189 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007522/1.178, allocations: 1.428 MB / 0.7203 GB, free: 116 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.001031/1.179, allocations: 202.9 kB / 0.7205 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.2557/1.434, allocations: 10.37 MB / 0.7306 GB, free: 178.8 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/1.434, allocations: 0 / 0.7306 GB, free: 178.8 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005702/1.44, allocations: 4.634 MB / 0.7352 GB, free: 178.3 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003102/1.443, allocations: 0.4958 MB / 0.7357 GB, free: 178.1 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02085/1.464, allocations: 13.65 MB / 0.749 GB, free: 172.6 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004282/1.468, allocations: 3.734 MB / 0.7526 GB, free: 170.9 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002307/1.471, allocations: 0.586 MB / 0.7532 GB, free: 170.5 MB / 0.5137 GB Notification: Performance of SimCode: time 7.81e-07/1.471, allocations: 0 / 0.7532 GB, free: 170.5 MB / 0.5137 GB Notification: Performance of Templates: time 0.1596/1.63, allocations: 147.7 MB / 0.8974 GB, free: 24.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