Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001755/0.001755, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 14.72 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.00224/0.00224, allocations: 209.4 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.539/1.539, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 62.52 kB / 347.7 MB, free: 9.391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2994, allocations: 49.16 MB / 396.8 MB, free: 9.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01964/0.319, allocations: 12.39 MB / 409.2 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01271/0.3317, allocations: 4.468 MB / 413.7 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003906/0.3356, allocations: 112.2 kB / 413.8 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01/0.3456, allocations: 4.108 MB / 417.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008864/0.3545, allocations: 2.346 MB / 420.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00337/0.3579, allocations: 0.9362 MB / 421.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01206/0.3699, allocations: 5.896 MB / 427.1 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008036/0.378, allocations: 4.129 MB / 431.2 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005374/0.3833, allocations: 2.236 MB / 433.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006741/0.3901, allocations: 2.967 MB / 436.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002495/0.3926, allocations: 496 kB / 436.9 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004988/0.3976, allocations: 1.272 MB / 438.2 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005833/0.4034, allocations: 2.708 MB / 440.9 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006473/0.4099, allocations: 2.253 MB / 443.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01576/0.4256, allocations: 9.638 MB / 452.8 MB, free: 11.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.298e-05/0.4256, allocations: 8 kB / 452.8 MB, free: 11.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4256, allocations: 0 / 452.8 MB, free: 11.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004521/0.4261, allocations: 3.938 kB / 452.8 MB, free: 11.05 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.02175/0.4479, allocations: 6.429 MB / 459.2 MB, free: 4.555 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/0.4479, allocations: 11.98 kB / 459.2 MB, free: 4.543 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01332/0.4612, allocations: 2.645 MB / 461.9 MB, free: 1.891 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01198/0.4732, allocations: 3.984 MB / 465.9 MB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003588/0.4736, allocations: 320.4 kB / 466.2 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001995/0.4756, allocations: 443.9 kB / 466.6 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0258/0.5014, allocations: 12.29 MB / 478.9 MB, free: 28 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002118/0.5016, allocations: 51.7 kB / 479 MB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007937/0.5024, allocations: 199.8 kB / 479.2 MB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003985/0.5064, allocations: 2.206 MB / 481.4 MB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02327/0.5296, allocations: 10.51 MB / 491.9 MB, free: 3.047 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06788/0.5975, allocations: 43.34 MB / 0.5227 GB, free: 6.551 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01181/0.6093, allocations: 3.972 MB / 0.5265 GB, free: 2.539 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003964/0.6133, allocations: 2.463 MB / 0.529 GB, free: 68 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01741/0.6307, allocations: 9.305 MB / 0.538 GB, free: 6.723 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.41e-05/0.6307, allocations: 51.88 kB / 0.5381 GB, free: 6.664 MB / 462.1 MB Notification: Performance of pre-optimization done (n=192): time 4.959e-06/0.6307, allocations: 0 / 0.5381 GB, free: 6.664 MB / 462.1 MB Notification: Performance of matching and sorting (n=218): time 0.05849/0.6892, allocations: 21.09 MB / 0.5587 GB, free: 1.547 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001619/0.6894, allocations: 209.2 kB / 0.5589 GB, free: 1.297 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2521/0.9415, allocations: 4.547 MB / 0.5633 GB, free: 144.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007052/0.9422, allocations: 57.41 kB / 0.5634 GB, free: 144.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003319/0.9456, allocations: 3.877 MB / 0.5672 GB, free: 143 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001464/0.947, allocations: 0.8737 MB / 0.568 GB, free: 142.4 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002635/0.9497, allocations: 1.402 MB / 0.5694 GB, free: 141.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.39e-05/0.9497, allocations: 306.2 kB / 0.5697 GB, free: 141.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004665/0.9544, allocations: 2.576 MB / 0.5722 GB, free: 140.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007161/0.9616, allocations: 6.61 MB / 0.5786 GB, free: 134.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01165/0.9732, allocations: 9.808 MB / 0.5882 GB, free: 126.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002842/0.9735, allocations: 38.53 kB / 0.5883 GB, free: 126.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02111/0.9946, allocations: 10.22 MB / 0.5982 GB, free: 122.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001183/0.9947, allocations: 70.66 kB / 0.5983 GB, free: 122.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002133/0.9949, allocations: 143.8 kB / 0.5985 GB, free: 122.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004084/0.999, allocations: 1.609 MB / 0.6 GB, free: 121.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005275/1.004, allocations: 1.565 MB / 0.6015 GB, free: 120.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01061/1.015, allocations: 9.903 MB / 0.6112 GB, free: 110.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006506/1.021, allocations: 383.5 kB / 0.6116 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001416/1.023, allocations: 410.5 kB / 0.612 GB, free: 109.8 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 45 (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 (834): * Single equations (assignments): 829 * 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.004969/1.028, allocations: 2.57 MB / 0.6145 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001059/1.029, allocations: 405.3 kB / 0.6149 GB, free: 106.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007395/1.036, allocations: 4.566 MB / 0.6193 GB, free: 102.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.025e-05/1.036, allocations: 27.67 kB / 0.6194 GB, free: 102.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/1.036, allocations: 7.938 kB / 0.6194 GB, free: 102.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.469e-05/1.036, allocations: 18.53 kB / 0.6194 GB, free: 102.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01699/1.053, allocations: 8.989 MB / 0.6282 GB, free: 93.18 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.068e-05/1.053, allocations: 4 kB / 0.6282 GB, free: 93.18 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001733/1.055, allocations: 343.5 kB / 0.6285 GB, free: 92.84 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00379/1.059, allocations: 1.355 MB / 0.6298 GB, free: 91.48 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000332/1.059, allocations: 43.34 kB / 0.6299 GB, free: 91.44 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009779/1.069, allocations: 9.041 MB / 0.6387 GB, free: 82.19 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/1.069, allocations: 7.984 kB / 0.6387 GB, free: 82.18 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01054/1.08, allocations: 7.524 MB / 0.646 GB, free: 74.62 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002192/1.082, allocations: 0.6805 MB / 0.6467 GB, free: 73.94 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001152/1.083, allocations: 36 kB / 0.6467 GB, free: 73.91 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002344/1.085, allocations: 131.8 kB / 0.6469 GB, free: 73.78 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004436/1.086, allocations: 133.7 kB / 0.647 GB, free: 73.65 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001692/1.086, allocations: 59.98 kB / 0.6471 GB, free: 73.59 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004088/1.09, allocations: 2.685 MB / 0.6497 GB, free: 70.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/1.09, allocations: 0 / 0.6497 GB, free: 70.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007344/1.097, allocations: 1.25 MB / 0.6509 GB, free: 69.65 MB / 478.1 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 (169): * Single equations (assignments): 164 * 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.0005491/1.098, allocations: 183.3 kB / 0.6511 GB, free: 69.46 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009322/1.107, allocations: 6.13 MB / 0.6571 GB, free: 63.34 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.331e-06/1.107, allocations: 0 / 0.6571 GB, free: 63.34 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002924/1.11, allocations: 2.046 MB / 0.6591 GB, free: 61.27 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004492/1.115, allocations: 489.7 kB / 0.6595 GB, free: 60.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02009/1.135, allocations: 11.95 MB / 0.6712 GB, free: 48.82 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004015/1.139, allocations: 3.486 MB / 0.6746 GB, free: 45.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004567/1.143, allocations: 2.041 MB / 0.6766 GB, free: 43.25 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007613/1.144, allocations: 263.4 kB / 0.6768 GB, free: 43 MB / 478.1 MB Notification: Performance of SimCode: time 1.493e-06/1.144, allocations: 4 kB / 0.6768 GB, free: 42.99 MB / 478.1 MB Notification: Performance of Templates: time 0.0736/1.218, allocations: 45.43 MB / 0.7212 GB, free: 13.52 MB / 494.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.326827645301819]