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.001259/0.001259, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001456/0.001456, allocations: 168.8 kB / 24.82 MB, free: 9.27 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.9781/0.9781, allocations: 177.1 MB / 205.3 MB, free: 5.512 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.563e-06/1.563e-06, allocations: 0 / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.234e-05/2.391e-05, allocations: 2.312 kB / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.014/0.01403, allocations: 12.7 MB / 286.1 MB, free: 4.555 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007986/0.02201, allocations: 4.458 MB / 290.5 MB, free: 84 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.1131/0.1351, allocations: 112.3 kB / 290.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005543/0.1407, allocations: 4.416 MB / 295.1 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00436/0.145, allocations: 2.276 MB / 297.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001393/0.1464, allocations: 1.037 MB / 298.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006727/0.1531, allocations: 6.886 MB / 305.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004781/0.1579, allocations: 4.665 MB / 309.9 MB, free: 9.059 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006663/0.1646, allocations: 4.246 MB / 314.2 MB, free: 6.254 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003751/0.1683, allocations: 3.109 MB / 317.3 MB, free: 3.391 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009905/0.1693, allocations: 484 kB / 317.8 MB, free: 2.918 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001715/0.171, allocations: 1.306 MB / 319.1 MB, free: 1.668 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001435/0.1725, allocations: 2.696 MB / 321.8 MB, free: 15.05 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002326/0.1748, allocations: 1.723 MB / 323.5 MB, free: 13.41 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006108/0.1809, allocations: 5.851 MB / 329.3 MB, free: 7.91 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1809, allocations: 0 / 329.3 MB, free: 7.91 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1809, allocations: 0 / 329.3 MB, free: 7.91 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001509/0.1811, allocations: 0 / 329.3 MB, free: 7.91 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.007741/0.1888, allocations: 6.392 MB / 335.7 MB, free: 1.895 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.1888, allocations: 12.03 kB / 335.7 MB, free: 1.883 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005611/0.1945, allocations: 2.227 MB / 338 MB, free: 15.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004023/0.1985, allocations: 2.851 MB / 340.8 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001747/0.1987, allocations: 304.8 kB / 341.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006853/0.1993, allocations: 425 kB / 341.5 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00808/0.2074, allocations: 6.357 MB / 347.9 MB, free: 5.457 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001309/0.2075, allocations: 54.84 kB / 347.9 MB, free: 5.426 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000348/0.2079, allocations: 185.6 kB / 348.1 MB, free: 5.281 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001503/0.2094, allocations: 1.773 MB / 349.9 MB, free: 3.535 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005933/0.2153, allocations: 2.8 MB / 352.7 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03534/0.2507, allocations: 47.84 MB / 400.5 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005202/0.2559, allocations: 1.701 MB / 402.2 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007615/0.2566, allocations: 0.4986 MB / 402.7 MB, free: 13.19 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006784/0.2634, allocations: 4.379 MB / 407.1 MB, free: 8.777 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.354e-05/0.2635, allocations: 62.27 kB / 407.2 MB, free: 8.707 MB / 362.7 MB Notification: Performance of pre-optimization done (n=142): time 4.829e-06/0.2635, allocations: 0 / 407.2 MB, free: 8.707 MB / 362.7 MB Notification: Performance of matching and sorting (n=158): time 0.01756/0.281, allocations: 5.943 MB / 413.1 MB, free: 2.719 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.259e-05/0.2811, allocations: 200.9 kB / 413.3 MB, free: 2.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004671/0.2858, allocations: 4.137 MB / 417.5 MB, free: 14.29 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.445e-05/0.2859, allocations: 49.7 kB / 417.5 MB, free: 14.24 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002386/0.2882, allocations: 4.001 MB / 421.5 MB, free: 10.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007892/0.289, allocations: 0.6786 MB / 422.2 MB, free: 9.516 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001514/0.2906, allocations: 1.454 MB / 423.6 MB, free: 8.047 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.2907, allocations: 480.8 kB / 424.1 MB, free: 7.574 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.2918, allocations: 0.563 MB / 424.7 MB, free: 7.008 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1405/0.4322, allocations: 6.616 MB / 431.3 MB, free: 105.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005178/0.4374, allocations: 7.822 MB / 439.1 MB, free: 97.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001003/0.4375, allocations: 41.28 kB / 439.2 MB, free: 97.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=844) (initialization): time 0.007266/0.4448, allocations: 5.187 MB / 444.3 MB, free: 96.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.95e-05/0.4449, allocations: 66.7 kB / 444.4 MB, free: 96.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001547/0.445, allocations: 148 kB / 444.5 MB, free: 96.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009262/0.4459, allocations: 406.9 kB / 444.9 MB, free: 96.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002522/0.4485, allocations: 1.456 MB / 446.4 MB, free: 96.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002387/0.4508, allocations: 4.79 MB / 451.2 MB, free: 92.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002861/0.4537, allocations: 291.2 kB / 451.5 MB, free: 92.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003371/0.454, allocations: 343.5 kB / 451.8 MB, free: 92.41 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 650 * 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 (804): * Single equations (assignments): 799 * 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,11,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001219/0.4553, allocations: 0.7043 MB / 452.5 MB, free: 92.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004344/0.4557, allocations: 427.6 kB / 452.9 MB, free: 92.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001179/0.4569, allocations: 0.9808 MB / 453.9 MB, free: 91.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/0.4569, allocations: 24.19 kB / 453.9 MB, free: 91.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.4569, allocations: 3.688 kB / 453.9 MB, free: 91.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.4569, allocations: 6.328 kB / 453.9 MB, free: 91.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005977/0.4629, allocations: 5.063 MB / 459 MB, free: 91.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.844e-06/0.4629, allocations: 11.56 kB / 459 MB, free: 91.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005367/0.4634, allocations: 231.1 kB / 459.2 MB, free: 91.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000486/0.4639, allocations: 217.6 kB / 459.5 MB, free: 91.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.48e-05/0.464, allocations: 32.5 kB / 459.5 MB, free: 91.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001446/0.4654, allocations: 3.883 MB / 463.4 MB, free: 87.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.4654, allocations: 7.75 kB / 463.4 MB, free: 87.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001833/0.4673, allocations: 2.157 MB / 465.5 MB, free: 86.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005183/0.4678, allocations: 376.1 kB / 465.9 MB, free: 86.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002254/0.468, allocations: 36.59 kB / 465.9 MB, free: 86.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006274/0.4686, allocations: 35.91 kB / 466 MB, free: 86.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/0.4688, allocations: 112.1 kB / 466.1 MB, free: 86.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-05/0.4688, allocations: 38.06 kB / 466.1 MB, free: 86.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001526/0.4704, allocations: 1.685 MB / 467.8 MB, free: 86.03 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4704, allocations: 0 / 467.8 MB, free: 86.03 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003379/0.4737, allocations: 1.14 MB / 468.9 MB, free: 85.37 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (130): * Single equations (assignments): 125 * 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,9,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.0002925/0.474, allocations: 193.2 kB / 469.1 MB, free: 85.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003101/0.4771, allocations: 3.016 MB / 472.2 MB, free: 82.58 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.4771, allocations: 0 / 472.2 MB, free: 82.58 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005792/0.4777, allocations: 0.8049 MB / 473 MB, free: 81.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001564/0.4793, allocations: 0.4931 MB / 473.4 MB, free: 81.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01016/0.4894, allocations: 8.753 MB / 482.2 MB, free: 73.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00128/0.4907, allocations: 1.48 MB / 483.7 MB, free: 72.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001399/0.4921, allocations: 0.5334 MB / 484.2 MB, free: 71.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000721/0.4928, allocations: 0.6405 MB / 484.9 MB, free: 71.19 MB / 378.7 MB Notification: Performance of SimCode: time 1.323e-06/0.4928, allocations: 0 / 484.9 MB, free: 71.19 MB / 378.7 MB Notification: Performance of Templates: time 0.04937/0.5422, allocations: 32.02 MB / 0.5048 GB, free: 39.94 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: 4.016861862037331]