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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008097/0.0008097, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003156/0.003156, allocations: 144.4 kB / 24.68 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8252/0.8252, allocations: 173.4 MB / 201.2 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,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=5002,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.816e-05/1.956e-05, allocations: 2.281 kB / 319.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.008885/0.008905, allocations: 11.64 MB / 331.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00638/0.01528, allocations: 4.438 MB / 335.8 MB, free: 5.691 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.01648, allocations: 99.5 kB / 335.9 MB, free: 5.594 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00375/0.02023, allocations: 4.186 MB / 340.1 MB, free: 1.395 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003023/0.02325, allocations: 2.2 MB / 342.3 MB, free: 15.18 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.02436, allocations: 0.8731 MB / 343.1 MB, free: 14.3 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003335/0.02769, allocations: 5.125 MB / 348.3 MB, free: 9.168 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002639/0.03033, allocations: 4.183 MB / 352.4 MB, free: 4.918 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002225/0.03255, allocations: 2.912 MB / 355.3 MB, free: 2 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00195/0.0345, allocations: 2.736 MB / 358.1 MB, free: 15.26 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003496/0.03485, allocations: 456 kB / 358.5 MB, free: 14.81 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001253/0.03611, allocations: 1.287 MB / 359.8 MB, free: 13.52 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001512/0.03762, allocations: 2.47 MB / 362.3 MB, free: 11.05 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001006/0.03862, allocations: 1.632 MB / 363.9 MB, free: 9.41 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005433/0.04406, allocations: 8.856 MB / 372.8 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.04406, allocations: 0 / 372.8 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.04406, allocations: 0 / 372.8 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.091e-05/0.04412, allocations: 0 / 372.8 MB, free: 0.5273 MB / 330.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.01378/0.0579, allocations: 7.31 MB / 380.1 MB, free: 9.148 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.05795, allocations: 12.92 kB / 380.1 MB, free: 9.137 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007624/0.06557, allocations: 2.626 MB / 382.7 MB, free: 6.504 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00401/0.06958, allocations: 3.05 MB / 385.8 MB, free: 3.402 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.06972, allocations: 299.8 kB / 386.1 MB, free: 3.109 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005303/0.07025, allocations: 411.8 kB / 386.5 MB, free: 2.707 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01468/0.08493, allocations: 13.5 MB / 400 MB, free: 4.445 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-05/0.08502, allocations: 43.64 kB / 400 MB, free: 4.402 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003902/0.08541, allocations: 199.8 kB / 400.2 MB, free: 4.207 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002318/0.08772, allocations: 2.198 MB / 402.4 MB, free: 2.008 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01655/0.1043, allocations: 12.82 MB / 415.2 MB, free: 5.164 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1987/0.303, allocations: 46.2 MB / 461.4 MB, free: 90 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01168/0.3147, allocations: 6.131 MB / 467.6 MB, free: 89.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002704/0.3174, allocations: 3.718 MB / 471.3 MB, free: 88.68 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003823/0.3178, allocations: 180.2 kB / 471.4 MB, free: 88.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.3178, allocations: 58.38 kB / 471.5 MB, free: 88.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=214): time 4.799e-06/0.3178, allocations: 0 / 471.5 MB, free: 88.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.05162/0.3694, allocations: 37.21 MB / 0.4968 GB, free: 55.66 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.876e-05/0.3695, allocations: 209.9 kB / 0.497 GB, free: 55.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003416/0.3729, allocations: 4.271 MB / 0.5012 GB, free: 51.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000314/0.3732, allocations: 73.7 kB / 0.5012 GB, free: 51.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009795/0.3742, allocations: 3.573 MB / 0.5047 GB, free: 47.94 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005953/0.3748, allocations: 0.9837 MB / 0.5057 GB, free: 46.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001386/0.3762, allocations: 1.651 MB / 0.5073 GB, free: 45.31 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.161e-05/0.3762, allocations: 305.1 kB / 0.5076 GB, free: 45.01 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003405/0.3796, allocations: 4.355 MB / 0.5118 GB, free: 40.65 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004255/0.3839, allocations: 8.31 MB / 0.5199 GB, free: 30.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008946/0.3928, allocations: 13.43 MB / 0.5331 GB, free: 15.27 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-05/0.3929, allocations: 36 kB / 0.5331 GB, free: 15.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.0138/0.4067, allocations: 14.84 MB / 0.5476 GB, free: 388 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.509e-05/0.4067, allocations: 67.94 kB / 0.5477 GB, free: 320 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.298e-05/0.4068, allocations: 135.5 kB / 0.5478 GB, free: 188 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004041/0.4108, allocations: 2.457 MB / 0.5502 GB, free: 13.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003562/0.4144, allocations: 1.852 MB / 0.552 GB, free: 11.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01424/0.4286, allocations: 16.48 MB / 0.5681 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00426/0.4329, allocations: 0.5033 MB / 0.5686 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006257/0.4335, allocations: 0.5192 MB / 0.5691 GB, free: 10.07 MB / 442.7 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.004064/0.4376, allocations: 2.407 MB / 0.5714 GB, free: 7.652 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008784/0.4385, allocations: 389.5 kB / 0.5718 GB, free: 7.27 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01046/0.4489, allocations: 9.7 MB / 0.5813 GB, free: 13.54 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.047e-05/0.449, allocations: 31.94 kB / 0.5813 GB, free: 13.51 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.782e-05/0.449, allocations: 12.56 kB / 0.5813 GB, free: 13.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.626e-05/0.449, allocations: 11.95 kB / 0.5813 GB, free: 13.48 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01931/0.4683, allocations: 16.63 MB / 0.5976 GB, free: 12.87 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-05/0.4683, allocations: 7.984 kB / 0.5976 GB, free: 12.86 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001565/0.4699, allocations: 0.6475 MB / 0.5982 GB, free: 12.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003555/0.4734, allocations: 2.248 MB / 0.6004 GB, free: 9.957 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000244/0.4737, allocations: 151.8 kB / 0.6006 GB, free: 9.809 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01262/0.4863, allocations: 15.16 MB / 0.6154 GB, free: 10.36 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4863, allocations: 1.797 kB / 0.6154 GB, free: 10.36 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1774/0.6637, allocations: 15.25 MB / 0.6303 GB, free: 179.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009734/0.6647, allocations: 382.5 kB / 0.6306 GB, free: 179.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004993/0.6652, allocations: 51.5 kB / 0.6307 GB, free: 179.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001581/0.6668, allocations: 266.4 kB / 0.6309 GB, free: 179.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004452/0.6672, allocations: 277.4 kB / 0.6312 GB, free: 179.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001892/0.6674, allocations: 174.9 kB / 0.6314 GB, free: 179.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002131/0.6695, allocations: 2.518 MB / 0.6338 GB, free: 178.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6695, allocations: 0 / 0.6338 GB, free: 178.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003905/0.6734, allocations: 1.528 MB / 0.6353 GB, free: 178.1 MB / 490.7 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.0004707/0.6739, allocations: 222.9 kB / 0.6355 GB, free: 177.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007689/0.6816, allocations: 10.14 MB / 0.6454 GB, free: 174.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.6816, allocations: 0 / 0.6454 GB, free: 174.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003185/0.6848, allocations: 4.448 MB / 0.6498 GB, free: 170.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0017/0.6865, allocations: 462.8 kB / 0.6502 GB, free: 170.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01187/0.6983, allocations: 13.74 MB / 0.6636 GB, free: 158.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002195/0.7005, allocations: 3.207 MB / 0.6667 GB, free: 155.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001523/0.7021, allocations: 0.6799 MB / 0.6674 GB, free: 155.2 MB / 490.7 MB Notification: Performance of SimCode: time 8.52e-07/0.7021, allocations: 0 / 0.6674 GB, free: 155.2 MB / 490.7 MB Notification: Performance of Templates: time 0.2473/0.9494, allocations: 148.1 MB / 0.812 GB, free: 174.6 MB / 490.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/BevelGear1D/BevelGear1D.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" 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 [Calling sys.exit(0), Time elapsed: 16.330143594183028]