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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 110.9 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 176.5 kB / 18.66 MB, free: 4.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 47.94 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2945, allocations: 49.44 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01395/0.3085, allocations: 13.58 MB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009925/0.3185, allocations: 4.559 MB / 419.5 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002723/0.3213, allocations: 87.75 kB / 419.6 MB, free: 6.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008035/0.3294, allocations: 4.205 MB / 423.8 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006554/0.336, allocations: 2.179 MB / 426 MB, free: 176 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002602/0.3386, allocations: 0.9281 MB / 426.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008826/0.3475, allocations: 6.057 MB / 433 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007466/0.355, allocations: 5.213 MB / 438.2 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004289/0.3593, allocations: 2.146 MB / 440.4 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004678/0.364, allocations: 2.824 MB / 443.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001686/0.3658, allocations: 476 kB / 443.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003629/0.3694, allocations: 1.354 MB / 445 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003604/0.373, allocations: 2.56 MB / 447.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005496/0.3786, allocations: 2.882 MB / 450.4 MB, free: 7.625 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01202/0.3906, allocations: 9.181 MB / 459.6 MB, free: 14.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.453e-06/0.3907, allocations: 0 / 459.6 MB, free: 14.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3907, allocations: 4 kB / 459.6 MB, free: 14.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003543/0.391, allocations: 0 / 459.6 MB, free: 14.41 MB / 382.1 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.01638/0.4074, allocations: 6.126 MB / 465.7 MB, free: 8.211 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.4075, allocations: 12.03 kB / 465.8 MB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0123/0.4198, allocations: 2.583 MB / 468.3 MB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008587/0.4284, allocations: 3.871 MB / 472.2 MB, free: 1.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000264/0.4287, allocations: 304.2 kB / 472.5 MB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001677/0.4304, allocations: 435.7 kB / 472.9 MB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02278/0.4532, allocations: 11.73 MB / 484.7 MB, free: 4.484 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001901/0.4535, allocations: 51.58 kB / 484.7 MB, free: 4.434 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008233/0.4543, allocations: 191.8 kB / 484.9 MB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003616/0.4579, allocations: 2.089 MB / 487 MB, free: 2.148 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01946/0.4774, allocations: 10.1 MB / 497.1 MB, free: 8.039 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05739/0.5349, allocations: 45.75 MB / 0.5301 GB, free: 8.898 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01105/0.546, allocations: 4.37 MB / 0.5344 GB, free: 4.383 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003311/0.5493, allocations: 2.471 MB / 0.5368 GB, free: 1.902 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2542/0.8036, allocations: 9.85 MB / 0.5464 GB, free: 126.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.495e-05/0.8037, allocations: 56.53 kB / 0.5465 GB, free: 126.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 4.729e-06/0.8037, allocations: 0 / 0.5465 GB, free: 126.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.05134/0.855, allocations: 19.96 MB / 0.566 GB, free: 114.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/0.8551, allocations: 209.2 kB / 0.5662 GB, free: 114.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005187/0.8603, allocations: 4.701 MB / 0.5708 GB, free: 109.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004444/0.8608, allocations: 53.7 kB / 0.5708 GB, free: 109.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001615/0.8624, allocations: 3.603 MB / 0.5743 GB, free: 105.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008523/0.8633, allocations: 0.7585 MB / 0.5751 GB, free: 105.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00155/0.8649, allocations: 1.336 MB / 0.5764 GB, free: 103.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.606e-05/0.8649, allocations: 313 kB / 0.5767 GB, free: 103.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00272/0.8677, allocations: 2.406 MB / 0.579 GB, free: 101 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004032/0.8717, allocations: 6.272 MB / 0.5851 GB, free: 92.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007861/0.8796, allocations: 9.322 MB / 0.5942 GB, free: 81.68 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001001/0.8797, allocations: 36 kB / 0.5943 GB, free: 81.64 MB / 462.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01572/0.8955, allocations: 9.804 MB / 0.6039 GB, free: 71.83 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.05e-05/0.8956, allocations: 68.06 kB / 0.6039 GB, free: 71.76 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001252/0.8957, allocations: 132 kB / 0.604 GB, free: 71.63 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004107/0.8998, allocations: 1.612 MB / 0.6056 GB, free: 70.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004617/0.9045, allocations: 1.486 MB / 0.6071 GB, free: 68.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/0.9154, allocations: 10.26 MB / 0.6171 GB, free: 58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00507/0.9206, allocations: 367.4 kB / 0.6174 GB, free: 57.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001069/0.9217, allocations: 395.9 kB / 0.6178 GB, free: 57.25 MB / 462.1 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.004036/0.9257, allocations: 2.485 MB / 0.6202 GB, free: 54.76 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008378/0.9266, allocations: 402.8 kB / 0.6206 GB, free: 54.36 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0073/0.9339, allocations: 4.24 MB / 0.6248 GB, free: 50.11 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.353e-05/0.9339, allocations: 31.69 kB / 0.6248 GB, free: 50.08 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/0.934, allocations: 8 kB / 0.6248 GB, free: 50.07 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-05/0.934, allocations: 7.969 kB / 0.6248 GB, free: 50.06 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01672/0.9507, allocations: 9.713 MB / 0.6343 GB, free: 40.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.149e-05/0.9508, allocations: 0 / 0.6343 GB, free: 40.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001562/0.9524, allocations: 301.6 kB / 0.6346 GB, free: 40.01 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003822/0.9562, allocations: 1.358 MB / 0.6359 GB, free: 38.65 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003888/0.9566, allocations: 39.89 kB / 0.636 GB, free: 38.61 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009896/0.9665, allocations: 9.386 MB / 0.6451 GB, free: 28.96 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.9666, allocations: 4.031 kB / 0.6451 GB, free: 28.95 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009863/0.9765, allocations: 6.971 MB / 0.6519 GB, free: 21.95 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001421/0.9779, allocations: 459.6 kB / 0.6524 GB, free: 21.47 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008174/0.9788, allocations: 32 kB / 0.6524 GB, free: 21.44 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001842/0.9806, allocations: 115.7 kB / 0.6525 GB, free: 21.33 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004544/0.9811, allocations: 117.1 kB / 0.6526 GB, free: 21.21 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001405/0.9812, allocations: 55.98 kB / 0.6527 GB, free: 21.16 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004536/0.9858, allocations: 2.968 MB / 0.6556 GB, free: 18.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9858, allocations: 4 kB / 0.6556 GB, free: 18.19 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006127/0.9919, allocations: 1.2 MB / 0.6567 GB, free: 17 MB / 462.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.0006021/0.9926, allocations: 175.5 kB / 0.6569 GB, free: 16.82 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008766/1.001, allocations: 5.984 MB / 0.6628 GB, free: 10.85 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.001, allocations: 4 kB / 0.6628 GB, free: 10.84 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002995/1.004, allocations: 2.011 MB / 0.6647 GB, free: 8.805 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003959/1.008, allocations: 0.5389 MB / 0.6653 GB, free: 8.277 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02168/1.03, allocations: 11.62 MB / 0.6766 GB, free: 12.61 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007196/1.037, allocations: 3.836 MB / 0.6803 GB, free: 8.742 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0013/1.039, allocations: 315.4 kB / 0.6807 GB, free: 8.438 MB / 478.1 MB Notification: Performance of SimCode: time 9.32e-07/1.039, allocations: 0 / 0.6807 GB, free: 8.438 MB / 478.1 MB Notification: Performance of Templates: time 0.3959/1.435, allocations: 113.7 MB / 0.7917 GB, free: 117.3 MB / 0.5137 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches