Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001591/0.001591, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001606/0.001607, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.429/1.429, allocations: 227.7 MB / 247.7 MB, free: 10.32 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002713/0.002713, allocations: 64.62 kB / 307.9 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1157, allocations: 50.54 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01575/0.1315, allocations: 13.45 MB / 371.9 MB, free: 428 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.186/0.3175, allocations: 4.544 MB / 376.4 MB, free: 9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002644/0.3202, allocations: 98.36 kB / 376.5 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007839/0.3281, allocations: 4.177 MB / 380.7 MB, free: 8.266 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006569/0.3348, allocations: 2.127 MB / 382.8 MB, free: 7.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002594/0.3374, allocations: 0.9323 MB / 383.8 MB, free: 7.148 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009387/0.3468, allocations: 6.122 MB / 389.9 MB, free: 5.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007379/0.3542, allocations: 5.21 MB / 395.1 MB, free: 2.234 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005751/0.36, allocations: 2.116 MB / 397.2 MB, free: 1.164 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004667/0.3647, allocations: 2.792 MB / 400 MB, free: 15.62 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001802/0.3666, allocations: 473.5 kB / 400.5 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003939/0.3705, allocations: 1.338 MB / 401.8 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003834/0.3744, allocations: 2.499 MB / 404.3 MB, free: 11.81 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005924/0.3803, allocations: 2.833 MB / 407.1 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01307/0.3935, allocations: 8.787 MB / 415.9 MB, free: 380 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.198e-06/0.3935, allocations: 0 / 415.9 MB, free: 380 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3935, allocations: 0 / 415.9 MB, free: 380 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003603/0.3939, allocations: 0 / 415.9 MB, free: 380 kB / 318.1 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.01823/0.4121, allocations: 6.083 MB / 422 MB, free: 10.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.4122, allocations: 8.031 kB / 422 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01313/0.4254, allocations: 2.575 MB / 424.6 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009398/0.4348, allocations: 3.742 MB / 428.3 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003269/0.4352, allocations: 302.1 kB / 428.6 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001983/0.4372, allocations: 428.7 kB / 429 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02467/0.4618, allocations: 11.55 MB / 440.6 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002207/0.4621, allocations: 47.59 kB / 440.6 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006827/0.4628, allocations: 192.3 kB / 440.8 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003898/0.4667, allocations: 2.026 MB / 442.8 MB, free: 4.914 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02108/0.4878, allocations: 9.932 MB / 452.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06695/0.5548, allocations: 45.54 MB / 498.3 MB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01173/0.5666, allocations: 4.37 MB / 0.4909 GB, free: 7.773 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003872/0.5705, allocations: 2.471 MB / 0.4933 GB, free: 5.289 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01775/0.5883, allocations: 9.845 MB / 0.5029 GB, free: 11.34 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.634e-05/0.5884, allocations: 55.5 kB / 0.503 GB, free: 11.27 MB / 430.1 MB Notification: Performance of pre-optimization done (n=171): time 5.23e-06/0.5884, allocations: 4 kB / 0.503 GB, free: 11.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.05921/0.6476, allocations: 19.9 MB / 0.5224 GB, free: 7.254 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001399/0.6478, allocations: 201.2 kB / 0.5226 GB, free: 7.016 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007167/0.655, allocations: 4.693 MB / 0.5272 GB, free: 2.312 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004637/0.6555, allocations: 49.7 kB / 0.5272 GB, free: 2.258 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2006/0.8561, allocations: 3.558 MB / 0.5307 GB, free: 141.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001144/0.8572, allocations: 0.7612 MB / 0.5315 GB, free: 141 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002479/0.8597, allocations: 1.333 MB / 0.5328 GB, free: 140.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.423e-05/0.8598, allocations: 302.6 kB / 0.533 GB, free: 140.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004043/0.8639, allocations: 2.405 MB / 0.5354 GB, free: 139.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006017/0.8699, allocations: 6.252 MB / 0.5415 GB, free: 134 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01012/0.8801, allocations: 9.292 MB / 0.5506 GB, free: 126.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002208/0.8803, allocations: 45.56 kB / 0.5506 GB, free: 126.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01857/0.8989, allocations: 9.766 MB / 0.5602 GB, free: 122.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001139/0.899, allocations: 66.66 kB / 0.5602 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001474/0.8992, allocations: 134.2 kB / 0.5604 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004081/0.9033, allocations: 1.61 MB / 0.5619 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004376/0.9077, allocations: 1.479 MB / 0.5634 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01047/0.9182, allocations: 10.26 MB / 0.5734 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004843/0.9231, allocations: 355.5 kB / 0.5737 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008639/0.9239, allocations: 395.5 kB / 0.5741 GB, free: 115.4 MB / 446.1 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.003374/0.9273, allocations: 2.461 MB / 0.5765 GB, free: 113.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007377/0.9281, allocations: 410.6 kB / 0.5769 GB, free: 112.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006897/0.935, allocations: 4.235 MB / 0.581 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.639e-05/0.9351, allocations: 20 kB / 0.5811 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.748e-05/0.9351, allocations: 8 kB / 0.5811 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.849e-05/0.9351, allocations: 15.95 kB / 0.5811 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01521/0.9504, allocations: 9.707 MB / 0.5906 GB, free: 99.17 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.666e-05/0.9504, allocations: 7.969 kB / 0.5906 GB, free: 99.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001396/0.9518, allocations: 295.6 kB / 0.5908 GB, free: 98.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003668/0.9555, allocations: 1.366 MB / 0.5922 GB, free: 97.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002159/0.9557, allocations: 32.88 kB / 0.5922 GB, free: 97.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009146/0.9649, allocations: 9.394 MB / 0.6014 GB, free: 87.81 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.9649, allocations: 0 / 0.6014 GB, free: 87.81 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009229/0.9742, allocations: 6.965 MB / 0.6082 GB, free: 80.82 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001095/0.9753, allocations: 451.7 kB / 0.6086 GB, free: 80.36 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005138/0.9758, allocations: 35.98 kB / 0.6087 GB, free: 80.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001483/0.9773, allocations: 111.8 kB / 0.6088 GB, free: 80.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003431/0.9777, allocations: 127.2 kB / 0.6089 GB, free: 80.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001253/0.9778, allocations: 52 kB / 0.6089 GB, free: 80.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003602/0.9814, allocations: 2.96 MB / 0.6118 GB, free: 77.08 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.9814, allocations: 0 / 0.6118 GB, free: 77.08 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005746/0.9872, allocations: 1.18 MB / 0.613 GB, free: 75.9 MB / 446.1 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.0005151/0.9877, allocations: 166.6 kB / 0.6131 GB, free: 75.74 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01045/0.9982, allocations: 7.022 MB / 0.62 GB, free: 68.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.9982, allocations: 1.688 kB / 0.62 GB, free: 68.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002604/1.001, allocations: 2.015 MB / 0.622 GB, free: 66.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002999/1.004, allocations: 0.5369 MB / 0.6225 GB, free: 66.18 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01733/1.021, allocations: 11.67 MB / 0.6339 GB, free: 54.47 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00381/1.025, allocations: 3.788 MB / 0.6376 GB, free: 50.65 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001103/1.026, allocations: 311.4 kB / 0.6379 GB, free: 50.34 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/1.026, allocations: 0 / 0.6379 GB, free: 50.34 MB / 446.1 MB Notification: Performance of Templates: time 0.3058/1.332, allocations: 111.7 MB / 0.747 GB, free: 111.8 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches