Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001033/0.001033, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001535/0.001535, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9828/0.9828, allocations: 177 MB / 204.8 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.385e-05/2.551e-05, allocations: 5.266 kB / 272.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01054/0.01056, allocations: 13.12 MB / 286 MB, free: 4.273 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1277/0.1383, allocations: 4.479 MB / 290.5 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002202/0.1405, allocations: 108.9 kB / 290.6 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005612/0.1461, allocations: 4.503 MB / 295.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004901/0.151, allocations: 2.272 MB / 297.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001595/0.1526, allocations: 1.035 MB / 298.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007053/0.1596, allocations: 6.88 MB / 305.3 MB, free: 11.63 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004474/0.1641, allocations: 4.675 MB / 310 MB, free: 8.734 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004541/0.1686, allocations: 3.257 MB / 313.2 MB, free: 6.898 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003368/0.172, allocations: 3.141 MB / 316.4 MB, free: 4.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008677/0.1729, allocations: 480 kB / 316.8 MB, free: 3.691 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001732/0.1746, allocations: 1.298 MB / 318.1 MB, free: 2.453 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001371/0.176, allocations: 2.709 MB / 320.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001657/0.1776, allocations: 1.714 MB / 322.6 MB, free: 14.2 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00577/0.1834, allocations: 5.835 MB / 328.4 MB, free: 8.715 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1834, allocations: 4 kB / 328.4 MB, free: 8.711 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1834, allocations: 0 / 328.4 MB, free: 8.711 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001026/0.1835, allocations: 0 / 328.4 MB, free: 8.711 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.008641/0.1922, allocations: 6.626 MB / 335 MB, free: 2.121 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1922, allocations: 11.98 kB / 335 MB, free: 2.109 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006802/0.199, allocations: 3.225 MB / 338.3 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004715/0.2037, allocations: 3.38 MB / 341.6 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001557/0.2039, allocations: 300.5 kB / 341.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008668/0.2047, allocations: 425.1 kB / 342.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009322/0.2141, allocations: 7.005 MB / 349.4 MB, free: 3.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001074/0.2142, allocations: 55.52 kB / 349.4 MB, free: 3.105 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003219/0.2145, allocations: 187.5 kB / 349.6 MB, free: 2.957 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001926/0.2164, allocations: 2.023 MB / 351.6 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007807/0.2242, allocations: 3.75 MB / 355.4 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03816/0.2624, allocations: 48.07 MB / 403.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005567/0.268, allocations: 2.306 MB / 405.7 MB, free: 9.598 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001441/0.2694, allocations: 0.7795 MB / 406.5 MB, free: 8.801 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009771/0.2792, allocations: 6.224 MB / 412.7 MB, free: 2.586 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.647e-05/0.2792, allocations: 50.39 kB / 412.8 MB, free: 2.527 MB / 362.7 MB Notification: Performance of pre-optimization done (n=171): time 5.12e-06/0.2792, allocations: 0 / 412.8 MB, free: 2.527 MB / 362.7 MB Notification: Performance of matching and sorting (n=197): time 0.02901/0.3082, allocations: 14.24 MB / 427 MB, free: 4.246 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.847e-05/0.3083, allocations: 205.2 kB / 427.2 MB, free: 4.004 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1338/0.4421, allocations: 4.036 MB / 431.3 MB, free: 112.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004899/0.4426, allocations: 52.52 kB / 431.3 MB, free: 112.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002529/0.4451, allocations: 3.874 MB / 435.2 MB, free: 111.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009183/0.4461, allocations: 0.8123 MB / 436 MB, free: 111.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001687/0.4477, allocations: 1.428 MB / 437.4 MB, free: 111.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.005e-05/0.4478, allocations: 478.6 kB / 437.9 MB, free: 110.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0016/0.4494, allocations: 0.7714 MB / 438.7 MB, free: 110.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003416/0.4528, allocations: 6.509 MB / 445.2 MB, free: 103.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005636/0.4585, allocations: 7.97 MB / 453.2 MB, free: 95.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001054/0.4586, allocations: 38.5 kB / 453.2 MB, free: 95.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.009437/0.468, allocations: 6.454 MB / 459.6 MB, free: 94.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.903e-05/0.4681, allocations: 60.91 kB / 459.7 MB, free: 94.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001734/0.4682, allocations: 134.5 kB / 459.8 MB, free: 94.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002594/0.4708, allocations: 1.135 MB / 461 MB, free: 94.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002522/0.4734, allocations: 1.477 MB / 462.4 MB, free: 94.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005257/0.4786, allocations: 6.493 MB / 468.9 MB, free: 89.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003244/0.4819, allocations: 421 kB / 469.4 MB, free: 89.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004167/0.4823, allocations: 389.2 kB / 469.7 MB, free: 89.57 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.001473/0.4838, allocations: 0.6887 MB / 470.4 MB, free: 89.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005658/0.4843, allocations: 456.8 kB / 470.9 MB, free: 88.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003238/0.4876, allocations: 2.202 MB / 473.1 MB, free: 88.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-05/0.4876, allocations: 27.2 kB / 473.1 MB, free: 88.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.4876, allocations: 11.75 kB / 473.1 MB, free: 88.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.4876, allocations: 11.2 kB / 473.1 MB, free: 88.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009094/0.4967, allocations: 6.437 MB / 479.6 MB, free: 82.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.246e-06/0.4967, allocations: 0 / 479.6 MB, free: 82.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007757/0.4975, allocations: 299.2 kB / 479.8 MB, free: 82.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002192/0.4997, allocations: 0.8857 MB / 480.7 MB, free: 81.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/0.4998, allocations: 31.98 kB / 480.8 MB, free: 81.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004577/0.5044, allocations: 5.78 MB / 486.5 MB, free: 75.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.5044, allocations: 4 kB / 486.5 MB, free: 75.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004457/0.5088, allocations: 3.277 MB / 489.8 MB, free: 72.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007736/0.5096, allocations: 392.7 kB / 490.2 MB, free: 72.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002623/0.5099, allocations: 34.64 kB / 490.2 MB, free: 72.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009144/0.5108, allocations: 167.8 kB / 490.4 MB, free: 72.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002507/0.511, allocations: 129 kB / 490.5 MB, free: 71.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.204e-05/0.5111, allocations: 51.94 kB / 490.6 MB, free: 71.87 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002066/0.5132, allocations: 1.777 MB / 492.4 MB, free: 70.08 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.5132, allocations: 0 / 492.4 MB, free: 70.08 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004217/0.5174, allocations: 1.336 MB / 493.7 MB, free: 68.75 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.0004101/0.5178, allocations: 187.4 kB / 493.9 MB, free: 68.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005336/0.5231, allocations: 3.651 MB / 497.5 MB, free: 64.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.5231, allocations: 0 / 497.5 MB, free: 64.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001313/0.5245, allocations: 1.164 MB / 498.7 MB, free: 63.71 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001899/0.5264, allocations: 0.4943 MB / 499.2 MB, free: 63.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01197/0.5383, allocations: 9.077 MB / 0.4964 GB, free: 54.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001204/0.5395, allocations: 1.502 MB / 0.4978 GB, free: 52.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002573/0.5421, allocations: 1.687 MB / 0.4995 GB, free: 50.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005564/0.5427, allocations: 260.4 kB / 0.4997 GB, free: 50.63 MB / 378.7 MB Notification: Performance of SimCode: time 2.024e-06/0.5427, allocations: 0 / 0.4997 GB, free: 50.63 MB / 378.7 MB Notification: Performance of Templates: time 0.05242/0.5951, allocations: 40.33 MB / 0.5391 GB, free: 10.92 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.33467187313363]