Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.00114/0.00114, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.409/1.409, allocations: 222.9 MB / 242.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2111/0.2111, allocations: 44.19 MB / 337.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 63.5 kB / 409.1 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1212, allocations: 60.83 MB / 469.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.01954/0.1408, allocations: 18.73 MB / 488.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01229/0.1531, allocations: 5.314 MB / 494 MB, free: 6.234 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004069/0.1572, allocations: 119.7 kB / 494.1 MB, free: 6.117 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009253/0.1665, allocations: 4.793 MB / 498.9 MB, free: 1.309 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008133/0.1747, allocations: 3.104 MB / 0.4902 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002747/0.1775, allocations: 0.9009 MB / 0.4911 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01194/0.1894, allocations: 8.391 MB / 0.4993 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2409/0.4304, allocations: 6.434 MB / 0.5056 GB, free: 15.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007671/0.4381, allocations: 2.94 MB / 0.5084 GB, free: 14.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009079/0.4472, allocations: 3.975 MB / 0.5123 GB, free: 14.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004046/0.4513, allocations: 0.6237 MB / 0.5129 GB, free: 14.51 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006692/0.458, allocations: 1.471 MB / 0.5144 GB, free: 14.51 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007186/0.4653, allocations: 3.685 MB / 0.518 GB, free: 14.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01015/0.4755, allocations: 4.289 MB / 0.5222 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01864/0.4941, allocations: 13.15 MB / 0.535 GB, free: 6.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.157e-05/0.4942, allocations: 2.969 kB / 0.535 GB, free: 6.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.035e-06/0.4942, allocations: 0 / 0.535 GB, free: 6.449 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006522/0.4949, allocations: 0 / 0.535 GB, free: 6.449 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: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.02388/0.5188, allocations: 8.826 MB / 0.5436 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.5188, allocations: 9.219 kB / 0.5436 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0217/0.5405, allocations: 5.433 MB / 0.5489 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0132/0.5538, allocations: 4.916 MB / 0.5537 GB, free: 9.352 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004322/0.5543, allocations: 440.2 kB / 0.5542 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002927/0.5572, allocations: 0.5834 MB / 0.5547 GB, free: 8.488 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03898/0.5962, allocations: 20.02 MB / 0.5743 GB, free: 3.789 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002639/0.5965, allocations: 72.42 kB / 0.5743 GB, free: 3.75 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001743/0.5983, allocations: 280.7 kB / 0.5746 GB, free: 3.551 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007314/0.6056, allocations: 4.232 MB / 0.5787 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03545/0.6411, allocations: 17.79 MB / 0.5961 GB, free: 13.83 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1062/0.7473, allocations: 73.96 MB / 0.6683 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01784/0.7652, allocations: 7.943 MB / 0.6761 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007907/0.7731, allocations: 5.176 MB / 0.6812 GB, free: 5.543 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003885/0.7736, allocations: 62.53 kB / 0.6812 GB, free: 5.496 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.203e-05/0.7737, allocations: 76.56 kB / 0.6813 GB, free: 5.414 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=429): time 8.075e-06/0.7737, allocations: 7.281 kB / 0.6813 GB, free: 5.41 MB / 0.5137 GB Notification: Performance of matching and sorting (n=476): time 0.3579/1.132, allocations: 41.75 MB / 0.7221 GB, free: 170.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.858e-05/1.132, allocations: 226.6 kB / 0.7223 GB, free: 170.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01009/1.142, allocations: 6.407 MB / 0.7285 GB, free: 168 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00101/1.143, allocations: 86.55 kB / 0.7286 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003063/1.146, allocations: 5.524 MB / 0.734 GB, free: 163.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002697/1.149, allocations: 1.734 MB / 0.7357 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003274/1.152, allocations: 2.257 MB / 0.7379 GB, free: 161.4 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.093e-05/1.152, allocations: 304.8 kB / 0.7382 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006049/1.158, allocations: 5.036 MB / 0.7431 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009186/1.167, allocations: 11.1 MB / 0.754 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01696/1.184, allocations: 17.47 MB / 0.771 GB, free: 132.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001976/1.184, allocations: 60 kB / 0.7711 GB, free: 132.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.03022/1.215, allocations: 17.88 MB / 0.7885 GB, free: 117.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002457/1.215, allocations: 96.03 kB / 0.7886 GB, free: 117.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003818/1.215, allocations: 212 kB / 0.7888 GB, free: 116.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00558/1.221, allocations: 2.356 MB / 0.7911 GB, free: 114.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008291/1.229, allocations: 2.569 MB / 0.7937 GB, free: 112.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01588/1.245, allocations: 17.42 MB / 0.8107 GB, free: 94.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009073/1.254, allocations: 0.6593 MB / 0.8113 GB, free: 93.46 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002004/1.256, allocations: 0.628 MB / 0.8119 GB, free: 92.84 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 958 * Number of states: 0 () * Number of discrete variables: 53 (torque1.torqueArrow.arrowLine.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 (1362): * Single equations (assignments): 1349 * 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.008032/1.264, allocations: 4.094 MB / 0.8159 GB, free: 88.73 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001562/1.266, allocations: 0.6016 MB / 0.8165 GB, free: 88.12 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01475/1.281, allocations: 10.19 MB / 0.8265 GB, free: 77.87 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001147/1.281, allocations: 91.97 kB / 0.8266 GB, free: 77.78 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.194e-05/1.281, allocations: 8 kB / 0.8266 GB, free: 77.77 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.904e-05/1.281, allocations: 23.88 kB / 0.8266 GB, free: 77.75 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03951/1.32, allocations: 21.99 MB / 0.8481 GB, free: 55.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-05/1.321, allocations: 12 kB / 0.8481 GB, free: 55.57 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0038/1.324, allocations: 0.741 MB / 0.8488 GB, free: 54.83 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005186/1.33, allocations: 2.039 MB / 0.8508 GB, free: 52.78 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009113/1.33, allocations: 88.73 kB / 0.8509 GB, free: 52.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01508/1.346, allocations: 16.19 MB / 0.8667 GB, free: 35.96 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.016e-05/1.346, allocations: 15.94 kB / 0.8667 GB, free: 35.95 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02155/1.367, allocations: 16.09 MB / 0.8824 GB, free: 19.62 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002012/1.369, allocations: 0.6337 MB / 0.883 GB, free: 18.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002237/1.371, allocations: 79.98 kB / 0.8831 GB, free: 18.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004579/1.376, allocations: 311.5 kB / 0.8834 GB, free: 18.57 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00132/1.377, allocations: 290 kB / 0.8837 GB, free: 18.29 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004207/1.378, allocations: 120.3 kB / 0.8838 GB, free: 18.18 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006628/1.384, allocations: 3.987 MB / 0.8877 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.5e-07/1.385, allocations: 4 kB / 0.8877 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01147/1.396, allocations: 2.049 MB / 0.8897 GB, free: 12.15 MB / 0.5294 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.001116/1.397, allocations: 244 kB / 0.8899 GB, free: 11.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.261/1.658, allocations: 21.94 MB / 0.9113 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.591e-05/1.658, allocations: 2.375 kB / 0.9113 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007733/1.666, allocations: 4.931 MB / 0.9162 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006508/1.672, allocations: 0.7893 MB / 0.9169 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03728/1.71, allocations: 21.19 MB / 0.9376 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008267/1.718, allocations: 5.935 MB / 0.9434 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002402/1.721, allocations: 0.5101 MB / 0.9439 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of SimCode: time 8.72e-07/1.721, allocations: 4 kB / 0.9439 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.5468/2.267, allocations: 265.5 MB / 1.203 GB, free: 93.44 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches