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.001357/0.001357, allocations: 83.58 kB / 21.18 MB, free: 3.383 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.001471/0.001471, allocations: 161 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.9848/0.9848, allocations: 177.1 MB / 205 MB, free: 5.594 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.103e-06/1.103e-06, allocations: 0 / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.734e-05/1.845e-05, allocations: 2.312 kB / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01033/0.01035, allocations: 13.12 MB / 286.1 MB, free: 4.344 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1169/0.1273, allocations: 4.481 MB / 290.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002087/0.1294, allocations: 109.8 kB / 290.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005571/0.1349, allocations: 4.51 MB / 295.2 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004622/0.1396, allocations: 2.267 MB / 297.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001615/0.1412, allocations: 1.042 MB / 298.5 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006809/0.148, allocations: 6.882 MB / 305.4 MB, free: 11.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00417/0.1521, allocations: 4.666 MB / 310 MB, free: 8.598 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004042/0.1562, allocations: 3.255 MB / 313.3 MB, free: 6.766 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002946/0.1591, allocations: 3.134 MB / 316.4 MB, free: 4.074 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007958/0.1599, allocations: 480 kB / 316.9 MB, free: 3.605 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001541/0.1615, allocations: 1.311 MB / 318.2 MB, free: 2.355 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001371/0.1628, allocations: 2.698 MB / 320.9 MB, free: 15.74 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002137/0.165, allocations: 1.723 MB / 322.6 MB, free: 14.1 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005744/0.1707, allocations: 5.829 MB / 328.5 MB, free: 8.617 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1707, allocations: 0 / 328.5 MB, free: 8.617 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1707, allocations: 0 / 328.5 MB, free: 8.617 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002254/0.171, allocations: 0 / 328.5 MB, free: 8.617 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.008794/0.1798, allocations: 6.631 MB / 335.1 MB, free: 2.02 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.1798, allocations: 8.031 kB / 335.1 MB, free: 2.012 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006863/0.1867, allocations: 3.23 MB / 338.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005101/0.1918, allocations: 3.381 MB / 341.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001684/0.1919, allocations: 299.2 kB / 342 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007399/0.1927, allocations: 417.9 kB / 342.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01011/0.2028, allocations: 7.01 MB / 349.4 MB, free: 3.082 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001219/0.2029, allocations: 55.58 kB / 349.5 MB, free: 3.027 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000402/0.2033, allocations: 183.6 kB / 349.7 MB, free: 2.883 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001938/0.2052, allocations: 2.032 MB / 351.7 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008167/0.2134, allocations: 3.752 MB / 355.4 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03698/0.2504, allocations: 48.06 MB / 403.5 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005562/0.256, allocations: 2.301 MB / 405.8 MB, free: 9.523 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001152/0.2571, allocations: 0.7815 MB / 406.6 MB, free: 8.734 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008726/0.2658, allocations: 6.226 MB / 412.8 MB, free: 2.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/0.2659, allocations: 54.33 kB / 412.9 MB, free: 2.457 MB / 362.7 MB Notification: Performance of pre-optimization done (n=171): time 4.248e-06/0.2659, allocations: 0 / 412.9 MB, free: 2.457 MB / 362.7 MB Notification: Performance of matching and sorting (n=197): time 0.02808/0.294, allocations: 14.24 MB / 427.1 MB, free: 4.176 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.142e-05/0.294, allocations: 201.2 kB / 427.3 MB, free: 3.938 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1249/0.419, allocations: 4.028 MB / 431.3 MB, free: 112.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003844/0.4193, allocations: 53.56 kB / 431.4 MB, free: 112.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002564/0.4219, allocations: 3.878 MB / 435.3 MB, free: 111.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009914/0.4229, allocations: 0.8131 MB / 436.1 MB, free: 111.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001815/0.4247, allocations: 1.427 MB / 437.5 MB, free: 111.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.457e-05/0.4248, allocations: 481.4 kB / 438 MB, free: 110.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001462/0.4262, allocations: 0.7748 MB / 438.7 MB, free: 110.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003163/0.4294, allocations: 6.507 MB / 445.2 MB, free: 103.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005317/0.4347, allocations: 7.975 MB / 453.2 MB, free: 96.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001149/0.4348, allocations: 39.28 kB / 453.3 MB, free: 96.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.009182/0.444, allocations: 6.447 MB / 459.7 MB, free: 94.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.243e-05/0.4441, allocations: 66.84 kB / 459.8 MB, free: 94.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001413/0.4442, allocations: 135.6 kB / 459.9 MB, free: 94.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002587/0.4468, allocations: 1.133 MB / 461 MB, free: 94.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002546/0.4494, allocations: 1.479 MB / 462.5 MB, free: 94.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005301/0.4547, allocations: 6.492 MB / 469 MB, free: 89.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003215/0.4579, allocations: 419.9 kB / 469.4 MB, free: 89.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004361/0.4583, allocations: 388.7 kB / 469.8 MB, free: 89.74 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.001356/0.4597, allocations: 0.6956 MB / 470.5 MB, free: 89.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004873/0.4601, allocations: 441.5 kB / 470.9 MB, free: 89.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003149/0.4633, allocations: 2.212 MB / 473.1 MB, free: 88.26 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.857e-05/0.4633, allocations: 20 kB / 473.2 MB, free: 88.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.4633, allocations: 8 kB / 473.2 MB, free: 88.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.4633, allocations: 10.98 kB / 473.2 MB, free: 88.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008657/0.472, allocations: 6.444 MB / 479.6 MB, free: 82.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.472, allocations: 4 kB / 479.6 MB, free: 82.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007388/0.4727, allocations: 288 kB / 479.9 MB, free: 82.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002128/0.4749, allocations: 0.8927 MB / 480.8 MB, free: 82.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001148/0.475, allocations: 36 kB / 480.8 MB, free: 82.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004258/0.4792, allocations: 5.779 MB / 486.6 MB, free: 76.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.4792, allocations: 6.875 kB / 486.6 MB, free: 76.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004306/0.4835, allocations: 3.273 MB / 489.9 MB, free: 72.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000784/0.4843, allocations: 393.5 kB / 490.3 MB, free: 72.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000264/0.4846, allocations: 28 kB / 490.3 MB, free: 72.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009016/0.4855, allocations: 171.7 kB / 490.5 MB, free: 72.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002432/0.4857, allocations: 133 kB / 490.6 MB, free: 72.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.328e-05/0.4858, allocations: 58.58 kB / 490.7 MB, free: 72.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001951/0.4878, allocations: 1.777 MB / 492.4 MB, free: 70.24 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4878, allocations: 0 / 492.4 MB, free: 70.24 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004147/0.4919, allocations: 1.331 MB / 493.8 MB, free: 68.92 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.0003961/0.4923, allocations: 179.6 kB / 493.9 MB, free: 68.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005144/0.4975, allocations: 3.661 MB / 497.6 MB, free: 65.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.4975, allocations: 0 / 497.6 MB, free: 65.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001249/0.4987, allocations: 1.165 MB / 498.8 MB, free: 63.87 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002052/0.5008, allocations: 0.4985 MB / 499.3 MB, free: 63.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/0.5118, allocations: 9.073 MB / 0.4964 GB, free: 54.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001109/0.5129, allocations: 1.506 MB / 0.4979 GB, free: 52.73 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002444/0.5154, allocations: 1.69 MB / 0.4995 GB, free: 51.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005465/0.5159, allocations: 264.5 kB / 0.4998 GB, free: 50.78 MB / 378.7 MB Notification: Performance of SimCode: time 1.473e-06/0.5159, allocations: 0 / 0.4998 GB, free: 50.78 MB / 378.7 MB Notification: Performance of Templates: time 0.05009/0.566, allocations: 40.32 MB / 0.5392 GB, free: 11.07 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.211336183361709]