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.001087/0.001087, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001605/0.002693, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001058/0.001058, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001552/0.00261, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.9684/0.9684, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09393/1.062, allocations: 52.49 MB / 238.3 MB, free: 4.434 MB / 234.7 MB " [Timeout remaining time 179] 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.312e-06/1.312e-06, allocations: 0 / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.565e-05/1.696e-05, allocations: 6.25 kB / 239.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.00952/0.009537, allocations: 12.97 MB / 252.5 MB, free: 6.156 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007407/0.01694, allocations: 4.682 MB / 257.2 MB, free: 1.457 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001654/0.0186, allocations: 111.4 kB / 257.3 MB, free: 1.348 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004283/0.02288, allocations: 4.271 MB / 261.6 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003662/0.02654, allocations: 2.294 MB / 263.9 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001411/0.02795, allocations: 0.9474 MB / 264.8 MB, free: 9.809 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005867/0.03382, allocations: 6.179 MB / 271 MB, free: 3.617 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1156/0.1494, allocations: 4.296 MB / 275.3 MB, free: 3.371 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006821/0.1562, allocations: 4.049 MB / 279.3 MB, free: 3.312 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00468/0.1609, allocations: 2.995 MB / 282.3 MB, free: 3.312 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001384/0.1623, allocations: 487.5 kB / 282.8 MB, free: 3.312 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002208/0.1645, allocations: 1.356 MB / 284.2 MB, free: 3.312 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00214/0.1666, allocations: 2.448 MB / 286.6 MB, free: 3.219 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002022/0.1686, allocations: 1.425 MB / 288 MB, free: 2.977 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006071/0.1747, allocations: 5.514 MB / 293.6 MB, free: 2.168 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.604e-05/0.1747, allocations: 0 / 293.6 MB, free: 2.168 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1747, allocations: 0 / 293.6 MB, free: 2.168 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0003004/0.175, allocations: 0 / 293.6 MB, free: 2.168 MB / 266.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.01071/0.1857, allocations: 6.941 MB / 300.5 MB, free: 15.68 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.1858, allocations: 12.53 kB / 300.5 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003439/0.1892, allocations: 1.431 MB / 301.9 MB, free: 15.45 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004276/0.1935, allocations: 2.652 MB / 304.6 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001828/0.1937, allocations: 301.5 kB / 304.9 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008489/0.1945, allocations: 436 kB / 305.3 MB, free: 12.57 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01006/0.2046, allocations: 5.837 MB / 311.1 MB, free: 6.484 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001942/0.2048, allocations: 52.41 kB / 311.2 MB, free: 6.457 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004664/0.2052, allocations: 189.3 kB / 311.4 MB, free: 6.309 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001629/0.2069, allocations: 1.833 MB / 313.2 MB, free: 4.5 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006205/0.2131, allocations: 2.906 MB / 316.1 MB, free: 1.805 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03297/0.246, allocations: 34.93 MB / 351 MB, free: 14.99 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003901/0.2499, allocations: 1.685 MB / 352.7 MB, free: 13.33 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006153/0.2506, allocations: 415.2 kB / 353.1 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006412/0.257, allocations: 4.089 MB / 357.2 MB, free: 8.895 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.257, allocations: 51.12 kB / 357.3 MB, free: 8.84 MB / 330.7 MB Notification: Performance of pre-optimization done (n=142): time 3.477e-06/0.257, allocations: 0 / 357.3 MB, free: 8.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=158): time 0.01239/0.2694, allocations: 5.269 MB / 362.5 MB, free: 3.633 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.643e-05/0.2695, allocations: 149.5 kB / 362.7 MB, free: 3.457 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003459/0.2729, allocations: 3.72 MB / 366.4 MB, free: 384 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/0.273, allocations: 49.7 kB / 366.5 MB, free: 328 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001827/0.2749, allocations: 3.527 MB / 370 MB, free: 12.98 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004988/0.2754, allocations: 0.6564 MB / 370.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009638/0.2763, allocations: 1.249 MB / 371.9 MB, free: 11.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.011e-05/0.2764, allocations: 305.1 kB / 372.2 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.2776, allocations: 0.7676 MB / 373 MB, free: 10.17 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002625/0.2802, allocations: 4.717 MB / 377.7 MB, free: 3.664 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00458/0.2848, allocations: 6.005 MB / 383.7 MB, free: 12.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.217e-05/0.2849, allocations: 43.75 kB / 383.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=847) (initialization): time 0.005606/0.2905, allocations: 4.439 MB / 388.2 MB, free: 7.703 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.151e-05/0.2906, allocations: 68 kB / 388.2 MB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.264e-05/0.2906, allocations: 148.1 kB / 388.4 MB, free: 7.492 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006916/0.2913, allocations: 399.4 kB / 388.8 MB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002675/0.294, allocations: 1.638 MB / 390.4 MB, free: 5.461 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002574/0.2966, allocations: 3.572 MB / 394 MB, free: 1.734 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003202/0.2998, allocations: 295.6 kB / 394.3 MB, free: 1.445 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000488/0.3003, allocations: 345.9 kB / 394.6 MB, free: 1.113 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 653 * 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 (807): * Single equations (assignments): 802 * 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.001747/0.302, allocations: 0.6611 MB / 395.3 MB, free: 448 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005382/0.3026, allocations: 239.7 kB / 395.5 MB, free: 208 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001166/0.3037, allocations: 0.8602 MB / 396.4 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-05/0.3038, allocations: 20 kB / 396.4 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.3038, allocations: 4 kB / 396.4 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.3038, allocations: 7.969 kB / 396.4 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007028/0.3108, allocations: 4.261 MB / 400.6 MB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.3108, allocations: 4.656 kB / 400.7 MB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007676/0.3116, allocations: 291.6 kB / 400.9 MB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000908/0.3125, allocations: 365.2 kB / 401.3 MB, free: 10.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007857/0.3133, allocations: 427.7 kB / 401.7 MB, free: 10.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.074e-05/0.3134, allocations: 35.98 kB / 401.7 MB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/0.3154, allocations: 2.767 MB / 404.5 MB, free: 7.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.3154, allocations: 7.938 kB / 404.5 MB, free: 7.402 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001882/0.3173, allocations: 1.771 MB / 406.3 MB, free: 5.523 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006002/0.3179, allocations: 35.92 kB / 406.3 MB, free: 5.488 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007349/0.3186, allocations: 36 kB / 406.4 MB, free: 5.453 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.3188, allocations: 120.6 kB / 406.5 MB, free: 5.336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-05/0.3189, allocations: 36 kB / 406.5 MB, free: 5.301 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001562/0.3204, allocations: 1.394 MB / 407.9 MB, free: 3.895 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3204, allocations: 0 / 407.9 MB, free: 3.895 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003881/0.3243, allocations: 1.168 MB / 409.1 MB, free: 2.727 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.0003758/0.3247, allocations: 179.9 kB / 409.3 MB, free: 2.543 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003924/0.3286, allocations: 2.71 MB / 412 MB, free: 15.83 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000216/0.3288, allocations: 114.8 kB / 412.1 MB, free: 15.71 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006723/0.3295, allocations: 0.651 MB / 412.7 MB, free: 15.03 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003272/0.3328, allocations: 1.035 MB / 413.8 MB, free: 14.01 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01686/0.3496, allocations: 8.945 MB / 422.7 MB, free: 4.902 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001846/0.3515, allocations: 1.487 MB / 424.2 MB, free: 3.391 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00169/0.3532, allocations: 0.5419 MB / 424.7 MB, free: 2.844 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008912/0.3541, allocations: 0.6026 MB / 425.3 MB, free: 2.238 MB / 394.7 MB Notification: Performance of SimCode: time 1.853e-06/0.3541, allocations: 0 / 425.3 MB, free: 2.238 MB / 394.7 MB Notification: Performance of Templates: time 0.1581/0.5121, allocations: 32.9 MB / 458.2 MB, free: 117.2 MB / 394.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 240] 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","",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.928213636390865]