Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.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 trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint") translateModel(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001675/0.001675, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002138/0.002137, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2126/0.2126, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 75.28 kB / 417.6 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1346, allocations: 62.45 MB / 480 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.02037/0.1551, allocations: 18.57 MB / 498.6 MB, free: 2.617 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01177/0.1669, allocations: 5.315 MB / 0.4921 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003074/0.17, allocations: 119.7 kB / 0.4922 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008763/0.1788, allocations: 4.754 MB / 0.4968 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009146/0.188, allocations: 3.05 MB / 0.4998 GB, free: 5.336 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002914/0.1909, allocations: 0.9048 MB / 0.5007 GB, free: 4.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2246/0.4156, allocations: 8.405 MB / 0.5089 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01265/0.4283, allocations: 6.422 MB / 0.5152 GB, free: 12.22 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007964/0.4363, allocations: 2.919 MB / 0.518 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008827/0.4452, allocations: 3.951 MB / 0.5219 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002727/0.4479, allocations: 0.6207 MB / 0.5225 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004329/0.4523, allocations: 1.44 MB / 0.5239 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003975/0.4563, allocations: 3.625 MB / 0.5275 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004656/0.4609, allocations: 4.214 MB / 0.5316 GB, free: 7.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01367/0.4746, allocations: 12.96 MB / 0.5442 GB, free: 15.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.016e-05/0.4747, allocations: 0 / 0.5442 GB, free: 15.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.857e-06/0.4747, allocations: 0 / 0.5442 GB, free: 15.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005206/0.4752, allocations: 0 / 0.5442 GB, free: 15.95 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2997 * Number of variables: 2997 Notification: Performance of Generate backend data structure: time 0.02216/0.4974, allocations: 8.728 MB / 0.5527 GB, free: 7.633 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/0.4975, allocations: 11.41 kB / 0.5528 GB, free: 7.625 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02167/0.5191, allocations: 5.435 MB / 0.5581 GB, free: 2.176 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01095/0.5301, allocations: 4.844 MB / 0.5628 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000347/0.5305, allocations: 447.9 kB / 0.5632 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002271/0.5328, allocations: 0.5738 MB / 0.5638 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03829/0.5711, allocations: 19.84 MB / 0.5832 GB, free: 8.211 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002408/0.5714, allocations: 65.53 kB / 0.5832 GB, free: 8.176 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001431/0.5728, allocations: 270.5 kB / 0.5835 GB, free: 7.984 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007239/0.5801, allocations: 4.176 MB / 0.5876 GB, free: 3.863 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0375/0.6176, allocations: 17.65 MB / 0.6048 GB, free: 2.473 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1133/0.731, allocations: 73.55 MB / 0.6766 GB, free: 7.887 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01884/0.7499, allocations: 7.926 MB / 0.6844 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008426/0.7584, allocations: 5.192 MB / 0.6894 GB, free: 10.51 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003962/0.7588, allocations: 57.53 kB / 0.6895 GB, free: 10.47 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.832e-05/0.7589, allocations: 69.09 kB / 0.6896 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 9.508e-06/0.7589, allocations: 4 kB / 0.6896 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.3753/1.134, allocations: 41.72 MB / 0.7303 GB, free: 178.1 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001876/1.134, allocations: 227 kB / 0.7305 GB, free: 177.9 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01257/1.147, allocations: 6.387 MB / 0.7368 GB, free: 175.6 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001383/1.148, allocations: 91.12 kB / 0.7368 GB, free: 175.5 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004326/1.153, allocations: 5.486 MB / 0.7422 GB, free: 171.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002678/1.155, allocations: 1.731 MB / 0.7439 GB, free: 170 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003249/1.159, allocations: 2.253 MB / 0.7461 GB, free: 169 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.663e-05/1.159, allocations: 305.1 kB / 0.7464 GB, free: 168.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00641/1.165, allocations: 5.026 MB / 0.7513 GB, free: 167 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008718/1.174, allocations: 11.09 MB / 0.7621 GB, free: 157.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01642/1.19, allocations: 17.43 MB / 0.7791 GB, free: 144.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001627/1.191, allocations: 66.19 kB / 0.7792 GB, free: 144.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1483) (initialization): time 0.02852/1.219, allocations: 17.85 MB / 0.7966 GB, free: 130.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002007/1.219, allocations: 96 kB / 0.7967 GB, free: 130.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000323/1.22, allocations: 208 kB / 0.7969 GB, free: 130.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005604/1.225, allocations: 2.36 MB / 0.7992 GB, free: 128.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008358/1.234, allocations: 2.565 MB / 0.8017 GB, free: 125.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01705/1.251, allocations: 17.42 MB / 0.8187 GB, free: 107.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008414/1.259, allocations: 0.6593 MB / 0.8194 GB, free: 107 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001996/1.261, allocations: 0.6244 MB / 0.82 GB, free: 106.4 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 955 * Number of states: 0 () * Number of discrete variables: 53 (torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 (1359): * Single equations (assignments): 1346 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (3,40,77.8%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008222/1.269, allocations: 4.064 MB / 0.824 GB, free: 102.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00187/1.271, allocations: 0.5939 MB / 0.8245 GB, free: 101.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01624/1.288, allocations: 10.2 MB / 0.8345 GB, free: 91.46 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001082/1.288, allocations: 91.97 kB / 0.8346 GB, free: 91.37 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.577e-05/1.288, allocations: 8 kB / 0.8346 GB, free: 91.36 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-05/1.288, allocations: 27.86 kB / 0.8346 GB, free: 91.34 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04583/1.334, allocations: 21.91 MB / 0.856 GB, free: 69.26 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-05/1.334, allocations: 12 kB / 0.856 GB, free: 69.25 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003596/1.337, allocations: 0.7449 MB / 0.8568 GB, free: 68.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005134/1.343, allocations: 2.036 MB / 0.8588 GB, free: 66.46 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007907/1.343, allocations: 85.39 kB / 0.8588 GB, free: 66.38 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01523/1.359, allocations: 16.2 MB / 0.8747 GB, free: 49.62 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.149e-05/1.359, allocations: 19.88 kB / 0.8747 GB, free: 49.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02531/1.384, allocations: 16.1 MB / 0.8904 GB, free: 33.26 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002484/1.386, allocations: 0.622 MB / 0.891 GB, free: 32.61 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002738/1.389, allocations: 81.33 kB / 0.8911 GB, free: 32.53 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004571/1.394, allocations: 308.9 kB / 0.8914 GB, free: 32.23 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001233/1.395, allocations: 289.9 kB / 0.8917 GB, free: 31.95 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003617/1.395, allocations: 125.4 kB / 0.8918 GB, free: 31.82 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006372/1.402, allocations: 3.979 MB / 0.8957 GB, free: 27.85 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.71e-07/1.402, allocations: 0 / 0.8957 GB, free: 27.85 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01239/1.414, allocations: 2.002 MB / 0.8976 GB, free: 25.86 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (359): * Single equations (assignments): 346 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,37,77.8%), (1,2,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001091/1.415, allocations: 239.9 kB / 0.8978 GB, free: 25.62 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2866/1.702, allocations: 21.92 MB / 0.9193 GB, free: 171.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.165e-05/1.702, allocations: 1.844 kB / 0.9193 GB, free: 171.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00958/1.712, allocations: 4.933 MB / 0.9241 GB, free: 170.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006279/1.718, allocations: 0.7749 MB / 0.9248 GB, free: 170.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03937/1.757, allocations: 20.24 MB / 0.9446 GB, free: 162.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007929/1.765, allocations: 5.912 MB / 0.9504 GB, free: 160.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.009196/1.775, allocations: 3.989 MB / 0.9543 GB, free: 159.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001435/1.776, allocations: 432.3 kB / 0.9547 GB, free: 159.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.283e-06/1.776, allocations: 0 / 0.9547 GB, free: 159.8 MB / 0.545 GB Notification: Performance of Templates: time 0.1256/1.902, allocations: 75.54 MB / 1.028 GB, free: 90.48 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches