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.001478/0.001478, allocations: 107.6 kB / 17.98 MB, free: 5.176 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.001587/0.001587, allocations: 193.3 kB / 18.9 MB, free: 4.258 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.374/1.374, allocations: 222.9 MB / 242.6 MB, free: 15.3 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.2251/0.2251, allocations: 44.18 MB / 336.9 MB, free: 2.898 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 69.08 kB / 408.5 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1187, allocations: 60.83 MB / 469.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.3243/0.4431, allocations: 81.59 MB / 0.5381 GB, free: 5.941 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03539/0.4785, allocations: 15.75 MB / 0.5534 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01677/0.4953, allocations: 351.3 kB / 0.5538 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008627/0.504, allocations: 4.61 MB / 0.5583 GB, free: 8.461 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007558/0.5116, allocations: 2.901 MB / 0.5611 GB, free: 6.453 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002232/0.5139, allocations: 0.8535 MB / 0.5619 GB, free: 5.824 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0111/0.525, allocations: 8.811 MB / 0.5705 GB, free: 13 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009363/0.5344, allocations: 6.761 MB / 0.5771 GB, free: 6.191 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004895/0.5393, allocations: 2.979 MB / 0.5801 GB, free: 3.203 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006131/0.5454, allocations: 4.412 MB / 0.5844 GB, free: 14.78 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002036/0.5475, allocations: 0.625 MB / 0.585 GB, free: 14.15 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003803/0.5513, allocations: 1.475 MB / 0.5864 GB, free: 12.68 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004801/0.5561, allocations: 3.74 MB / 0.5901 GB, free: 8.926 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006426/0.5626, allocations: 4.326 MB / 0.5943 GB, free: 4.574 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01143/0.574, allocations: 10.91 MB / 0.6049 GB, free: 9.641 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.574, allocations: 0 / 0.6049 GB, free: 9.641 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.574, allocations: 0 / 0.6049 GB, free: 9.641 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004416/0.5745, allocations: 0 / 0.6049 GB, free: 9.641 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.02071/0.5952, allocations: 8.822 MB / 0.6136 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.5953, allocations: 8.031 kB / 0.6136 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02108/0.6164, allocations: 5.437 MB / 0.6189 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01221/0.6286, allocations: 4.91 MB / 0.6237 GB, free: 6.297 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005218/0.6292, allocations: 451.6 kB / 0.6241 GB, free: 5.855 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00286/0.6321, allocations: 0.5742 MB / 0.6247 GB, free: 5.281 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0404/0.6725, allocations: 20.03 MB / 0.6442 GB, free: 228 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002985/0.6728, allocations: 67.45 kB / 0.6443 GB, free: 160 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002074/0.6749, allocations: 287.6 kB / 0.6446 GB, free: 15.88 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006791/0.6817, allocations: 4.227 MB / 0.6487 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03478/0.7165, allocations: 17.79 MB / 0.6661 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5088/1.225, allocations: 73.96 MB / 0.7383 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01543/1.241, allocations: 7.935 MB / 0.746 GB, free: 138.6 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006065/1.247, allocations: 5.183 MB / 0.7511 GB, free: 136.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002322/1.247, allocations: 62.86 kB / 0.7512 GB, free: 136.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.718e-05/1.247, allocations: 72.56 kB / 0.7512 GB, free: 136.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 5.921e-06/1.247, allocations: 0 / 0.7512 GB, free: 136.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.08736/1.335, allocations: 41.77 MB / 0.792 GB, free: 110.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.354e-05/1.335, allocations: 222.8 kB / 0.7922 GB, free: 110.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007381/1.342, allocations: 6.404 MB / 0.7985 GB, free: 103.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009609/1.343, allocations: 89.09 kB / 0.7986 GB, free: 103.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002395/1.345, allocations: 5.524 MB / 0.804 GB, free: 98.12 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001699/1.347, allocations: 1.745 MB / 0.8057 GB, free: 96.39 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00257/1.35, allocations: 2.253 MB / 0.8079 GB, free: 94.13 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.811e-05/1.35, allocations: 305.1 kB / 0.8082 GB, free: 93.83 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005805/1.356, allocations: 5.035 MB / 0.8131 GB, free: 88.79 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008446/1.364, allocations: 11.1 MB / 0.8239 GB, free: 74.83 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01576/1.38, allocations: 17.46 MB / 0.841 GB, free: 54.41 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001673/1.38, allocations: 60 kB / 0.841 GB, free: 54.35 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.02796/1.408, allocations: 17.88 MB / 0.8585 GB, free: 36.45 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001064/1.408, allocations: 96 kB / 0.8586 GB, free: 36.35 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001924/1.408, allocations: 208.3 kB / 0.8588 GB, free: 36.15 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005759/1.414, allocations: 2.36 MB / 0.8611 GB, free: 33.77 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008432/1.423, allocations: 2.569 MB / 0.8636 GB, free: 31.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01715/1.44, allocations: 17.44 MB / 0.8806 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008142/1.448, allocations: 0.663 MB / 0.8813 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002177/1.45, allocations: 0.6246 MB / 0.8819 GB, free: 11.93 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.008009/1.458, allocations: 4.096 MB / 0.8859 GB, free: 7.82 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001852/1.46, allocations: 0.5939 MB / 0.8865 GB, free: 7.219 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01949/1.48, allocations: 10.21 MB / 0.8964 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001574/1.48, allocations: 83.98 kB / 0.8965 GB, free: 12.87 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.452e-05/1.48, allocations: 8 kB / 0.8965 GB, free: 12.86 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00012/1.48, allocations: 23.92 kB / 0.8965 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2706/1.751, allocations: 21.97 MB / 0.918 GB, free: 178.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.558e-05/1.751, allocations: 10.98 kB / 0.918 GB, free: 178.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003667/1.754, allocations: 0.739 MB / 0.9187 GB, free: 178.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005729/1.76, allocations: 2.043 MB / 0.9207 GB, free: 178.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007436/1.761, allocations: 89.44 kB / 0.9208 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01585/1.777, allocations: 16.19 MB / 0.9366 GB, free: 168.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.025e-05/1.777, allocations: 20.25 kB / 0.9366 GB, free: 168.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01972/1.796, allocations: 16.09 MB / 0.9524 GB, free: 162.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001586/1.798, allocations: 0.6261 MB / 0.953 GB, free: 162.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/1.799, allocations: 87.03 kB / 0.953 GB, free: 162.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002834/1.802, allocations: 308.3 kB / 0.9533 GB, free: 162.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008029/1.803, allocations: 295.2 kB / 0.9536 GB, free: 162.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003012/1.803, allocations: 120.3 kB / 0.9537 GB, free: 162.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005443/1.809, allocations: 3.986 MB / 0.9576 GB, free: 160.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.21e-07/1.809, allocations: 0 / 0.9576 GB, free: 160.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009051/1.818, allocations: 2.043 MB / 0.9596 GB, free: 159 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.0007954/1.818, allocations: 243.6 kB / 0.9599 GB, free: 158.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02993/1.848, allocations: 21.94 MB / 0.9813 GB, free: 138.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/1.848, allocations: 0 / 0.9813 GB, free: 138.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005846/1.854, allocations: 4.937 MB / 0.9861 GB, free: 133.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004554/1.859, allocations: 0.7928 MB / 0.9869 GB, free: 132.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02976/1.889, allocations: 25.24 MB / 1.012 GB, free: 107.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005648/1.894, allocations: 5.947 MB / 1.017 GB, free: 101.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002276/1.897, allocations: 0.5072 MB / 1.018 GB, free: 100.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.653e-06/1.897, allocations: 0 / 1.018 GB, free: 100.7 MB / 0.545 GB Notification: Performance of Templates: time 0.5134/2.41, allocations: 265.5 MB / 1.277 GB, free: 29.4 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