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.0009597/0.0009597, allocations: 96.81 kB / 17.31 MB, free: 5.941 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.001043/0.001043, allocations: 182.1 kB / 18.21 MB, free: 5.418 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.108/1.108, allocations: 223.3 MB / 242.3 MB, free: 14.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002019/0.0002019, allocations: 12.56 kB / 302.1 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06942/0.06964, allocations: 50.41 MB / 352.5 MB, free: 3.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.1732/0.2429, allocations: 64.15 MB / 416.6 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02185/0.2648, allocations: 13.28 MB / 429.9 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007532/0.2723, allocations: 283.3 kB / 430.2 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001017/0.2734, allocations: 0.4896 MB / 430.7 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003411/0.2768, allocations: 1.939 MB / 432.6 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001216/0.278, allocations: 0.7333 MB / 433.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005465/0.2835, allocations: 6.975 MB / 440.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007448/0.2909, allocations: 7.171 MB / 447.5 MB, free: 5.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001275/0.2922, allocations: 1.342 MB / 448.8 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002243/0.2945, allocations: 2.398 MB / 451.2 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002718/0.2948, allocations: 176 kB / 451.4 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00146/0.2962, allocations: 1.131 MB / 452.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001367/0.2976, allocations: 2.01 MB / 454.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00158/0.2992, allocations: 2.358 MB / 456.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004606/0.3038, allocations: 6.769 MB / 463.7 MB, free: 4.801 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.3038, allocations: 0 / 463.7 MB, free: 4.801 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3038, allocations: 0 / 463.7 MB, free: 4.801 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.839e-05/0.3039, allocations: 0 / 463.7 MB, free: 4.801 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.02126/0.3252, allocations: 5.74 MB / 469.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.3252, allocations: 12.03 kB / 469.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01509/0.3403, allocations: 2.588 MB / 472 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004662/0.345, allocations: 3.081 MB / 475.1 MB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/0.3451, allocations: 307.8 kB / 475.4 MB, free: 8.938 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006954/0.3459, allocations: 403.7 kB / 475.8 MB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01949/0.3653, allocations: 13.27 MB / 489.1 MB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001014/0.3655, allocations: 51.58 kB / 489.1 MB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004915/0.366, allocations: 187.9 kB / 489.3 MB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003793/0.3698, allocations: 2.194 MB / 491.5 MB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02063/0.3904, allocations: 12.7 MB / 0.4924 GB, free: 11.36 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1944/0.5848, allocations: 49.24 MB / 0.5405 GB, free: 122.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02212/0.607, allocations: 6.448 MB / 0.5468 GB, free: 121.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003831/0.6108, allocations: 3.917 MB / 0.5506 GB, free: 121.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006759/0.6115, allocations: 434.7 kB / 0.551 GB, free: 121.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.6116, allocations: 54.17 kB / 0.5511 GB, free: 121.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=214): time 4.369e-06/0.6116, allocations: 1.375 kB / 0.5511 GB, free: 121.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.08059/0.6922, allocations: 36.12 MB / 0.5863 GB, free: 99.97 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.6922, allocations: 211.4 kB / 0.5865 GB, free: 99.72 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004026/0.6963, allocations: 4.405 MB / 0.5908 GB, free: 95.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002532/0.6965, allocations: 63.11 kB / 0.5909 GB, free: 95.23 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001194/0.6977, allocations: 3.446 MB / 0.5943 GB, free: 91.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005738/0.6983, allocations: 0.9488 MB / 0.5952 GB, free: 90.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006296/0.6989, allocations: 0.5806 MB / 0.5958 GB, free: 90.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 2.845e-05/0.699, allocations: 313 kB / 0.5961 GB, free: 89.96 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004067/0.703, allocations: 4.329 MB / 0.6003 GB, free: 85.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004992/0.708, allocations: 8.223 MB / 0.6083 GB, free: 75.64 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009833/0.7179, allocations: 13.39 MB / 0.6214 GB, free: 60.54 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.625e-05/0.7179, allocations: 40 kB / 0.6214 GB, free: 60.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.0172/0.7351, allocations: 14.77 MB / 0.6358 GB, free: 45.71 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.457e-05/0.7352, allocations: 62.78 kB / 0.6359 GB, free: 45.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.39e-05/0.7353, allocations: 136 kB / 0.636 GB, free: 45.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005313/0.7406, allocations: 2.457 MB / 0.6384 GB, free: 43.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004732/0.7454, allocations: 1.786 MB / 0.6402 GB, free: 41.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01425/0.7596, allocations: 15.87 MB / 0.6557 GB, free: 25.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004469/0.7641, allocations: 476.2 kB / 0.6561 GB, free: 24.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004863/0.7646, allocations: 0.4969 MB / 0.6566 GB, free: 24.05 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.002531/0.7671, allocations: 2.376 MB / 0.6589 GB, free: 21.66 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005136/0.7677, allocations: 398.8 kB / 0.6593 GB, free: 21.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01261/0.7803, allocations: 9.653 MB / 0.6687 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-05/0.7803, allocations: 28.7 kB / 0.6688 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.7803, allocations: 8 kB / 0.6688 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.522e-05/0.7803, allocations: 11.95 kB / 0.6688 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02219/0.8025, allocations: 18.13 MB / 0.6865 GB, free: 9.395 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.8026, allocations: 7.938 kB / 0.6865 GB, free: 9.387 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002677/0.8052, allocations: 0.5949 MB / 0.6871 GB, free: 8.793 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005635/0.8109, allocations: 2.226 MB / 0.6892 GB, free: 6.555 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002576/0.8111, allocations: 131.8 kB / 0.6894 GB, free: 6.426 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0162/0.8273, allocations: 14.56 MB / 0.7036 GB, free: 7.484 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.8274, allocations: 12.03 kB / 0.7036 GB, free: 7.473 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1554/0.9828, allocations: 15.14 MB / 0.7184 GB, free: 163.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008617/0.9837, allocations: 466.5 kB / 0.7188 GB, free: 163.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009008/0.9846, allocations: 39.41 kB / 0.7189 GB, free: 163.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002955/0.9875, allocations: 233.9 kB / 0.7191 GB, free: 163.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007172/0.9883, allocations: 237.9 kB / 0.7193 GB, free: 163.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003533/0.9886, allocations: 147.7 kB / 0.7195 GB, free: 163.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004089/0.9927, allocations: 2.779 MB / 0.7222 GB, free: 162.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.9927, allocations: 0 / 0.7222 GB, free: 162.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005066/0.9978, allocations: 1.424 MB / 0.7236 GB, free: 162.4 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.0004704/0.9983, allocations: 195.1 kB / 0.7238 GB, free: 162.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01035/1.009, allocations: 10.37 MB / 0.7339 GB, free: 158.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/1.009, allocations: 3.812 kB / 0.7339 GB, free: 158.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004659/1.013, allocations: 4.625 MB / 0.7384 GB, free: 157.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002522/1.016, allocations: 471.8 kB / 0.7389 GB, free: 156.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/1.029, allocations: 16.28 MB / 0.7547 GB, free: 147.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002637/1.032, allocations: 3.728 MB / 0.7584 GB, free: 144.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001663/1.034, allocations: 0.589 MB / 0.759 GB, free: 144.3 MB / 478.1 MB Notification: Performance of SimCode: time 7.41e-07/1.034, allocations: 0 / 0.759 GB, free: 144.3 MB / 478.1 MB Notification: Performance of Templates: time 0.2419/1.276, allocations: 145.3 MB / 0.9009 GB, free: 156 MB / 478.1 MB 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