Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001947/0.001947, allocations: 84.66 kB / 20.95 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002302/0.002302, allocations: 153.1 kB / 24.26 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.523/1.523, allocations: 173.3 MB / 200.8 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.585e-05/2.719e-05, allocations: 6.25 kB / 267.3 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01676/0.01679, allocations: 11.87 MB / 279.2 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.02765, allocations: 4.372 MB / 283.6 MB, free: 6.402 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002375/0.03002, allocations: 111.4 kB / 283.7 MB, free: 6.293 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01002/0.04004, allocations: 4.377 MB / 288 MB, free: 1.902 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1286/0.1686, allocations: 2.31 MB / 290.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002292/0.1709, allocations: 1.033 MB / 291.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008297/0.1792, allocations: 6.752 MB / 298.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004943/0.1842, allocations: 4.689 MB / 302.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004101/0.1883, allocations: 3.265 MB / 306.1 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003263/0.1915, allocations: 3.058 MB / 309.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006716/0.1922, allocations: 491.1 kB / 309.6 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001852/0.1941, allocations: 1.323 MB / 311 MB, free: 10.73 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001548/0.1956, allocations: 2.739 MB / 313.7 MB, free: 8.531 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001734/0.1973, allocations: 1.742 MB / 315.4 MB, free: 6.867 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008544/0.2059, allocations: 9.391 MB / 324.8 MB, free: 13.83 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2059, allocations: 0 / 324.8 MB, free: 13.83 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2059, allocations: 0 / 324.8 MB, free: 13.83 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002912/0.2062, allocations: 4 kB / 324.8 MB, free: 13.82 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01525/0.2214, allocations: 6.304 MB / 331.1 MB, free: 7.566 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.2215, allocations: 16.92 kB / 331.2 MB, free: 7.551 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01281/0.2343, allocations: 3.308 MB / 334.5 MB, free: 4.273 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008761/0.243, allocations: 3.767 MB / 338.2 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003795/0.2434, allocations: 304.4 kB / 338.5 MB, free: 412 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001024/0.2444, allocations: 427 kB / 338.9 MB, free: 24 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02227/0.2667, allocations: 11.89 MB / 350.8 MB, free: 3.578 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001433/0.2669, allocations: 58.72 kB / 350.9 MB, free: 3.543 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005293/0.2674, allocations: 186.9 kB / 351.1 MB, free: 3.395 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003927/0.2713, allocations: 2.096 MB / 353.2 MB, free: 1.324 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02178/0.2931, allocations: 10.14 MB / 363.3 MB, free: 7.359 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06937/0.3625, allocations: 42.54 MB / 405.9 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01211/0.3746, allocations: 3.813 MB / 409.7 MB, free: 8.48 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004032/0.3786, allocations: 2.342 MB / 412 MB, free: 6.125 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01808/0.3967, allocations: 9.267 MB / 421.3 MB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.404e-05/0.3968, allocations: 55.55 kB / 421.3 MB, free: 12.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=172): time 5.43e-06/0.3968, allocations: 4 kB / 421.3 MB, free: 12.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=198): time 0.2137/0.6104, allocations: 28.35 MB / 449.7 MB, free: 120.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.85e-05/0.6105, allocations: 206.2 kB / 449.9 MB, free: 120.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006099/0.6166, allocations: 4.595 MB / 454.5 MB, free: 118.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005028/0.6171, allocations: 50.12 kB / 454.5 MB, free: 118.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001874/0.619, allocations: 3.718 MB / 458.2 MB, free: 116.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009228/0.6199, allocations: 0.7901 MB / 459 MB, free: 115.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001591/0.6215, allocations: 1.32 MB / 460.4 MB, free: 114.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.819e-05/0.6215, allocations: 301.1 kB / 460.7 MB, free: 114.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0031/0.6246, allocations: 2.643 MB / 463.3 MB, free: 113.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004181/0.6288, allocations: 6.524 MB / 469.8 MB, free: 106.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008642/0.6375, allocations: 9.75 MB / 479.6 MB, free: 94.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001374/0.6376, allocations: 40 kB / 479.6 MB, free: 94.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=853) (initialization): time 0.01853/0.6561, allocations: 11.22 MB / 490.8 MB, free: 83.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.542e-05/0.6562, allocations: 64 kB / 490.9 MB, free: 83.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001103/0.6563, allocations: 132 kB / 491 MB, free: 83.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007556/0.6639, allocations: 2.737 MB / 493.8 MB, free: 80.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004865/0.6687, allocations: 1.588 MB / 495.3 MB, free: 79.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01412/0.6829, allocations: 12.49 MB / 0.4959 GB, free: 66.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006337/0.6892, allocations: 455.4 kB / 0.4964 GB, free: 65.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001033/0.6902, allocations: 388 kB / 0.4967 GB, free: 65.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 611 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.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 (789): * Single equations (assignments): 784 * 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,33,77.8%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003872/0.6941, allocations: 2.476 MB / 0.4992 GB, free: 63.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001257/0.6954, allocations: 457.3 kB / 0.4996 GB, free: 62.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009263/0.7046, allocations: 5.397 MB / 0.5049 GB, free: 57.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.24e-05/0.7047, allocations: 24 kB / 0.5049 GB, free: 57.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.757e-05/0.7047, allocations: 11.62 kB / 0.5049 GB, free: 57.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.667e-05/0.7047, allocations: 7.969 kB / 0.5049 GB, free: 57.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0181/0.7228, allocations: 10.47 MB / 0.5151 GB, free: 46.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.941e-05/0.7228, allocations: 0 / 0.5151 GB, free: 46.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001815/0.7246, allocations: 403.4 kB / 0.5155 GB, free: 46.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007092/0.7317, allocations: 2.479 MB / 0.5179 GB, free: 43.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002772/0.732, allocations: 39.92 kB / 0.518 GB, free: 43.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01264/0.7446, allocations: 11.67 MB / 0.5294 GB, free: 31.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.7446, allocations: 0 / 0.5294 GB, free: 31.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01238/0.757, allocations: 8.568 MB / 0.5377 GB, free: 23.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001258/0.7583, allocations: 401.3 kB / 0.5381 GB, free: 22.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005371/0.7588, allocations: 35.98 kB / 0.5382 GB, free: 22.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001922/0.7607, allocations: 207.7 kB / 0.5384 GB, free: 22.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004501/0.7612, allocations: 129.1 kB / 0.5385 GB, free: 22.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001529/0.7613, allocations: 52.17 kB / 0.5385 GB, free: 22.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00321/0.7646, allocations: 2.729 MB / 0.5412 GB, free: 19.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.7646, allocations: 0 / 0.5412 GB, free: 19.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00675/0.7713, allocations: 1.406 MB / 0.5426 GB, free: 18.36 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 (146): * Single equations (assignments): 141 * 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,29,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.0005522/0.7719, allocations: 195.7 kB / 0.5428 GB, free: 18.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009033/0.7809, allocations: 6.355 MB / 0.549 GB, free: 11.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.7809, allocations: 0 / 0.549 GB, free: 11.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003564/0.7845, allocations: 2.266 MB / 0.5512 GB, free: 9.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003412/0.7879, allocations: 0.514 MB / 0.5517 GB, free: 9.035 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1388/0.9267, allocations: 11.61 MB / 0.563 GB, free: 106.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005756/0.9324, allocations: 3.349 MB / 0.5663 GB, free: 106.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.004415/0.9368, allocations: 1.944 MB / 0.5682 GB, free: 106.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000908/0.9377, allocations: 255.4 kB / 0.5684 GB, free: 106.5 MB / 378.7 MB Notification: Performance of SimCode: time 2.004e-06/0.9377, allocations: 0 / 0.5684 GB, free: 106.5 MB / 378.7 MB Notification: Performance of Templates: time 0.06924/1.007, allocations: 45.11 MB / 0.6125 GB, free: 77.58 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 6.862030746997334]