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.0009621/0.0009621, 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.001526/0.001526, 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.9441/0.9441, allocations: 177.1 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.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.723e-06/1.723e-06, allocations: 0 / 273 MB, free: 1.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.442e-05/2.614e-05, allocations: 2.312 kB / 273 MB, free: 1.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01809/0.01812, allocations: 13.13 MB / 286.1 MB, free: 4.219 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1173/0.1354, allocations: 4.484 MB / 290.6 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001877/0.1373, allocations: 109.5 kB / 290.7 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00506/0.1424, allocations: 4.503 MB / 295.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00383/0.1462, allocations: 2.27 MB / 297.5 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001346/0.1475, allocations: 1.034 MB / 298.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005852/0.1534, allocations: 6.878 MB / 305.4 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003901/0.1573, allocations: 4.673 MB / 310.1 MB, free: 8.777 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004104/0.1614, allocations: 4.221 MB / 314.3 MB, free: 6.285 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00259/0.164, allocations: 3.117 MB / 317.4 MB, free: 3.414 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007601/0.1647, allocations: 484 kB / 317.9 MB, free: 2.941 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001396/0.1661, allocations: 1.302 MB / 319.2 MB, free: 1.699 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001355/0.1675, allocations: 2.707 MB / 321.9 MB, free: 15.07 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001669/0.1692, allocations: 1.723 MB / 323.6 MB, free: 13.43 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004934/0.1741, allocations: 5.847 MB / 329.4 MB, free: 7.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1741, allocations: 0 / 329.4 MB, free: 7.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1741, allocations: 0 / 329.4 MB, free: 7.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.88e-05/0.1742, allocations: 0 / 329.4 MB, free: 7.93 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.007548/0.1817, allocations: 6.679 MB / 336.1 MB, free: 1.297 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.1818, allocations: 12.03 kB / 336.1 MB, free: 1.285 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006333/0.1881, allocations: 3.151 MB / 339.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003794/0.1919, allocations: 3.226 MB / 342.5 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/0.192, allocations: 299.4 kB / 342.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004637/0.1925, allocations: 430.2 kB / 343.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007937/0.2004, allocations: 7.004 MB / 350.2 MB, free: 2.539 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.213e-05/0.2005, allocations: 47.59 kB / 350.3 MB, free: 2.492 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002925/0.2008, allocations: 187.2 kB / 350.5 MB, free: 2.344 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001537/0.2024, allocations: 1.922 MB / 352.4 MB, free: 432 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006373/0.2087, allocations: 3.551 MB / 355.9 MB, free: 12.87 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.033/0.2417, allocations: 48.21 MB / 404.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004565/0.2463, allocations: 1.949 MB / 406.1 MB, free: 9.371 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007846/0.2471, allocations: 0.5834 MB / 406.7 MB, free: 8.773 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006219/0.2533, allocations: 4.613 MB / 411.3 MB, free: 4.172 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.2533, allocations: 54.38 kB / 411.3 MB, free: 4.109 MB / 362.7 MB Notification: Performance of pre-optimization done (n=142): time 2.835e-06/0.2533, allocations: 4 kB / 411.3 MB, free: 4.105 MB / 362.7 MB Notification: Performance of matching and sorting (n=158): time 0.01633/0.2697, allocations: 10 MB / 421.3 MB, free: 10.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.185e-05/0.2697, allocations: 200.9 kB / 421.5 MB, free: 9.805 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004241/0.274, allocations: 4.163 MB / 425.7 MB, free: 5.594 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.386e-05/0.2741, allocations: 45.7 kB / 425.7 MB, free: 5.543 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002188/0.2762, allocations: 3.966 MB / 429.7 MB, free: 1.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004628/0.2767, allocations: 0.6791 MB / 430.4 MB, free: 0.918 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1191/0.3959, allocations: 1.421 MB / 431.8 MB, free: 112.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.183e-05/0.3959, allocations: 478.9 kB / 432.3 MB, free: 112.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001241/0.3971, allocations: 0.6293 MB / 432.9 MB, free: 112.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002784/0.3999, allocations: 6.655 MB / 439.6 MB, free: 104.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005198/0.4051, allocations: 7.962 MB / 447.5 MB, free: 96.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001521/0.4053, allocations: 40.94 kB / 447.6 MB, free: 96.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=844) (initialization): time 0.009009/0.4143, allocations: 5.587 MB / 453.2 MB, free: 95.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.002e-05/0.4143, allocations: 69.33 kB / 453.2 MB, free: 95.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001405/0.4145, allocations: 143.9 kB / 453.4 MB, free: 95.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/0.4155, allocations: 458.1 kB / 453.8 MB, free: 95.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00257/0.4181, allocations: 1.505 MB / 455.3 MB, free: 95.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002651/0.4207, allocations: 4.938 MB / 460.3 MB, free: 91.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002678/0.4234, allocations: 418.6 kB / 460.7 MB, free: 91.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002942/0.4237, allocations: 397.2 kB / 461 MB, free: 91.32 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.001162/0.4249, allocations: 0.7088 MB / 461.8 MB, free: 91.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003861/0.4253, allocations: 425.8 kB / 462.2 MB, free: 91.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001267/0.4265, allocations: 1.089 MB / 463.3 MB, free: 90.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.504e-05/0.4265, allocations: 18.28 kB / 463.3 MB, free: 90.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.4265, allocations: 3.75 kB / 463.3 MB, free: 90.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.577e-06/0.4266, allocations: 7.219 kB / 463.3 MB, free: 90.87 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005806/0.4324, allocations: 5.23 MB / 468.5 MB, free: 89.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/0.4324, allocations: 8.672 kB / 468.5 MB, free: 89.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000636/0.433, allocations: 284.3 kB / 468.8 MB, free: 89.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000568/0.4336, allocations: 257.1 kB / 469.1 MB, free: 89.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.684e-05/0.4336, allocations: 33.12 kB / 469.1 MB, free: 89.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001662/0.4353, allocations: 4.004 MB / 473.1 MB, free: 85.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/0.4353, allocations: 11.94 kB / 473.1 MB, free: 85.92 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002039/0.4373, allocations: 2.328 MB / 475.4 MB, free: 83.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004401/0.4378, allocations: 392.4 kB / 475.8 MB, free: 83.65 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002577/0.438, allocations: 35.94 kB / 475.9 MB, free: 83.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007373/0.4388, allocations: 132.5 kB / 476 MB, free: 83.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.4389, allocations: 121.6 kB / 476.1 MB, free: 83.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.647e-05/0.439, allocations: 48 kB / 476.1 MB, free: 83.42 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001761/0.4408, allocations: 1.823 MB / 478 MB, free: 81.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4408, allocations: 0 / 478 MB, free: 81.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003752/0.4445, allocations: 1.134 MB / 479.1 MB, free: 80.8 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.0003518/0.4449, allocations: 193.5 kB / 479.3 MB, free: 80.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004469/0.4493, allocations: 3.182 MB / 482.5 MB, free: 77.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.4493, allocations: 12.06 kB / 482.5 MB, free: 77.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008792/0.4502, allocations: 0.8625 MB / 483.4 MB, free: 76.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001786/0.452, allocations: 0.5003 MB / 483.9 MB, free: 76.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/0.4625, allocations: 8.78 MB / 492.6 MB, free: 68.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001114/0.4636, allocations: 1.478 MB / 494.1 MB, free: 67.24 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002362/0.466, allocations: 1.681 MB / 495.8 MB, free: 65.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004121/0.4664, allocations: 260.5 kB / 496 MB, free: 65.35 MB / 378.7 MB Notification: Performance of SimCode: time 2.635e-06/0.4664, allocations: 0 / 496 MB, free: 65.35 MB / 378.7 MB Notification: Performance of Templates: time 0.04557/0.5119, allocations: 30.02 MB / 0.5137 GB, free: 35.97 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.9659581589512527]