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.0009448/0.0009452, allocations: 95.5 kB / 17 MB, free: 6.402 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.001057/0.001057, allocations: 177.7 kB / 17.89 MB, free: 5.945 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.524/1.524, allocations: 223.3 MB / 241.9 MB, free: 332 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2482/0.2482, allocations: 44.26 MB / 337.3 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003917/0.0003917, allocations: 14.25 kB / 409.7 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1687/0.1691, allocations: 61.92 MB / 471.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.4033/0.5724, allocations: 74.03 MB / 0.5328 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04524/0.6177, allocations: 15.15 MB / 0.5476 GB, free: 1.992 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02201/0.6398, allocations: 352.2 kB / 0.548 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01526/0.6551, allocations: 3.939 MB / 0.5518 GB, free: 15.08 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04138/0.6965, allocations: 11.47 MB / 0.563 GB, free: 6.988 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005855/0.7024, allocations: 0.7964 MB / 0.5638 GB, free: 6.191 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.08987/0.7923, allocations: 64.52 MB / 0.6268 GB, free: 5.59 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01432/0.8066, allocations: 7.799 MB / 0.6344 GB, free: 13.73 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007083/0.8137, allocations: 2.358 MB / 0.6367 GB, free: 11.36 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009028/0.8228, allocations: 3.664 MB / 0.6403 GB, free: 7.688 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002728/0.8256, allocations: 280 kB / 0.6406 GB, free: 7.414 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004952/0.8306, allocations: 1.026 MB / 0.6416 GB, free: 6.387 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005895/0.8365, allocations: 3.241 MB / 0.6447 GB, free: 3.137 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003615/0.8401, allocations: 1.594 MB / 0.6463 GB, free: 1.531 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01575/0.8559, allocations: 10.54 MB / 0.6566 GB, free: 6.969 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.8559, allocations: 0 / 0.6566 GB, free: 6.969 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.8559, allocations: 0 / 0.6566 GB, free: 6.969 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0005728/0.8565, allocations: 0 / 0.6566 GB, free: 6.969 MB / 494.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.01854/0.8751, allocations: 7.29 MB / 0.6637 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 7.038e-05/0.8752, allocations: 12.03 kB / 0.6637 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02094/0.8961, allocations: 5.569 MB / 0.6691 GB, free: 9.992 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01345/0.9096, allocations: 4.836 MB / 0.6739 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004422/0.9101, allocations: 443.2 kB / 0.6743 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002739/0.9128, allocations: 0.5815 MB / 0.6749 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03957/0.9524, allocations: 20 MB / 0.6944 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000246/0.9527, allocations: 79.34 kB / 0.6945 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001241/0.954, allocations: 275.7 kB / 0.6947 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006314/0.9603, allocations: 4.235 MB / 0.6989 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.58/1.54, allocations: 17.74 MB / 0.7162 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1062/1.647, allocations: 73.99 MB / 0.7884 GB, free: 124 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01468/1.661, allocations: 7.929 MB / 0.7962 GB, free: 115.9 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005826/1.667, allocations: 5.176 MB / 0.8012 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002665/1.667, allocations: 58.55 kB / 0.8013 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.467e-05/1.667, allocations: 91.2 kB / 0.8014 GB, free: 110.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 6.532e-06/1.667, allocations: 0 / 0.8014 GB, free: 110.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.1011/1.769, allocations: 41.74 MB / 0.8421 GB, free: 68.68 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/1.769, allocations: 230.7 kB / 0.8424 GB, free: 68.41 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01087/1.78, allocations: 6.367 MB / 0.8486 GB, free: 62.04 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000964/1.781, allocations: 91.73 kB / 0.8487 GB, free: 61.95 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003528/1.784, allocations: 5.526 MB / 0.8541 GB, free: 56.42 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002429/1.787, allocations: 1.729 MB / 0.8558 GB, free: 54.71 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007959/1.787, allocations: 221.4 kB / 0.856 GB, free: 54.49 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0006206/1.788, allocations: 0.7973 MB / 0.8567 GB, free: 53.69 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009847/1.798, allocations: 4.996 MB / 0.8616 GB, free: 48.69 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009973/1.808, allocations: 11.08 MB / 0.8724 GB, free: 34.68 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01333/1.821, allocations: 7.387 MB / 0.8797 GB, free: 27.28 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001639/1.822, allocations: 60 kB / 0.8797 GB, free: 27.22 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.02971/1.851, allocations: 17.8 MB / 0.8971 GB, free: 9.395 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/1.851, allocations: 100 kB / 0.8972 GB, free: 9.297 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001714/1.852, allocations: 208 kB / 0.8974 GB, free: 9.094 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00506/1.857, allocations: 2.381 MB / 0.8997 GB, free: 6.703 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00806/1.865, allocations: 2.569 MB / 0.9022 GB, free: 4.129 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2536/2.118, allocations: 16.11 MB / 0.9179 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007703/2.126, allocations: 0.6709 MB / 0.9186 GB, free: 157 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001734/2.128, allocations: 0.6204 MB / 0.9192 GB, free: 156.9 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(3,77.8%) 40,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007255/2.135, allocations: 4.116 MB / 0.9232 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00135/2.137, allocations: 0.5931 MB / 0.9238 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01663/2.153, allocations: 10.19 MB / 0.9338 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000106/2.153, allocations: 90.11 kB / 0.9338 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.703e-05/2.153, allocations: 11.28 kB / 0.9339 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.72e-05/2.153, allocations: 27.06 kB / 0.9339 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04575/2.199, allocations: 21.92 MB / 0.9553 GB, free: 143.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.076e-05/2.199, allocations: 10.91 kB / 0.9553 GB, free: 143.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00498/2.204, allocations: 0.7486 MB / 0.956 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007524/2.212, allocations: 2.036 MB / 0.958 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009388/2.213, allocations: 84.73 kB / 0.9581 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02182/2.235, allocations: 15.02 MB / 0.9728 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.796e-05/2.235, allocations: 15.94 kB / 0.9728 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02763/2.262, allocations: 16.06 MB / 0.9885 GB, free: 111.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002822/2.265, allocations: 0.6318 MB / 0.9891 GB, free: 111 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002553/2.268, allocations: 85.39 kB / 0.9892 GB, free: 110.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005316/2.273, allocations: 312.4 kB / 0.9895 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001257/2.274, allocations: 288.8 kB / 0.9897 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005219/2.275, allocations: 124.8 kB / 0.9899 GB, free: 110.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00953/2.284, allocations: 3.943 MB / 0.9937 GB, free: 106.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.02e-07/2.284, allocations: 0 / 0.9937 GB, free: 106.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01811/2.303, allocations: 2.049 MB / 0.9957 GB, free: 104.2 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 37,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001425/2.304, allocations: 242.8 kB / 0.9959 GB, free: 104 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02451/2.329, allocations: 12.25 MB / 1.008 GB, free: 91.82 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.552e-05/2.329, allocations: 0 / 1.008 GB, free: 91.82 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007325/2.336, allocations: 4.928 MB / 1.013 GB, free: 86.85 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007067/2.343, allocations: 0.7491 MB / 1.013 GB, free: 86.12 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04266/2.386, allocations: 23.65 MB / 1.037 GB, free: 62.39 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01043/2.396, allocations: 5.958 MB / 1.042 GB, free: 56.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.01122/2.408, allocations: 3.987 MB / 1.046 GB, free: 52.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002483/2.41, allocations: 431.4 kB / 1.047 GB, free: 51.98 MB / 0.5294 GB Notification: Performance of SimCode: time 2.254e-06/2.41, allocations: 7.938 kB / 1.047 GB, free: 51.97 MB / 0.5294 GB Notification: Performance of Templates: time 0.395/2.805, allocations: 70.24 MB / 1.115 GB, free: 167.5 MB / 0.5451 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/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_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches