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.0009425/0.0009425, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009702/0.0009702, allocations: 165 kB / 24.56 MB, free: 16 kB / 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.9793/0.9793, allocations: 177.2 MB / 205 MB, free: 5.297 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 9.42e-07/9.42e-07, allocations: 0 / 273 MB, free: 1.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.362e-05/1.456e-05, allocations: 4.984 kB / 273 MB, free: 1.383 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.009532/0.009547, allocations: 12.88 MB / 285.9 MB, free: 4.445 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1187/0.1282, allocations: 4.598 MB / 290.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001911/0.1301, allocations: 98.44 kB / 290.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004521/0.1347, allocations: 4.383 MB / 295 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003414/0.1381, allocations: 2.179 MB / 297.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.1392, allocations: 0.9084 MB / 298 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00422/0.1435, allocations: 5.198 MB / 303.2 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002961/0.1464, allocations: 4.304 MB / 307.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002891/0.1493, allocations: 3.61 MB / 311.1 MB, free: 8.074 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00202/0.1513, allocations: 2.642 MB / 313.8 MB, free: 6.688 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006025/0.1519, allocations: 446.1 kB / 314.2 MB, free: 6.254 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001286/0.1532, allocations: 1.256 MB / 315.5 MB, free: 5.059 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009957/0.1542, allocations: 2.438 MB / 317.9 MB, free: 2.695 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.1554, allocations: 1.598 MB / 319.5 MB, free: 1.172 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003951/0.1593, allocations: 5.476 MB / 325 MB, free: 12.04 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.994e-06/0.1593, allocations: 3.984 kB / 325 MB, free: 12.04 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1593, allocations: 4 kB / 325 MB, free: 12.03 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001629/0.1595, allocations: 4 kB / 325 MB, free: 12.03 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.008798/0.1683, allocations: 7.293 MB / 332.3 MB, free: 4.773 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.1684, allocations: 15.97 kB / 332.3 MB, free: 4.758 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008328/0.1767, allocations: 3.117 MB / 335.4 MB, free: 1.676 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002877/0.1796, allocations: 2.649 MB / 338.1 MB, free: 15.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/0.1797, allocations: 304 kB / 338.4 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004173/0.1801, allocations: 409.2 kB / 338.8 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008014/0.1881, allocations: 6.98 MB / 345.8 MB, free: 6.703 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.347e-05/0.1882, allocations: 39.64 kB / 345.8 MB, free: 6.664 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003101/0.1885, allocations: 193.6 kB / 346 MB, free: 6.512 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001604/0.1901, allocations: 1.908 MB / 347.9 MB, free: 4.609 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006295/0.1964, allocations: 3.483 MB / 351.4 MB, free: 1.129 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03093/0.2274, allocations: 48.05 MB / 399.4 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004121/0.2315, allocations: 1.745 MB / 401.2 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007391/0.2322, allocations: 0.5779 MB / 401.7 MB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004637/0.2369, allocations: 4.045 MB / 405.8 MB, free: 9.375 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.2369, allocations: 58.33 kB / 405.9 MB, free: 9.309 MB / 362.7 MB Notification: Performance of pre-optimization done (n=155): time 3.066e-06/0.2369, allocations: 0 / 405.9 MB, free: 9.309 MB / 362.7 MB Notification: Performance of matching and sorting (n=165): time 0.02037/0.2573, allocations: 11.8 MB / 417.6 MB, free: 13.42 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.522e-05/0.2573, allocations: 200.9 kB / 417.8 MB, free: 13.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003581/0.2609, allocations: 3.951 MB / 421.8 MB, free: 9.199 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.572e-05/0.261, allocations: 45.7 kB / 421.8 MB, free: 9.148 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00181/0.2628, allocations: 3.901 MB / 425.7 MB, free: 5.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000469/0.2633, allocations: 0.7126 MB / 426.5 MB, free: 4.562 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001211/0.2645, allocations: 1.418 MB / 427.9 MB, free: 3.133 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.2646, allocations: 484.7 kB / 428.3 MB, free: 2.656 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001285/0.2659, allocations: 0.7271 MB / 429.1 MB, free: 1.926 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1274/0.3933, allocations: 6.81 MB / 435.9 MB, free: 103.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00576/0.399, allocations: 8.261 MB / 444.1 MB, free: 95.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.495e-05/0.3991, allocations: 44.75 kB / 444.2 MB, free: 95.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=850) (initialization): time 0.009748/0.4089, allocations: 6.246 MB / 450.4 MB, free: 94.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.407e-05/0.4089, allocations: 68.5 kB / 450.5 MB, free: 94.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001236/0.409, allocations: 146.4 kB / 450.6 MB, free: 94.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001896/0.4109, allocations: 0.8193 MB / 451.5 MB, free: 94.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002524/0.4135, allocations: 1.514 MB / 453 MB, free: 94.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003029/0.4165, allocations: 3.469 MB / 456.4 MB, free: 92.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002698/0.4192, allocations: 411.8 kB / 456.8 MB, free: 92.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003947/0.4196, allocations: 398.6 kB / 457.2 MB, free: 92.22 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.001308/0.4209, allocations: 0.6983 MB / 457.9 MB, free: 91.92 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004166/0.4213, allocations: 403.8 kB / 458.3 MB, free: 91.92 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002455/0.4238, allocations: 1.815 MB / 460.1 MB, free: 91.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.4238, allocations: 17.64 kB / 460.2 MB, free: 91.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.066e-06/0.4238, allocations: 6.469 kB / 460.2 MB, free: 91.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.4238, allocations: 11.25 kB / 460.2 MB, free: 91.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007342/0.4311, allocations: 5.845 MB / 466 MB, free: 91.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.4311, allocations: 6.562 kB / 466 MB, free: 91.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006816/0.4318, allocations: 266.1 kB / 466.3 MB, free: 91.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001553/0.4334, allocations: 0.6095 MB / 466.9 MB, free: 91.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.755e-05/0.4335, allocations: 29.48 kB / 466.9 MB, free: 90.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002673/0.4361, allocations: 2.938 MB / 469.9 MB, free: 88.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.4361, allocations: 4 kB / 469.9 MB, free: 88.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003226/0.4394, allocations: 2.879 MB / 472.7 MB, free: 86.35 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003089/0.4397, allocations: 356.9 kB / 473.1 MB, free: 86.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002339/0.4399, allocations: 28 kB / 473.1 MB, free: 86.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007605/0.4407, allocations: 121.6 kB / 473.2 MB, free: 86.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001892/0.4409, allocations: 109.3 kB / 473.4 MB, free: 86.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-05/0.4409, allocations: 50.06 kB / 473.4 MB, free: 85.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001502/0.4424, allocations: 1.74 MB / 475.1 MB, free: 84.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4424, allocations: 3.938 kB / 475.1 MB, free: 84.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002979/0.4454, allocations: 1.163 MB / 476.3 MB, free: 83.37 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.0003371/0.4457, allocations: 187.1 kB / 476.5 MB, free: 83.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003968/0.4497, allocations: 3.398 MB / 479.9 MB, free: 80.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.4497, allocations: 0 / 479.9 MB, free: 80.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001469/0.4512, allocations: 1.185 MB / 481.1 MB, free: 79.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.4524, allocations: 431.6 kB / 481.5 MB, free: 78.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008543/0.461, allocations: 8.614 MB / 490.1 MB, free: 70.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008704/0.4619, allocations: 1.414 MB / 491.5 MB, free: 68.81 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001968/0.4638, allocations: 1.675 MB / 493.2 MB, free: 67.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000416/0.4642, allocations: 244.5 kB / 493.4 MB, free: 66.9 MB / 378.7 MB Notification: Performance of SimCode: time 2.164e-06/0.4642, allocations: 0 / 493.4 MB, free: 66.9 MB / 378.7 MB Notification: Performance of Templates: time 0.04282/0.5071, allocations: 35.84 MB / 0.5169 GB, free: 31.63 MB / 378.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.052893799729645]