Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.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.001504/0.001504, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001654/0.001654, allocations: 166.7 kB / 24.99 MB, free: 8.797 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.9406/0.9406, allocations: 177.1 MB / 205.3 MB, free: 5.629 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.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 273 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.385e-05/1.511e-05, allocations: 5.266 kB / 273.1 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.009646/0.009661, allocations: 13.07 MB / 286.1 MB, free: 4.711 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00626/0.01592, allocations: 4.477 MB / 290.6 MB, free: 228 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009607/0.01688, allocations: 111.4 kB / 290.7 MB, free: 116 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.107/0.1239, allocations: 4.492 MB / 295.2 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003451/0.1273, allocations: 2.262 MB / 297.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001121/0.1285, allocations: 1.038 MB / 298.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005048/0.1335, allocations: 6.88 MB / 305.4 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003297/0.1368, allocations: 4.679 MB / 310.1 MB, free: 8.762 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002844/0.1396, allocations: 3.253 MB / 313.3 MB, free: 6.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002373/0.142, allocations: 3.138 MB / 316.5 MB, free: 4.336 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004418/0.1425, allocations: 480 kB / 316.9 MB, free: 3.867 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001211/0.1437, allocations: 1.302 MB / 318.2 MB, free: 2.621 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001101/0.1448, allocations: 2.7 MB / 320.9 MB, free: 8 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001433/0.1462, allocations: 1.716 MB / 322.6 MB, free: 14.37 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004088/0.1503, allocations: 5.835 MB / 328.5 MB, free: 8.879 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.1503, allocations: 0 / 328.5 MB, free: 8.879 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1503, allocations: 4 kB / 328.5 MB, free: 8.875 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001023/0.1504, allocations: 0 / 328.5 MB, free: 8.875 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: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.006434/0.1568, allocations: 6.619 MB / 335.1 MB, free: 2.289 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.1569, allocations: 12.03 kB / 335.1 MB, free: 2.277 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006373/0.1632, allocations: 3.23 MB / 338.3 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003471/0.1667, allocations: 3.375 MB / 341.7 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.1668, allocations: 304.1 kB / 342 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004605/0.1673, allocations: 415.7 kB / 342.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00731/0.1746, allocations: 7.014 MB / 349.4 MB, free: 3.395 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.705e-05/0.1747, allocations: 55.16 kB / 349.5 MB, free: 3.363 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003324/0.175, allocations: 183.5 kB / 349.7 MB, free: 3.219 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001892/0.1769, allocations: 2.026 MB / 351.7 MB, free: 1.215 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00641/0.1833, allocations: 3.748 MB / 355.4 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02901/0.2123, allocations: 48.07 MB / 403.5 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00516/0.2175, allocations: 2.297 MB / 405.8 MB, free: 9.918 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.2185, allocations: 0.7803 MB / 406.6 MB, free: 9.125 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006733/0.2252, allocations: 6.229 MB / 412.8 MB, free: 2.906 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/0.2253, allocations: 62.31 kB / 412.9 MB, free: 2.836 MB / 362.7 MB Notification: Performance of pre-optimization done (n=171): time 3.377e-06/0.2253, allocations: 0 / 412.9 MB, free: 2.836 MB / 362.7 MB Notification: Performance of matching and sorting (n=197): time 0.02615/0.2514, allocations: 14.22 MB / 427.1 MB, free: 4.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.429e-05/0.2515, allocations: 201.2 kB / 427.3 MB, free: 4.332 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003511/0.255, allocations: 4.04 MB / 431.3 MB, free: 276 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001057/0.2551, allocations: 59.03 kB / 431.4 MB, free: 212 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1144/0.3695, allocations: 3.865 MB / 435.3 MB, free: 119.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009325/0.3704, allocations: 0.8162 MB / 436.1 MB, free: 119.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001406/0.3719, allocations: 1.426 MB / 437.5 MB, free: 119.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.076e-05/0.3719, allocations: 478.6 kB / 438 MB, free: 118.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001448/0.3734, allocations: 0.7726 MB / 438.7 MB, free: 118.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002898/0.3762, allocations: 6.508 MB / 445.2 MB, free: 111.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005555/0.3818, allocations: 7.974 MB / 453.2 MB, free: 103.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.064e-05/0.3819, allocations: 38.12 kB / 453.3 MB, free: 103.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.008616/0.3905, allocations: 6.448 MB / 459.7 MB, free: 101 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.709e-05/0.3906, allocations: 66.81 kB / 459.8 MB, free: 101 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001058/0.3907, allocations: 133.2 kB / 459.9 MB, free: 101 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002423/0.3931, allocations: 1.127 MB / 461 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002257/0.3954, allocations: 1.478 MB / 462.5 MB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005067/0.4004, allocations: 6.502 MB / 469 MB, free: 95.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002917/0.4033, allocations: 424.3 kB / 469.4 MB, free: 95.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003138/0.4037, allocations: 388.7 kB / 469.8 MB, free: 95.41 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (793): * Single equations (assignments): 788 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,31,77.8%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001265/0.4049, allocations: 0.7016 MB / 470.5 MB, free: 94.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003961/0.4053, allocations: 437.4 kB / 470.9 MB, free: 94.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003203/0.4085, allocations: 2.22 MB / 473.2 MB, free: 92.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/0.4085, allocations: 24 kB / 473.2 MB, free: 92.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.4085, allocations: 8 kB / 473.2 MB, free: 92.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.166e-05/0.4086, allocations: 7.125 kB / 473.2 MB, free: 92.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007509/0.4161, allocations: 6.438 MB / 479.6 MB, free: 87.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.4161, allocations: 0 / 479.6 MB, free: 87.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007271/0.4168, allocations: 295.5 kB / 479.9 MB, free: 86.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002075/0.4189, allocations: 0.8851 MB / 480.8 MB, free: 85.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.226e-05/0.419, allocations: 31.98 kB / 480.8 MB, free: 85.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004322/0.4233, allocations: 5.773 MB / 486.6 MB, free: 79.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4233, allocations: 7.938 kB / 486.6 MB, free: 79.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003973/0.4273, allocations: 3.289 MB / 489.9 MB, free: 76.58 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004159/0.4277, allocations: 388.2 kB / 490.3 MB, free: 76.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002713/0.4279, allocations: 31.98 kB / 490.3 MB, free: 76.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008783/0.4288, allocations: 167.8 kB / 490.5 MB, free: 76.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002423/0.4291, allocations: 129 kB / 490.6 MB, free: 75.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-05/0.4291, allocations: 44 kB / 490.6 MB, free: 75.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001573/0.4307, allocations: 1.777 MB / 492.4 MB, free: 74.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4307, allocations: 4 kB / 492.4 MB, free: 74.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00331/0.434, allocations: 1.337 MB / 493.8 MB, free: 72.72 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.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 (147): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,27,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003404/0.4344, allocations: 190.8 kB / 494 MB, free: 72.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003954/0.4383, allocations: 3.65 MB / 497.6 MB, free: 68.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.4383, allocations: 4 kB / 497.6 MB, free: 68.87 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.4394, allocations: 1.151 MB / 498.8 MB, free: 67.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001462/0.4409, allocations: 0.4953 MB / 499.3 MB, free: 67.21 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009873/0.4507, allocations: 9.092 MB / 0.4964 GB, free: 58.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001017/0.4518, allocations: 1.502 MB / 0.4979 GB, free: 56.52 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002297/0.454, allocations: 1.69 MB / 0.4995 GB, free: 54.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004847/0.4545, allocations: 260.4 kB / 0.4998 GB, free: 54.57 MB / 378.7 MB Notification: Performance of SimCode: time 2.054e-06/0.4545, allocations: 0 / 0.4998 GB, free: 54.57 MB / 378.7 MB Notification: Performance of Templates: time 0.04562/0.5002, allocations: 40.34 MB / 0.5392 GB, free: 14.82 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.8962397219147533]