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.001642/0.001642, allocations: 85.44 kB / 20.68 MB, free: 1.035 MB / 14.72 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.002198/0.002198, allocations: 163.6 kB / 23.96 MB, free: 4.164 MB / 14.72 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 1.467/1.467, allocations: 177.1 MB / 204.3 MB, free: 9.211 MB / 190.1 MB " [Timeout remaining time 178] 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 2.004e-06/2.004e-06, allocations: 3.938 kB / 325.1 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.983e-05/3.183e-05, allocations: 10.75 kB / 325.1 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01589/0.01592, allocations: 11.55 MB / 336.6 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01101/0.02693, allocations: 4.475 MB / 341.1 MB, free: 5.113 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002509/0.02944, allocations: 99.5 kB / 341.2 MB, free: 5.016 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009079/0.03851, allocations: 4.17 MB / 345.4 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006475/0.04499, allocations: 2.157 MB / 347.5 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002631/0.04762, allocations: 0.9043 MB / 348.4 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008256/0.05588, allocations: 5.193 MB / 353.6 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0073/0.06318, allocations: 4.183 MB / 357.8 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006999/0.07018, allocations: 2.904 MB / 360.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0052/0.07538, allocations: 2.728 MB / 363.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001525/0.0769, allocations: 460 kB / 363.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003324/0.08022, allocations: 1.272 MB / 365.2 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003282/0.08351, allocations: 2.45 MB / 367.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003387/0.08689, allocations: 1.612 MB / 369.2 MB, free: 8.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0116/0.0985, allocations: 8.813 MB / 378 MB, free: 24 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.0985, allocations: 0 / 378 MB, free: 24 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.09851, allocations: 0 / 378 MB, free: 24 kB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002411/0.09875, allocations: 0 / 378 MB, free: 24 kB / 334.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.03043/0.1292, allocations: 7.338 MB / 385.4 MB, free: 8.621 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/0.1292, allocations: 12.03 kB / 385.4 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01846/0.1477, allocations: 2.657 MB / 388 MB, free: 5.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008501/0.1562, allocations: 3.069 MB / 391.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002933/0.1565, allocations: 299.8 kB / 391.4 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001872/0.1584, allocations: 407.8 kB / 391.8 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03041/0.1888, allocations: 13.49 MB / 405.3 MB, free: 3.871 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001664/0.1889, allocations: 47.58 kB / 405.3 MB, free: 3.824 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007123/0.1897, allocations: 199.8 kB / 405.5 MB, free: 3.629 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004808/0.1945, allocations: 2.19 MB / 407.7 MB, free: 1.438 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02936/0.2238, allocations: 12.84 MB / 420.6 MB, free: 4.578 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06957/0.2934, allocations: 46.19 MB / 466.8 MB, free: 5.25 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1709/0.4643, allocations: 6.135 MB / 472.9 MB, free: 124.8 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004751/0.469, allocations: 3.719 MB / 476.6 MB, free: 124 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007915/0.4698, allocations: 181.6 kB / 476.8 MB, free: 124 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.742e-05/0.4699, allocations: 57.75 kB / 476.8 MB, free: 123.9 MB / 430.1 MB Notification: Performance of pre-optimization done (n=214): time 5.541e-06/0.4699, allocations: 0 / 476.8 MB, free: 123.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=252): time 0.09735/0.5672, allocations: 37.22 MB / 0.502 GB, free: 101.2 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.149e-05/0.5673, allocations: 209.9 kB / 0.5022 GB, free: 101 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004374/0.5717, allocations: 4.273 MB / 0.5064 GB, free: 96.89 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005426/0.5722, allocations: 69.7 kB / 0.5064 GB, free: 96.81 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001374/0.5736, allocations: 3.564 MB / 0.5099 GB, free: 93.52 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009209/0.5745, allocations: 0.9902 MB / 0.5109 GB, free: 92.55 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001856/0.5764, allocations: 1.643 MB / 0.5125 GB, free: 90.89 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.704e-05/0.5764, allocations: 305.1 kB / 0.5128 GB, free: 90.59 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004461/0.5809, allocations: 4.359 MB / 0.517 GB, free: 86.23 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005914/0.5868, allocations: 8.301 MB / 0.5252 GB, free: 76.02 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01219/0.599, allocations: 13.43 MB / 0.5383 GB, free: 60.68 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.587e-05/0.5991, allocations: 40 kB / 0.5383 GB, free: 60.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.02515/0.6242, allocations: 14.85 MB / 0.5528 GB, free: 45.79 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001543/0.6244, allocations: 64 kB / 0.5529 GB, free: 45.72 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002504/0.6246, allocations: 139.9 kB / 0.553 GB, free: 45.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006663/0.6313, allocations: 2.447 MB / 0.5554 GB, free: 43.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006489/0.6378, allocations: 1.856 MB / 0.5572 GB, free: 41.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0176/0.6554, allocations: 16.49 MB / 0.5733 GB, free: 24.49 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006908/0.6623, allocations: 0.5071 MB / 0.5738 GB, free: 23.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001484/0.6638, allocations: 0.5201 MB / 0.5743 GB, free: 23.46 MB / 430.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.004683/0.6685, allocations: 2.407 MB / 0.5767 GB, free: 21.05 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001366/0.6698, allocations: 385.5 kB / 0.577 GB, free: 20.67 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01541/0.6852, allocations: 9.696 MB / 0.5865 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.337e-05/0.6853, allocations: 28 kB / 0.5865 GB, free: 10.92 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.183e-05/0.6853, allocations: 11.94 kB / 0.5865 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.046e-05/0.6853, allocations: 11.95 kB / 0.5865 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03097/0.7163, allocations: 16.64 MB / 0.6028 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.32e-05/0.7163, allocations: 0 / 0.6028 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003585/0.7199, allocations: 0.6552 MB / 0.6034 GB, free: 9.609 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007198/0.7271, allocations: 2.235 MB / 0.6056 GB, free: 7.363 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008375/0.728, allocations: 159.8 kB / 0.6058 GB, free: 7.207 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02284/0.7508, allocations: 15.15 MB / 0.6206 GB, free: 7.77 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.7508, allocations: 0 / 0.6206 GB, free: 7.77 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2057/0.9565, allocations: 15.25 MB / 0.6355 GB, free: 138.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/0.9576, allocations: 381.6 kB / 0.6358 GB, free: 138.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001357/0.959, allocations: 53.47 kB / 0.6359 GB, free: 138.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00387/0.9628, allocations: 265.4 kB / 0.6361 GB, free: 138.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000991/0.9638, allocations: 274.8 kB / 0.6364 GB, free: 138.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004109/0.9642, allocations: 182.6 kB / 0.6366 GB, free: 138.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003619/0.9679, allocations: 2.515 MB / 0.639 GB, free: 137.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.9679, allocations: 1.812 kB / 0.639 GB, free: 137.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006489/0.9743, allocations: 1.508 MB / 0.6405 GB, free: 137.6 MB / 462.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.0007541/0.9751, allocations: 219.1 kB / 0.6407 GB, free: 137.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01346/0.9886, allocations: 10.14 MB / 0.6506 GB, free: 134.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/0.9886, allocations: 3.438 kB / 0.6506 GB, free: 134.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006536/0.9951, allocations: 4.441 MB / 0.6549 GB, free: 132.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003501/0.9986, allocations: 463.1 kB / 0.6554 GB, free: 132.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01863/1.017, allocations: 13.22 MB / 0.6683 GB, free: 122.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003368/1.021, allocations: 3.221 MB / 0.6714 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004821/1.025, allocations: 2.331 MB / 0.6737 GB, free: 118.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002033/1.027, allocations: 0.6365 MB / 0.6743 GB, free: 117.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.322e-06/1.027, allocations: 0 / 0.6743 GB, free: 117.8 MB / 462.1 MB Notification: Performance of Templates: time 0.1073/1.135, allocations: 74.95 MB / 0.7475 GB, free: 43.3 MB / 462.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.diff",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: 7.742633435875177]