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.001848/0.001848, allocations: 95.86 kB / 20.96 MB, free: 3.461 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.001906/0.001906, allocations: 149.1 kB / 24.26 MB, free: 168 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.555/1.555, allocations: 173.3 MB / 200.8 MB, free: 9.312 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.412e-06/1.412e-06, allocations: 0 / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.632e-05/2.773e-05, allocations: 6.25 kB / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01906/0.01908, allocations: 13.18 MB / 280.5 MB, free: 9.492 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01167/0.03076, allocations: 4.469 MB / 285 MB, free: 5.008 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002496/0.03325, allocations: 111.4 kB / 285.1 MB, free: 4.898 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009768/0.04302, allocations: 4.517 MB / 289.6 MB, free: 376 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1259/0.169, allocations: 2.316 MB / 291.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002127/0.1711, allocations: 1.029 MB / 292.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008137/0.1792, allocations: 6.754 MB / 299.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004682/0.1839, allocations: 4.697 MB / 304.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003854/0.1878, allocations: 3.292 MB / 307.7 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003222/0.191, allocations: 3.157 MB / 310.8 MB, free: 9.578 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007171/0.1917, allocations: 487.5 kB / 311.3 MB, free: 9.578 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001924/0.1936, allocations: 1.325 MB / 312.6 MB, free: 9.219 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00154/0.1952, allocations: 2.752 MB / 315.4 MB, free: 6.801 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001601/0.1968, allocations: 1.747 MB / 317.1 MB, free: 5.129 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009188/0.206, allocations: 9.364 MB / 326.5 MB, free: 12.11 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.206, allocations: 0 / 326.5 MB, free: 12.11 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.398e-06/0.206, allocations: 3.984 kB / 326.5 MB, free: 12.11 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001774/0.2061, allocations: 0 / 326.5 MB, free: 12.11 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.01654/0.2227, allocations: 7.261 MB / 333.8 MB, free: 4.887 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.2227, allocations: 16.86 kB / 333.8 MB, free: 4.871 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01361/0.2363, allocations: 3.233 MB / 337 MB, free: 1.668 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009917/0.2462, allocations: 3.427 MB / 340.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002922/0.2465, allocations: 301.5 kB / 340.7 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001239/0.2478, allocations: 428.2 kB / 341.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01801/0.2658, allocations: 7.663 MB / 348.8 MB, free: 5.285 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001685/0.266, allocations: 54.31 kB / 348.9 MB, free: 5.254 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004987/0.2665, allocations: 184.9 kB / 349 MB, free: 5.109 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004013/0.2705, allocations: 2.096 MB / 351.1 MB, free: 3.039 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01366/0.2841, allocations: 4.172 MB / 355.3 MB, free: 15.05 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07668/0.3608, allocations: 53.84 MB / 409.2 MB, free: 8.188 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01006/0.3709, allocations: 2.414 MB / 411.6 MB, free: 5.734 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002237/0.3731, allocations: 0.8304 MB / 412.4 MB, free: 4.887 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01655/0.3897, allocations: 6.413 MB / 418.8 MB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.77e-05/0.3897, allocations: 61.66 kB / 418.9 MB, free: 14.42 MB / 378.7 MB Notification: Performance of pre-optimization done (n=171): time 4.648e-06/0.3897, allocations: 0 / 418.9 MB, free: 14.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=197): time 0.1796/0.5693, allocations: 14.74 MB / 433.6 MB, free: 119.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.822e-05/0.5694, allocations: 205 kB / 433.8 MB, free: 119.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008045/0.5774, allocations: 5.085 MB / 438.9 MB, free: 119 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004253/0.5779, allocations: 51.73 kB / 438.9 MB, free: 119 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002693/0.5806, allocations: 4.16 MB / 443.1 MB, free: 117.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001072/0.5816, allocations: 0.8703 MB / 444 MB, free: 117.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002216/0.5839, allocations: 1.739 MB / 445.7 MB, free: 116.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.769e-05/0.5839, allocations: 481.5 kB / 446.2 MB, free: 116.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002089/0.586, allocations: 0.8857 MB / 447.1 MB, free: 116.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003926/0.5899, allocations: 6.87 MB / 453.9 MB, free: 108.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007/0.5969, allocations: 8.547 MB / 462.5 MB, free: 99.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001498/0.5971, allocations: 37.25 kB / 462.5 MB, free: 99.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01324/0.6103, allocations: 6.708 MB / 469.2 MB, free: 96.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001009/0.6104, allocations: 63.97 kB / 469.3 MB, free: 96.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001888/0.6106, allocations: 135.6 kB / 469.4 MB, free: 96.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004569/0.6152, allocations: 1.166 MB / 470.6 MB, free: 96.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004363/0.6195, allocations: 1.479 MB / 472.1 MB, free: 96.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008135/0.6277, allocations: 6.906 MB / 479 MB, free: 90.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005146/0.6328, allocations: 425.3 kB / 479.4 MB, free: 90.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000751/0.6336, allocations: 387.8 kB / 479.8 MB, free: 89.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * 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 (796): * Single equations (assignments): 791 * 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.002096/0.6357, allocations: 0.8018 MB / 480.6 MB, free: 88.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008389/0.6365, allocations: 445.4 kB / 481 MB, free: 88.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005639/0.6421, allocations: 2.363 MB / 483.4 MB, free: 86.44 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.877e-05/0.6422, allocations: 20 kB / 483.4 MB, free: 86.42 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.53e-05/0.6422, allocations: 11.89 kB / 483.4 MB, free: 86.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.978e-05/0.6422, allocations: 7.969 kB / 483.4 MB, free: 86.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.016/0.6582, allocations: 7.848 MB / 491.3 MB, free: 78.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.459e-05/0.6582, allocations: 4 kB / 491.3 MB, free: 78.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/0.6596, allocations: 291.6 kB / 491.5 MB, free: 78.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003991/0.6636, allocations: 0.9138 MB / 492.5 MB, free: 77.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002244/0.6638, allocations: 36 kB / 492.5 MB, free: 77.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007163/0.671, allocations: 6.097 MB / 498.6 MB, free: 70.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.671, allocations: 0 / 498.6 MB, free: 70.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00761/0.6786, allocations: 3.615 MB / 0.4904 GB, free: 67.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001289/0.6799, allocations: 393.2 kB / 0.4908 GB, free: 66.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005696/0.6805, allocations: 39.77 kB / 0.4909 GB, free: 66.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001818/0.6823, allocations: 171.7 kB / 0.491 GB, free: 66.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003641/0.6827, allocations: 125.1 kB / 0.4911 GB, free: 66.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/0.6828, allocations: 48 kB / 0.4912 GB, free: 66.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002887/0.6857, allocations: 2.136 MB / 0.4933 GB, free: 64.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.6857, allocations: 4 kB / 0.4933 GB, free: 64.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005477/0.6911, allocations: 1.363 MB / 0.4946 GB, free: 63.07 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.0004681/0.6916, allocations: 195.1 kB / 0.4948 GB, free: 62.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006668/0.6983, allocations: 4.119 MB / 0.4988 GB, free: 58.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.6983, allocations: 1.875 kB / 0.4988 GB, free: 58.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002051/0.7003, allocations: 1.303 MB / 0.5001 GB, free: 57.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002996/0.7033, allocations: 0.4978 MB / 0.5006 GB, free: 56.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01378/0.7171, allocations: 9.29 MB / 0.5096 GB, free: 47.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002895/0.72, allocations: 3.046 MB / 0.5126 GB, free: 44.45 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003383/0.7234, allocations: 1.696 MB / 0.5143 GB, free: 42.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006978/0.7241, allocations: 256.5 kB / 0.5145 GB, free: 42.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.442e-06/0.7241, allocations: 0 / 0.5145 GB, free: 42.5 MB / 378.7 MB Notification: Performance of Templates: time 0.06451/0.7886, allocations: 40.54 MB / 0.5541 GB, free: 2.531 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=240 -emit_protected -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","/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.840989076066762]