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.001376/0.001376, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.00113/0.00113, allocations: 167.3 kB / 24.91 MB, free: 9.152 MB / 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.9317/0.9317, allocations: 177.1 MB / 205.3 MB, free: 5.469 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 2.494e-06/2.494e-06, allocations: 0 / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.339e-05/3.589e-05, allocations: 2.312 kB / 273.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01549/0.01553, allocations: 12.72 MB / 286.2 MB, free: 4.527 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1169/0.1324, allocations: 4.645 MB / 290.8 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002009/0.1344, allocations: 111.3 kB / 290.9 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00454/0.139, allocations: 4.478 MB / 295.4 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003194/0.1422, allocations: 2.286 MB / 297.7 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001095/0.1433, allocations: 1.046 MB / 298.7 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004374/0.1476, allocations: 6.854 MB / 305.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002565/0.1502, allocations: 4.772 MB / 310.3 MB, free: 8.906 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002702/0.1529, allocations: 4.206 MB / 314.5 MB, free: 5.988 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001734/0.1546, allocations: 2.988 MB / 317.5 MB, free: 3.203 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003242/0.155, allocations: 480 kB / 318 MB, free: 2.734 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001031/0.156, allocations: 1.296 MB / 319.3 MB, free: 1.492 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001312/0.1573, allocations: 2.697 MB / 322 MB, free: 14.88 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001167/0.1585, allocations: 1.723 MB / 323.7 MB, free: 13.23 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003669/0.1621, allocations: 5.846 MB / 329.6 MB, free: 7.734 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.361e-06/0.1621, allocations: 0 / 329.6 MB, free: 7.734 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1621, allocations: 0 / 329.6 MB, free: 7.734 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.012e-05/0.1622, allocations: 0 / 329.6 MB, free: 7.734 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.005382/0.1676, allocations: 5.733 MB / 335.3 MB, free: 2.395 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.1676, allocations: 8.031 kB / 335.3 MB, free: 2.387 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003259/0.1709, allocations: 1.427 MB / 336.7 MB, free: 1.008 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002816/0.1737, allocations: 2.644 MB / 339.4 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.1738, allocations: 301.3 kB / 339.7 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000477/0.1743, allocations: 424.5 kB / 340.1 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00554/0.1798, allocations: 5.793 MB / 345.9 MB, free: 7.816 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-05/0.1799, allocations: 54.45 kB / 345.9 MB, free: 7.789 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003078/0.1802, allocations: 182.7 kB / 346.1 MB, free: 7.645 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001413/0.1816, allocations: 1.771 MB / 347.9 MB, free: 5.902 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003994/0.1856, allocations: 2.868 MB / 350.7 MB, free: 3.027 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02408/0.2097, allocations: 34.61 MB / 385.4 MB, free: 15.17 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00362/0.2133, allocations: 1.74 MB / 387.1 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004687/0.2138, allocations: 399.9 kB / 387.5 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004973/0.2188, allocations: 4.11 MB / 391.6 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.068e-05/0.2188, allocations: 51.5 kB / 391.7 MB, free: 8.805 MB / 346.7 MB Notification: Performance of pre-optimization done (n=142): time 3.547e-06/0.2188, allocations: 4 kB / 391.7 MB, free: 8.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=158): time 0.01123/0.23, allocations: 5.345 MB / 397 MB, free: 3.414 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.449e-05/0.2301, allocations: 196.9 kB / 397.2 MB, free: 3.18 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002563/0.2327, allocations: 3.708 MB / 400.9 MB, free: 15.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.465e-05/0.2327, allocations: 45.7 kB / 400.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001675/0.2344, allocations: 3.492 MB / 404.4 MB, free: 11.85 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003355/0.2347, allocations: 0.6629 MB / 405.1 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009/0.2356, allocations: 1.243 MB / 406.3 MB, free: 9.926 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.102e-05/0.2357, allocations: 301.1 kB / 406.6 MB, free: 9.629 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001056/0.2368, allocations: 0.7598 MB / 407.4 MB, free: 8.863 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002902/0.2397, allocations: 4.699 MB / 412.1 MB, free: 2.141 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003799/0.2435, allocations: 5.981 MB / 418.1 MB, free: 10.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.669e-05/0.2435, allocations: 44 kB / 418.1 MB, free: 10.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=844) (initialization): time 0.004274/0.2478, allocations: 4.42 MB / 422.5 MB, free: 5.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.714e-05/0.2478, allocations: 64 kB / 422.6 MB, free: 5.598 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.585e-05/0.2479, allocations: 144 kB / 422.7 MB, free: 5.457 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006656/0.2486, allocations: 413.9 kB / 423.1 MB, free: 5.047 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002205/0.2508, allocations: 1.45 MB / 424.6 MB, free: 3.594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002366/0.2532, allocations: 3.55 MB / 428.1 MB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001999/0.2552, allocations: 299.8 kB / 428.4 MB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002762/0.2554, allocations: 343.9 kB / 428.8 MB, free: 15.23 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 650 * 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 (804): * Single equations (assignments): 799 * 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.001099/0.2565, allocations: 0.6497 MB / 429.4 MB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002879/0.2568, allocations: 247.7 kB / 429.7 MB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001051/0.2579, allocations: 0.8639 MB / 430.5 MB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.2579, allocations: 20 kB / 430.6 MB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.2579, allocations: 4 kB / 430.6 MB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.2579, allocations: 7.969 kB / 430.6 MB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004883/0.2628, allocations: 4.221 MB / 434.8 MB, free: 9.066 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.2628, allocations: 8.031 kB / 434.8 MB, free: 9.059 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005648/0.2634, allocations: 235.7 kB / 435 MB, free: 8.828 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006723/0.264, allocations: 431.1 kB / 435.4 MB, free: 8.395 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.91e-05/0.2641, allocations: 35.98 kB / 435.5 MB, free: 8.359 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001529/0.2656, allocations: 2.755 MB / 438.2 MB, free: 5.41 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.2656, allocations: 7.984 kB / 438.2 MB, free: 5.402 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001603/0.2672, allocations: 1.777 MB / 440 MB, free: 3.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003494/0.2676, allocations: 365.2 kB / 440.4 MB, free: 3.16 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002405/0.2678, allocations: 32 kB / 440.4 MB, free: 3.129 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000598/0.2684, allocations: 35.98 kB / 440.4 MB, free: 3.094 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.2685, allocations: 112.7 kB / 440.6 MB, free: 2.984 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-05/0.2686, allocations: 39.98 kB / 440.6 MB, free: 2.945 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001222/0.2698, allocations: 1.393 MB / 442 MB, free: 1.539 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2698, allocations: 0 / 442 MB, free: 1.539 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002841/0.2727, allocations: 1.144 MB / 443.1 MB, free: 404 kB / 394.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.0002685/0.2729, allocations: 164.5 kB / 443.3 MB, free: 232 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.1357/0.4086, allocations: 2.708 MB / 446 MB, free: 128.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001948/0.4088, allocations: 105 kB / 446.1 MB, free: 128.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007368/0.4096, allocations: 0.6454 MB / 446.7 MB, free: 128 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002351/0.4119, allocations: 0.7314 MB / 447.5 MB, free: 128 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009849/0.4218, allocations: 8.61 MB / 456.1 MB, free: 124.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001204/0.423, allocations: 1.467 MB / 457.6 MB, free: 124.2 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001153/0.4241, allocations: 0.5284 MB / 458.1 MB, free: 124.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007143/0.4248, allocations: 0.6022 MB / 458.7 MB, free: 124 MB / 394.7 MB Notification: Performance of SimCode: time 1.603e-06/0.4248, allocations: 0 / 458.7 MB, free: 124 MB / 394.7 MB Notification: Performance of Templates: time 0.04307/0.4679, allocations: 31.87 MB / 490.6 MB, free: 101.3 MB / 394.7 MB " [Timeout remaining time 660] 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.032786014024168]