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.001239/0.001239, allocations: 107.5 kB / 17.16 MB, free: 6.082 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.001264/0.001264, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.336/1.336, allocations: 222.9 MB / 241.8 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 44.33 kB / 300.6 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1442, allocations: 49.44 MB / 350.1 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2779/0.4222, allocations: 69.53 MB / 419.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03622/0.4585, allocations: 13.94 MB / 433.5 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01865/0.4772, allocations: 303.2 kB / 433.8 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008631/0.4859, allocations: 4.212 MB / 438 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006522/0.4924, allocations: 2.059 MB / 440.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002597/0.4951, allocations: 0.8504 MB / 440.9 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01114/0.5062, allocations: 8.76 MB / 449.7 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0074/0.5137, allocations: 5.12 MB / 454.8 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003714/0.5174, allocations: 1.892 MB / 456.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004725/0.5222, allocations: 2.999 MB / 459.7 MB, free: 7.137 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001931/0.5242, allocations: 332 kB / 460 MB, free: 6.812 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003768/0.5279, allocations: 1.291 MB / 461.3 MB, free: 5.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00373/0.5317, allocations: 2.423 MB / 463.8 MB, free: 3.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00522/0.537, allocations: 2.761 MB / 466.5 MB, free: 320 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008883/0.5459, allocations: 7.289 MB / 473.8 MB, free: 9.008 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.5459, allocations: 0 / 473.8 MB, free: 9.008 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.5459, allocations: 3.984 kB / 473.8 MB, free: 9.004 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003692/0.5463, allocations: 0 / 473.8 MB, free: 9.004 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.01766/0.564, allocations: 6.13 MB / 479.9 MB, free: 2.801 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/0.5641, allocations: 8.031 kB / 479.9 MB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01211/0.5762, allocations: 2.583 MB / 482.5 MB, free: 204 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009195/0.5854, allocations: 3.804 MB / 486.3 MB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003371/0.5858, allocations: 304.2 kB / 486.6 MB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001969/0.5878, allocations: 431.9 kB / 487.1 MB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02508/0.6129, allocations: 11.73 MB / 498.8 MB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003453/0.6133, allocations: 51.44 kB / 498.8 MB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001574/0.6149, allocations: 195.8 kB / 499 MB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003998/0.6189, allocations: 2.085 MB / 0.4894 GB, free: 12.81 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02122/0.6402, allocations: 10.08 MB / 0.4992 GB, free: 2.711 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2622/0.9024, allocations: 45.97 MB / 0.5441 GB, free: 124.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01128/0.9137, allocations: 4.376 MB / 0.5484 GB, free: 124.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003476/0.9173, allocations: 2.474 MB / 0.5508 GB, free: 123.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01489/0.9322, allocations: 9.841 MB / 0.5604 GB, free: 118.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.378e-05/0.9323, allocations: 64.14 kB / 0.5605 GB, free: 118.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 5.3e-06/0.9323, allocations: 0 / 0.5605 GB, free: 118.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.05349/0.9858, allocations: 19.96 MB / 0.58 GB, free: 108.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.707e-05/0.9859, allocations: 202.9 kB / 0.5801 GB, free: 108.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006135/0.992, allocations: 4.709 MB / 0.5847 GB, free: 103.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003749/0.9925, allocations: 53.7 kB / 0.5848 GB, free: 103.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00168/0.9941, allocations: 3.599 MB / 0.5883 GB, free: 100.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007828/0.9949, allocations: 0.7584 MB / 0.5891 GB, free: 99.36 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001437/0.9964, allocations: 1.342 MB / 0.5904 GB, free: 98.01 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.981e-05/0.9964, allocations: 301.4 kB / 0.5907 GB, free: 97.71 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002726/0.9992, allocations: 2.406 MB / 0.593 GB, free: 95.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004164/1.003, allocations: 6.28 MB / 0.5991 GB, free: 87.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007955/1.011, allocations: 9.329 MB / 0.6082 GB, free: 76.19 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000103/1.011, allocations: 40 kB / 0.6083 GB, free: 76.15 MB / 446.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01509/1.027, allocations: 9.783 MB / 0.6178 GB, free: 66.35 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.963e-05/1.027, allocations: 68.06 kB / 0.6179 GB, free: 66.29 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001331/1.027, allocations: 143.9 kB / 0.618 GB, free: 66.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003974/1.031, allocations: 1.612 MB / 0.6196 GB, free: 64.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004392/1.035, allocations: 1.497 MB / 0.6211 GB, free: 63.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/1.045, allocations: 9.537 MB / 0.6304 GB, free: 53.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006219/1.052, allocations: 359.4 kB / 0.6307 GB, free: 52.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001061/1.053, allocations: 392 kB / 0.6311 GB, free: 52.49 MB / 446.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.004328/1.057, allocations: 2.481 MB / 0.6335 GB, free: 50 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009577/1.058, allocations: 406.7 kB / 0.6339 GB, free: 49.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007196/1.065, allocations: 4.24 MB / 0.6381 GB, free: 45.34 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.483e-05/1.065, allocations: 23.94 kB / 0.6381 GB, free: 45.32 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.729e-05/1.065, allocations: 12 kB / 0.6381 GB, free: 45.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.058e-05/1.065, allocations: 11.91 kB / 0.6381 GB, free: 45.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0164/1.082, allocations: 9.773 MB / 0.6476 GB, free: 35.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.626e-05/1.082, allocations: 0 / 0.6476 GB, free: 35.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/1.083, allocations: 295.6 kB / 0.6479 GB, free: 35.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003615/1.087, allocations: 1.365 MB / 0.6493 GB, free: 33.84 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001887/1.087, allocations: 32 kB / 0.6493 GB, free: 33.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008858/1.096, allocations: 8.727 MB / 0.6578 GB, free: 24.81 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/1.096, allocations: 7.984 kB / 0.6578 GB, free: 24.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009603/1.105, allocations: 6.974 MB / 0.6646 GB, free: 17.79 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001374/1.107, allocations: 455.7 kB / 0.6651 GB, free: 17.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005291/1.107, allocations: 32 kB / 0.6651 GB, free: 17.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001457/1.109, allocations: 111.8 kB / 0.6652 GB, free: 17.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003982/1.109, allocations: 121.1 kB / 0.6653 GB, free: 17.06 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/1.109, allocations: 55.89 kB / 0.6654 GB, free: 17.01 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004587/1.114, allocations: 2.964 MB / 0.6683 GB, free: 14.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/1.114, allocations: 8 kB / 0.6683 GB, free: 14.04 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005705/1.12, allocations: 1.206 MB / 0.6695 GB, free: 12.84 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.0004385/1.12, allocations: 170.8 kB / 0.6696 GB, free: 12.67 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008598/1.129, allocations: 5.967 MB / 0.6754 GB, free: 6.711 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.368e-06/1.129, allocations: 1.875 kB / 0.6754 GB, free: 6.711 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002724/1.132, allocations: 2.015 MB / 0.6774 GB, free: 4.668 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003294/1.135, allocations: 0.5022 MB / 0.6779 GB, free: 4.168 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02219/1.157, allocations: 14.14 MB / 0.6917 GB, free: 5.98 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00488/1.162, allocations: 3.832 MB / 0.6955 GB, free: 2.113 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001323/1.163, allocations: 315.4 kB / 0.6958 GB, free: 1.809 MB / 462.1 MB Notification: Performance of SimCode: time 1.493e-06/1.163, allocations: 0 / 0.6958 GB, free: 1.809 MB / 462.1 MB Notification: Performance of Templates: time 0.331/1.494, allocations: 113 MB / 0.8061 GB, free: 89.69 MB / 478.1 MB 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