Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001042/0.001042, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00135/0.002391, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001015/0.001015, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001253/0.002268, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9838/0.9838, allocations: 177.4 MB / 189.9 MB, free: 4.84 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08626/1.07, allocations: 53.87 MB / 243.8 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 4 kB / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.369e-05/1.563e-05, allocations: 2.312 kB / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01032/0.01033, allocations: 12.63 MB / 257.6 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008545/0.01888, allocations: 4.803 MB / 262.5 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001142/0.02002, allocations: 103.5 kB / 262.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004815/0.02484, allocations: 4.123 MB / 266.7 MB, free: 7.906 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003674/0.02851, allocations: 2.142 MB / 268.8 MB, free: 5.754 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001605/0.03011, allocations: 0.8497 MB / 269.7 MB, free: 4.902 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1449/0.175, allocations: 4.928 MB / 274.6 MB, free: 1.844 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004557/0.1795, allocations: 4.096 MB / 278.7 MB, free: 1.574 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004388/0.1839, allocations: 3.519 MB / 282.2 MB, free: 1.539 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003124/0.187, allocations: 2.511 MB / 284.7 MB, free: 1.539 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000891/0.1879, allocations: 442.2 kB / 285.2 MB, free: 1.539 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001756/0.1897, allocations: 1.293 MB / 286.4 MB, free: 1.539 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001088/0.1908, allocations: 2.162 MB / 288.6 MB, free: 1.332 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001055/0.1918, allocations: 1.305 MB / 289.9 MB, free: 1.102 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003271/0.1951, allocations: 5.105 MB / 295 MB, free: 0 / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.262e-05/0.1951, allocations: 1.75 kB / 295 MB, free: 0 / 266.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1951, allocations: 3.312 kB / 295 MB, free: 0 / 266.7 MB Notification: Performance of Transformations before backend: time 5.598e-05/0.1952, allocations: 0 / 295 MB, free: 0 / 266.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.006616/0.2018, allocations: 7.038 MB / 302.1 MB, free: 12.26 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.032e-05/0.2018, allocations: 8.625 kB / 302.1 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003555/0.2054, allocations: 1.351 MB / 303.4 MB, free: 11.1 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002186/0.2076, allocations: 2.22 MB / 305.6 MB, free: 9.008 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/0.2077, allocations: 307.2 kB / 305.9 MB, free: 8.746 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000412/0.2081, allocations: 401 kB / 306.3 MB, free: 8.391 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00571/0.2138, allocations: 5.775 MB / 312.1 MB, free: 2.352 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001037/0.2139, allocations: 49.88 kB / 312.2 MB, free: 2.324 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003243/0.2142, allocations: 187.2 kB / 312.3 MB, free: 2.18 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001374/0.2156, allocations: 1.735 MB / 314.1 MB, free: 480 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004775/0.2204, allocations: 2.806 MB / 316.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02282/0.2432, allocations: 34.37 MB / 351.3 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00341/0.2466, allocations: 1.516 MB / 352.8 MB, free: 10.1 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004548/0.2471, allocations: 401.7 kB / 353.2 MB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003821/0.2509, allocations: 3.445 MB / 356.6 MB, free: 6.289 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.2509, allocations: 59.39 kB / 356.7 MB, free: 6.227 MB / 330.7 MB Notification: Performance of pre-optimization done (n=155): time 2.996e-06/0.2509, allocations: 4 kB / 356.7 MB, free: 6.223 MB / 330.7 MB Notification: Performance of matching and sorting (n=165): time 0.01403/0.265, allocations: 6.595 MB / 363.3 MB, free: 15.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.134e-05/0.265, allocations: 153.5 kB / 363.4 MB, free: 15.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00239/0.2674, allocations: 3.521 MB / 366.9 MB, free: 12.58 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.028e-05/0.2675, allocations: 49.69 kB / 367 MB, free: 12.53 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001383/0.2689, allocations: 3.495 MB / 370.5 MB, free: 9.207 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003701/0.2692, allocations: 0.6842 MB / 371.2 MB, free: 8.559 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009696/0.2702, allocations: 1.249 MB / 372.4 MB, free: 7.441 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.069e-05/0.2703, allocations: 307.2 kB / 372.7 MB, free: 7.141 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.2714, allocations: 0.838 MB / 373.6 MB, free: 6.297 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00279/0.2742, allocations: 4.803 MB / 378.4 MB, free: 15.7 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004346/0.2786, allocations: 6.161 MB / 384.5 MB, free: 8.105 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-05/0.2786, allocations: 40 kB / 384.6 MB, free: 8.066 MB / 362.7 MB Notification: Performance of matching and sorting (n=850) (initialization): time 0.005151/0.2838, allocations: 4.757 MB / 389.3 MB, free: 3.289 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.355e-05/0.2838, allocations: 64 kB / 389.4 MB, free: 3.227 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.873e-05/0.2839, allocations: 144 kB / 389.5 MB, free: 3.086 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001315/0.2852, allocations: 0.6095 MB / 390.1 MB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002448/0.2877, allocations: 1.631 MB / 391.8 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002747/0.2904, allocations: 2.643 MB / 394.4 MB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/0.2925, allocations: 311.3 kB / 394.7 MB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002891/0.2927, allocations: 348 kB / 395 MB, free: 13.49 MB / 378.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.001233/0.294, allocations: 0.6572 MB / 395.7 MB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002988/0.2943, allocations: 227.8 kB / 395.9 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001976/0.2963, allocations: 1.286 MB / 397.2 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.682e-05/0.2963, allocations: 16 kB / 397.2 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.2963, allocations: 11.94 kB / 397.2 MB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.2963, allocations: 11.97 kB / 397.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005183/0.3015, allocations: 3.897 MB / 401.1 MB, free: 7.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.3015, allocations: 4 kB / 401.1 MB, free: 7.586 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/0.3026, allocations: 458.8 kB / 401.6 MB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002839/0.3028, allocations: 321.4 kB / 401.9 MB, free: 6.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/0.304, allocations: 422.4 kB / 402.3 MB, free: 6.395 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.718e-05/0.3041, allocations: 35.92 kB / 402.4 MB, free: 6.359 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/0.3064, allocations: 2.098 MB / 404.5 MB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3064, allocations: 3.938 kB / 404.5 MB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002369/0.3088, allocations: 2.066 MB / 406.5 MB, free: 2.059 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002265/0.309, allocations: 28 kB / 406.6 MB, free: 2.031 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007194/0.3097, allocations: 47.97 kB / 406.6 MB, free: 1.984 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001704/0.3099, allocations: 108.7 kB / 406.7 MB, free: 1.879 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.356e-05/0.31, allocations: 31.98 kB / 406.7 MB, free: 1.848 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009848/0.3109, allocations: 1.326 MB / 408.1 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3109, allocations: 0 / 408.1 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002719/0.3137, allocations: 1.168 MB / 409.2 MB, free: 15.33 MB / 394.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.0002849/0.3139, allocations: 176.1 kB / 409.4 MB, free: 15.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002565/0.3165, allocations: 2.82 MB / 412.2 MB, free: 12.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001672/0.3167, allocations: 116.1 kB / 412.3 MB, free: 12.22 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.3177, allocations: 0.8029 MB / 413.1 MB, free: 11.39 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/0.3192, allocations: 0.9099 MB / 414 MB, free: 10.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01317/0.3324, allocations: 8.586 MB / 422.6 MB, free: 1.828 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001424/0.3338, allocations: 1.415 MB / 424 MB, free: 404 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.1039/0.4377, allocations: 0.5253 MB / 424.6 MB, free: 110.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001261/0.4389, allocations: 0.5715 MB / 425.1 MB, free: 110.8 MB / 394.7 MB Notification: Performance of SimCode: time 2.355e-06/0.4389, allocations: 0 / 425.1 MB, free: 110.8 MB / 394.7 MB Notification: Performance of Templates: time 0.0563/0.4952, allocations: 38.35 MB / 463.5 MB, free: 96.15 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 3.9211379075422883]