Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 162.7 kB / 25.61 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9424/0.9424, allocations: 177.2 MB / 206.1 MB, free: 4.496 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|inertia2.phi|inertia2.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|inertia2.phi|inertia2.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 274.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.429e-05/1.587e-05, allocations: 2.312 kB / 274.2 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01044/0.01046, allocations: 12.48 MB / 286.7 MB, free: 7.875 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007539/0.018, allocations: 4.556 MB / 291.2 MB, free: 3.309 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001208/0.01921, allocations: 99.5 kB / 291.3 MB, free: 3.211 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003939/0.02315, allocations: 4.314 MB / 295.6 MB, free: 14.88 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003465/0.02661, allocations: 2.173 MB / 297.8 MB, free: 12.7 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001265/0.02788, allocations: 0.916 MB / 298.7 MB, free: 11.78 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003972/0.03185, allocations: 5.203 MB / 303.9 MB, free: 6.57 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003747/0.0356, allocations: 4.297 MB / 308.2 MB, free: 2.207 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003678/0.03927, allocations: 3.614 MB / 311.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003061/0.04233, allocations: 2.623 MB / 314.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000495/0.04283, allocations: 444 kB / 314.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001645/0.04447, allocations: 1.256 MB / 316.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001477/0.04595, allocations: 2.443 MB / 318.6 MB, free: 7.816 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001684/0.04764, allocations: 1.597 MB / 320.2 MB, free: 6.215 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004833/0.05247, allocations: 5.477 MB / 325.7 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.05247, allocations: 3.938 kB / 325.7 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.05248, allocations: 0 / 325.7 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.012e-05/0.05257, allocations: 4 kB / 325.7 MB, free: 0.7109 MB / 298.7 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.009004/0.06157, allocations: 7.083 MB / 332.8 MB, free: 9.551 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.06161, allocations: 8.031 kB / 332.8 MB, free: 9.543 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007665/0.06928, allocations: 2.225 MB / 335 MB, free: 7.312 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002694/0.07197, allocations: 2.409 MB / 337.4 MB, free: 4.844 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001474/0.07212, allocations: 303.8 kB / 337.7 MB, free: 4.547 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004532/0.07257, allocations: 403.8 kB / 338.1 MB, free: 4.152 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006636/0.07921, allocations: 6.343 MB / 344.4 MB, free: 12.78 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.925e-05/0.0793, allocations: 43.62 kB / 344.5 MB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003096/0.07961, allocations: 187.9 kB / 344.7 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001422/0.08103, allocations: 1.734 MB / 346.4 MB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004754/0.08578, allocations: 2.746 MB / 349.2 MB, free: 8.043 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2176/0.3033, allocations: 47.29 MB / 396.4 MB, free: 22.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003878/0.3072, allocations: 1.526 MB / 398 MB, free: 22.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005584/0.3078, allocations: 0.4917 MB / 398.5 MB, free: 22.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004586/0.3124, allocations: 3.709 MB / 402.2 MB, free: 21.5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.3124, allocations: 63.17 kB / 402.2 MB, free: 21.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=155): time 3.727e-06/0.3124, allocations: 0 / 402.2 MB, free: 21.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=165): time 0.01754/0.3299, allocations: 7.342 MB / 409.6 MB, free: 20.54 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.33, allocations: 204.9 kB / 409.8 MB, free: 20.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003193/0.3332, allocations: 3.92 MB / 413.7 MB, free: 19.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.654e-05/0.3333, allocations: 52.64 kB / 413.7 MB, free: 19.52 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001582/0.3349, allocations: 3.924 MB / 417.7 MB, free: 16.81 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004888/0.3353, allocations: 0.7317 MB / 418.4 MB, free: 16.13 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001156/0.3365, allocations: 1.445 MB / 419.8 MB, free: 14.82 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.718e-05/0.3366, allocations: 480.6 kB / 420.3 MB, free: 14.35 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000951/0.3375, allocations: 0.649 MB / 421 MB, free: 13.7 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002894/0.3404, allocations: 6.771 MB / 427.7 MB, free: 4.383 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006134/0.3465, allocations: 8.055 MB / 435.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.87e-05/0.3466, allocations: 40 kB / 435.8 MB, free: 10.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=850) (initialization): time 0.00823/0.3548, allocations: 5.59 MB / 441.4 MB, free: 5.484 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.38e-05/0.3549, allocations: 71.94 kB / 441.5 MB, free: 5.414 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001416/0.355, allocations: 144 kB / 441.6 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00167/0.3567, allocations: 0.614 MB / 442.2 MB, free: 4.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003201/0.3599, allocations: 1.462 MB / 443.7 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003476/0.3634, allocations: 3.258 MB / 447 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003654/0.367, allocations: 291.7 kB / 447.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003799/0.3674, allocations: 354.4 kB / 447.6 MB, free: 15.23 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 656 * 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 (808): * Single equations (assignments): 802 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001825/0.3692, allocations: 0.7014 MB / 448.3 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005342/0.3698, allocations: 405.6 kB / 448.7 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002394/0.3722, allocations: 1.454 MB / 450.1 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.307e-05/0.3722, allocations: 19.36 kB / 450.2 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/0.3722, allocations: 6.391 kB / 450.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.325e-05/0.3722, allocations: 11.97 kB / 450.2 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00789/0.3801, allocations: 4.269 MB / 454.5 MB, free: 8.656 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.3801, allocations: 8.062 kB / 454.5 MB, free: 8.648 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006482/0.3808, allocations: 227.7 kB / 454.7 MB, free: 8.426 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00141/0.3822, allocations: 433.5 kB / 455.1 MB, free: 7.996 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001065/0.3823, allocations: 35.98 kB / 455.1 MB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00305/0.3853, allocations: 2.676 MB / 457.8 MB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3853, allocations: 3.938 kB / 457.8 MB, free: 5.215 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003934/0.3893, allocations: 2.44 MB / 460.3 MB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005454/0.3898, allocations: 351.8 kB / 460.6 MB, free: 2.414 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002697/0.3901, allocations: 28 kB / 460.6 MB, free: 2.387 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007474/0.3908, allocations: 35.17 kB / 460.7 MB, free: 2.355 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/0.3911, allocations: 104.7 kB / 460.8 MB, free: 2.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.166e-05/0.3911, allocations: 43.98 kB / 460.8 MB, free: 2.207 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001509/0.3926, allocations: 1.602 MB / 462.4 MB, free: 0.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3926, allocations: 0 / 462.4 MB, free: 0.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004344/0.397, allocations: 1.172 MB / 463.6 MB, free: 15.57 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (132): * Single equations (assignments): 126 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,8,80.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004125/0.3974, allocations: 183.6 kB / 463.8 MB, free: 15.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003925/0.4013, allocations: 3.119 MB / 466.9 MB, free: 12.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4013, allocations: 0 / 466.9 MB, free: 12.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001539/0.4029, allocations: 0.9519 MB / 467.8 MB, free: 11.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001418/0.4043, allocations: 434.4 kB / 468.3 MB, free: 10.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01173/0.416, allocations: 8.594 MB / 476.9 MB, free: 2.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001289/0.4173, allocations: 1.409 MB / 478.3 MB, free: 0.9102 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001357/0.4187, allocations: 0.5307 MB / 478.8 MB, free: 388 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009013/0.4196, allocations: 0.6152 MB / 479.4 MB, free: 15.76 MB / 394.7 MB Notification: Performance of SimCode: time 2.014e-06/0.4196, allocations: 4 kB / 479.4 MB, free: 15.76 MB / 394.7 MB Notification: Performance of Templates: time 0.2136/0.6331, allocations: 38.62 MB / 0.5059 GB, free: 125.9 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/BevelGear1D/BevelGear1D.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Warning: Resultfile and Reference have different end time points! Reffile[2001]=0.400000 File[2502]=1.000000 " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.461793931666762]