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.001235/0.001235, allocations: 77.97 kB / 21.42 MB, free: 3.066 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.001116/0.001116, allocations: 166 kB / 24.82 MB, free: 9.309 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.9642/0.9642, allocations: 177.2 MB / 205.3 MB, free: 5.5 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.472e-06/1.472e-06, allocations: 0 / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.05e-05/2.197e-05, allocations: 2.312 kB / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01288/0.0129, allocations: 12.48 MB / 285.9 MB, free: 4.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009726/0.02263, allocations: 4.564 MB / 290.4 MB, free: 196 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002985/0.02562, allocations: 99.5 kB / 290.5 MB, free: 96 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1284/0.1541, allocations: 4.295 MB / 294.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004763/0.1588, allocations: 2.178 MB / 297 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001587/0.1604, allocations: 0.9161 MB / 297.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005578/0.166, allocations: 5.196 MB / 303.1 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004106/0.1701, allocations: 4.298 MB / 307.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004165/0.1743, allocations: 3.611 MB / 311 MB, free: 8.129 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002762/0.177, allocations: 2.627 MB / 313.7 MB, free: 6.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008202/0.1778, allocations: 440 kB / 314.1 MB, free: 6.141 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001701/0.1795, allocations: 1.256 MB / 315.3 MB, free: 4.945 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001148/0.1807, allocations: 2.451 MB / 317.8 MB, free: 2.574 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001806/0.1825, allocations: 1.596 MB / 319.4 MB, free: 1.051 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005053/0.1876, allocations: 5.471 MB / 324.9 MB, free: 11.92 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.1876, allocations: 4 kB / 324.9 MB, free: 11.92 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1876, allocations: 0 / 324.9 MB, free: 11.92 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001864/0.1877, allocations: 0 / 324.9 MB, free: 11.92 MB / 282.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.008901/0.1966, allocations: 7.089 MB / 332 MB, free: 5.195 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.1967, allocations: 12.03 kB / 332 MB, free: 5.184 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006857/0.2035, allocations: 2.219 MB / 334.2 MB, free: 3 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002942/0.2065, allocations: 2.403 MB / 336.6 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001374/0.2066, allocations: 302.3 kB / 336.9 MB, free: 488 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004339/0.2071, allocations: 409.9 kB / 337.3 MB, free: 116 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007414/0.2145, allocations: 6.347 MB / 343.6 MB, free: 9.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001024/0.2146, allocations: 51.75 kB / 343.7 MB, free: 9.203 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003794/0.215, allocations: 186 kB / 343.9 MB, free: 9.059 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00186/0.2168, allocations: 1.729 MB / 345.6 MB, free: 7.355 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005774/0.2226, allocations: 2.743 MB / 348.3 MB, free: 4.656 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03822/0.2608, allocations: 47.31 MB / 395.7 MB, free: 4.219 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003786/0.2646, allocations: 1.532 MB / 397.2 MB, free: 2.629 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005851/0.2652, allocations: 494.3 kB / 397.7 MB, free: 2.133 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004545/0.2697, allocations: 3.722 MB / 401.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.2698, allocations: 50.39 kB / 401.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=155): time 3.536e-06/0.2698, allocations: 8 kB / 401.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=165): time 0.01799/0.2878, allocations: 7.346 MB / 408.8 MB, free: 6.898 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.389e-05/0.2878, allocations: 196.9 kB / 409 MB, free: 6.664 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003303/0.2911, allocations: 3.929 MB / 412.9 MB, free: 2.699 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001574/0.2913, allocations: 45.7 kB / 413 MB, free: 2.648 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001845/0.2931, allocations: 3.932 MB / 416.9 MB, free: 14.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005885/0.2937, allocations: 0.7136 MB / 417.6 MB, free: 13.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001197/0.2949, allocations: 1.458 MB / 419.1 MB, free: 12.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.295, allocations: 480.5 kB / 419.5 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009225/0.2959, allocations: 0.6489 MB / 420.2 MB, free: 11.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003862/0.2998, allocations: 6.768 MB / 426.9 MB, free: 1.805 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006146/0.3059, allocations: 8.065 MB / 435 MB, free: 6.977 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001174/0.3061, allocations: 44 kB / 435.1 MB, free: 6.934 MB / 394.7 MB Notification: Performance of matching and sorting (n=850) (initialization): time 0.008802/0.3149, allocations: 5.586 MB / 440.6 MB, free: 1.328 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.149e-05/0.3149, allocations: 64 kB / 440.7 MB, free: 1.266 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/0.315, allocations: 144 kB / 440.8 MB, free: 1.125 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001633/0.3167, allocations: 0.6227 MB / 441.5 MB, free: 0.4922 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1273/0.4439, allocations: 1.455 MB / 442.9 MB, free: 118.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003107/0.4471, allocations: 3.248 MB / 446.2 MB, free: 117 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002992/0.45, allocations: 300.6 kB / 446.5 MB, free: 117 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004385/0.4505, allocations: 348.1 kB / 446.8 MB, free: 117 MB / 394.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.001452/0.4519, allocations: 0.6977 MB / 447.5 MB, free: 116.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005371/0.4525, allocations: 414 kB / 447.9 MB, free: 116.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002375/0.4548, allocations: 1.451 MB / 449.4 MB, free: 116.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.138e-05/0.4549, allocations: 20.3 kB / 449.4 MB, free: 116.7 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/0.4549, allocations: 4.656 kB / 449.4 MB, free: 116.7 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.4549, allocations: 7.938 kB / 449.4 MB, free: 116.7 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006772/0.4617, allocations: 4.283 MB / 453.7 MB, free: 116.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/0.4617, allocations: 3.906 kB / 453.7 MB, free: 116.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005887/0.4623, allocations: 233.3 kB / 453.9 MB, free: 116.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001215/0.4635, allocations: 431 kB / 454.3 MB, free: 116.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.236e-05/0.4636, allocations: 32.83 kB / 454.4 MB, free: 116.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002251/0.4658, allocations: 2.695 MB / 457.1 MB, free: 114.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.4658, allocations: 3.969 kB / 457.1 MB, free: 114.5 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002599/0.4684, allocations: 2.438 MB / 459.5 MB, free: 113.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003616/0.4688, allocations: 340.4 kB / 459.8 MB, free: 113.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002182/0.469, allocations: 25.84 kB / 459.9 MB, free: 113.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006637/0.4697, allocations: 40.06 kB / 459.9 MB, free: 113.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.4698, allocations: 107.3 kB / 460 MB, free: 113.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.276e-05/0.4699, allocations: 43.61 kB / 460 MB, free: 113.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001236/0.4711, allocations: 1.596 MB / 461.6 MB, free: 113.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.4711, allocations: 0 / 461.6 MB, free: 113.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003367/0.4745, allocations: 1.171 MB / 462.8 MB, free: 113.4 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.000302/0.4748, allocations: 185.1 kB / 463 MB, free: 113.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003875/0.4787, allocations: 3.113 MB / 466.1 MB, free: 112.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4787, allocations: 0 / 466.1 MB, free: 112.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001165/0.4798, allocations: 0.9518 MB / 467 MB, free: 112.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00127/0.4811, allocations: 436 kB / 467.5 MB, free: 112.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009532/0.4906, allocations: 8.608 MB / 476.1 MB, free: 108 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/0.4917, allocations: 1.412 MB / 477.5 MB, free: 107 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001207/0.4929, allocations: 0.5343 MB / 478 MB, free: 106.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007669/0.4937, allocations: 0.6158 MB / 478.6 MB, free: 106 MB / 394.7 MB Notification: Performance of SimCode: time 1.182e-06/0.4937, allocations: 4 kB / 478.6 MB, free: 106 MB / 394.7 MB Notification: Performance of Templates: time 0.04702/0.5407, allocations: 37.75 MB / 0.5043 GB, free: 69.69 MB / 394.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.060590825043619]