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.0009887/0.0009887, allocations: 97.66 kB / 18 MB, free: 5.738 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.0009577/0.0009577, allocations: 179.8 kB / 18.91 MB, free: 4.871 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.428/1.428, allocations: 223.3 MB / 243 MB, free: 14.47 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.1992/0.1992, allocations: 44.25 MB / 338.3 MB, free: 2.422 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003053/0.0003054, allocations: 8 kB / 411 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1081, allocations: 61.92 MB / 472.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.3042/0.4123, allocations: 79.63 MB / 0.5396 GB, free: 6.918 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03586/0.4482, allocations: 15.79 MB / 0.555 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01886/0.4671, allocations: 353.7 kB / 0.5553 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003052/0.4702, allocations: 0.808 MB / 0.5561 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009181/0.4795, allocations: 2.935 MB / 0.559 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002749/0.4822, allocations: 0.8469 MB / 0.5598 GB, free: 9.711 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0156/0.4979, allocations: 12.15 MB / 0.5717 GB, free: 15.18 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01419/0.5121, allocations: 8.615 MB / 0.5801 GB, free: 6.484 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005556/0.5177, allocations: 2.186 MB / 0.5822 GB, free: 4.289 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00671/0.5245, allocations: 3.729 MB / 0.5859 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001994/0.5265, allocations: 280 kB / 0.5862 GB, free: 280 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004162/0.5307, allocations: 1.166 MB / 0.5873 GB, free: 15.11 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005022/0.5357, allocations: 3.33 MB / 0.5905 GB, free: 11.77 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007309/0.5431, allocations: 3.84 MB / 0.5943 GB, free: 7.895 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01288/0.556, allocations: 10.54 MB / 0.6046 GB, free: 13.33 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.556, allocations: 0 / 0.6046 GB, free: 13.33 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.5561, allocations: 0 / 0.6046 GB, free: 13.33 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005254/0.5566, allocations: 0 / 0.6046 GB, free: 13.33 MB / 446.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.01594/0.5725, allocations: 7.18 MB / 0.6116 GB, free: 6.066 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.5726, allocations: 8.031 kB / 0.6116 GB, free: 6.059 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02262/0.5952, allocations: 5.574 MB / 0.6171 GB, free: 476 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01108/0.6063, allocations: 4.922 MB / 0.6219 GB, free: 11.48 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004952/0.6069, allocations: 443.6 kB / 0.6223 GB, free: 11.05 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002248/0.6091, allocations: 0.5741 MB / 0.6228 GB, free: 10.47 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03774/0.6469, allocations: 20.06 MB / 0.6424 GB, free: 5.383 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003241/0.6473, allocations: 67.31 kB / 0.6425 GB, free: 5.316 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002157/0.6494, allocations: 279.7 kB / 0.6428 GB, free: 5.043 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007277/0.6567, allocations: 4.231 MB / 0.6469 GB, free: 0.8086 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03679/0.6936, allocations: 17.83 MB / 0.6643 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5965/1.29, allocations: 74.03 MB / 0.7366 GB, free: 140.2 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01756/1.308, allocations: 7.938 MB / 0.7444 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006428/1.314, allocations: 5.188 MB / 0.7494 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002442/1.314, allocations: 64.36 kB / 0.7495 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.997e-05/1.315, allocations: 76.91 kB / 0.7496 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 8.446e-06/1.315, allocations: 3.984 kB / 0.7496 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.1036/1.418, allocations: 41.81 MB / 0.7904 GB, free: 111.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/1.418, allocations: 226.8 kB / 0.7906 GB, free: 111.6 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009191/1.427, allocations: 6.402 MB / 0.7969 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000928/1.428, allocations: 88.98 kB / 0.797 GB, free: 105.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002598/1.431, allocations: 5.523 MB / 0.8023 GB, free: 99.62 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0022/1.433, allocations: 1.736 MB / 0.804 GB, free: 97.9 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001158/1.434, allocations: 0.9708 MB / 0.805 GB, free: 96.93 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.77e-05/1.434, allocations: 305.1 kB / 0.8053 GB, free: 96.62 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005903/1.44, allocations: 5.042 MB / 0.8102 GB, free: 91.58 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008293/1.449, allocations: 11.11 MB / 0.8211 GB, free: 77.68 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01694/1.466, allocations: 17.48 MB / 0.8381 GB, free: 57.29 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000172/1.466, allocations: 60 kB / 0.8382 GB, free: 57.23 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.02973/1.496, allocations: 17.88 MB / 0.8556 GB, free: 39.31 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001246/1.496, allocations: 96 kB / 0.8557 GB, free: 39.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002288/1.496, allocations: 212.1 kB / 0.8559 GB, free: 39.01 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005606/1.502, allocations: 2.348 MB / 0.8582 GB, free: 36.65 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008441/1.51, allocations: 2.573 MB / 0.8607 GB, free: 34.07 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01566/1.526, allocations: 16.14 MB / 0.8765 GB, free: 17.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008498/1.534, allocations: 0.6721 MB / 0.8772 GB, free: 16.73 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00203/1.536, allocations: 0.6223 MB / 0.8778 GB, free: 16.11 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.00856/1.545, allocations: 4.101 MB / 0.8818 GB, free: 12 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001856/1.547, allocations: 0.59 MB / 0.8823 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01692/1.564, allocations: 10.21 MB / 0.8923 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001579/1.564, allocations: 95.56 kB / 0.8924 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.843e-05/1.564, allocations: 8 kB / 0.8924 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.209e-05/1.564, allocations: 24.77 kB / 0.8924 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04181/1.606, allocations: 21.98 MB / 0.9139 GB, free: 10.84 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.337e-05/1.606, allocations: 12 kB / 0.9139 GB, free: 10.82 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004083/1.61, allocations: 0.7494 MB / 0.9147 GB, free: 10.07 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005945/1.616, allocations: 2.033 MB / 0.9166 GB, free: 8.027 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009526/1.617, allocations: 84.53 kB / 0.9167 GB, free: 7.945 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3089/1.926, allocations: 15.03 MB / 0.9314 GB, free: 192.7 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-05/1.926, allocations: 21.34 kB / 0.9314 GB, free: 192.7 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02728/1.953, allocations: 16.12 MB / 0.9472 GB, free: 186.6 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00202/1.955, allocations: 0.6342 MB / 0.9478 GB, free: 186.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002128/1.958, allocations: 84.86 kB / 0.9479 GB, free: 186.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004456/1.962, allocations: 313.1 kB / 0.9482 GB, free: 186.4 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001318/1.963, allocations: 288.7 kB / 0.9484 GB, free: 186.3 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007349/1.964, allocations: 122.7 kB / 0.9485 GB, free: 186.3 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.008254/1.972, allocations: 3.986 MB / 0.9524 GB, free: 185 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.182e-06/1.972, allocations: 0 / 0.9524 GB, free: 185 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01231/1.985, allocations: 2.045 MB / 0.9544 GB, free: 184.8 MB / 0.5607 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.001419/1.986, allocations: 245.2 kB / 0.9547 GB, free: 184.6 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01983/2.006, allocations: 12.3 MB / 0.9667 GB, free: 180.1 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.617e-05/2.006, allocations: 0 / 0.9667 GB, free: 180.1 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.008065/2.014, allocations: 4.953 MB / 0.9715 GB, free: 176.1 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0165/2.031, allocations: 0.7489 MB / 0.9723 GB, free: 175.5 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04176/2.073, allocations: 25.34 MB / 0.997 GB, free: 152.2 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009555/2.082, allocations: 5.947 MB / 1.003 GB, free: 146.2 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002492/2.085, allocations: 0.5111 MB / 1.003 GB, free: 145.7 MB / 0.5607 GB Notification: Performance of SimCode: time 1.633e-06/2.085, allocations: 0 / 1.003 GB, free: 145.7 MB / 0.5607 GB Notification: Performance of Templates: time 0.5838/2.668, allocations: 263.9 MB / 1.261 GB, free: 78.12 MB / 0.5607 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