Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000894/0.0008938, allocations: 175 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.273/1.273, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006986/0.0006986, allocations: 85.11 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3013/0.3013, allocations: 43.56 MB / 363.1 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000377/0.0003773, allocations: 12 kB / 432 MB, free: 5.832 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1133, allocations: 58.85 MB / 490.8 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.235/0.3484, allocations: 74.65 MB / 0.5522 GB, free: 13.38 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03564/0.3841, allocations: 15.22 MB / 0.5671 GB, free: 2.992 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01718/0.4013, allocations: 359.2 kB / 0.5674 GB, free: 2.934 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01611/0.4174, allocations: 3.952 MB / 0.5713 GB, free: 1.555 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03668/0.4542, allocations: 11.57 MB / 0.5826 GB, free: 11.43 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006171/0.4603, allocations: 0.8474 MB / 0.5834 GB, free: 10.87 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.04817/0.5085, allocations: 37.6 MB / 0.6201 GB, free: 5.887 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0129/0.5215, allocations: 8.376 MB / 0.6283 GB, free: 13.45 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005421/0.527, allocations: 2.421 MB / 0.6307 GB, free: 11.02 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00635/0.5334, allocations: 3.797 MB / 0.6344 GB, free: 7.207 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001898/0.5353, allocations: 292 kB / 0.6347 GB, free: 6.922 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003916/0.5392, allocations: 1.159 MB / 0.6358 GB, free: 5.762 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004482/0.5437, allocations: 3.319 MB / 0.639 GB, free: 2.434 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00564/0.5494, allocations: 3.729 MB / 0.6427 GB, free: 14.67 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01177/0.5612, allocations: 10.84 MB / 0.6533 GB, free: 3.809 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.5612, allocations: 0 / 0.6533 GB, free: 3.809 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.378e-06/0.5612, allocations: 0 / 0.6533 GB, free: 3.809 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004602/0.5617, allocations: 0 / 0.6533 GB, free: 3.809 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.01691/0.5786, allocations: 7.35 MB / 0.6604 GB, free: 12.37 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.5787, allocations: 8.031 kB / 0.6604 GB, free: 12.36 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0201/0.5988, allocations: 5.605 MB / 0.6659 GB, free: 6.738 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01193/0.6108, allocations: 5.086 MB / 0.6709 GB, free: 1.594 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003841/0.6112, allocations: 455.9 kB / 0.6713 GB, free: 1.148 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001971/0.6132, allocations: 0.5897 MB / 0.6719 GB, free: 0.5586 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4117/1.025, allocations: 20.51 MB / 0.6919 GB, free: 129.3 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000187/1.025, allocations: 74.19 kB / 0.692 GB, free: 129.3 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000821/1.026, allocations: 281.5 kB / 0.6923 GB, free: 129.2 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005522/1.032, allocations: 4.345 MB / 0.6965 GB, free: 128.4 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03429/1.066, allocations: 18.18 MB / 0.7143 GB, free: 122.7 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08484/1.151, allocations: 75.65 MB / 0.7881 GB, free: 53.83 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0215/1.172, allocations: 8.17 MB / 0.7961 GB, free: 45.42 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006067/1.178, allocations: 5.345 MB / 0.8013 GB, free: 40.06 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003017/1.179, allocations: 64.58 kB / 0.8014 GB, free: 40.01 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.764e-05/1.179, allocations: 81.17 kB / 0.8015 GB, free: 39.92 MB / 490.8 MB Notification: Performance of pre-optimization done (n=450): time 7.254e-06/1.179, allocations: 3.938 kB / 0.8015 GB, free: 39.92 MB / 490.8 MB Notification: Performance of matching and sorting (n=497): time 0.08432/1.263, allocations: 42.91 MB / 0.8434 GB, free: 12.93 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/1.263, allocations: 226.9 kB / 0.8436 GB, free: 12.66 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008974/1.272, allocations: 6.493 MB / 0.8499 GB, free: 6.168 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0008947/1.273, allocations: 96.12 kB / 0.85 GB, free: 6.07 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.003828/1.277, allocations: 5.643 MB / 0.8555 GB, free: 444 kB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002143/1.279, allocations: 1.807 MB / 0.8573 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005624/1.28, allocations: 227 kB / 0.8575 GB, free: 14.42 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006087/1.28, allocations: 0.8097 MB / 0.8583 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007649/1.288, allocations: 5.16 MB / 0.8634 GB, free: 8.441 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2055/1.494, allocations: 11.35 MB / 0.8744 GB, free: 139.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01917/1.513, allocations: 17.89 MB / 0.8919 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000239/1.513, allocations: 61.28 kB / 0.892 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1524) (initialization): time 0.02779/1.541, allocations: 18.26 MB / 0.9098 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001385/1.541, allocations: 100 kB / 0.9099 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002381/1.541, allocations: 218.5 kB / 0.9101 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005132/1.546, allocations: 2.349 MB / 0.9124 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008287/1.555, allocations: 2.646 MB / 0.915 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01671/1.571, allocations: 16.13 MB / 0.9307 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007425/1.579, allocations: 0.6916 MB / 0.9314 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001474/1.58, allocations: 0.6342 MB / 0.932 GB, free: 112 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * Number of states: 0 () * Number of discrete variables: 51 (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 (1400): * Single equations (assignments): 1387 * 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.006668/1.587, allocations: 4.19 MB / 0.9361 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009683/1.588, allocations: 0.6123 MB / 0.9367 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01576/1.604, allocations: 10.57 MB / 0.947 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001051/1.604, allocations: 93.45 kB / 0.9471 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.225e-05/1.604, allocations: 13.47 kB / 0.9471 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.37e-05/1.604, allocations: 20.2 kB / 0.9472 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03123/1.635, allocations: 22.63 MB / 0.9692 GB, free: 91.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-05/1.635, allocations: 12 kB / 0.9693 GB, free: 91.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003194/1.639, allocations: 0.792 MB / 0.97 GB, free: 90.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004593/1.643, allocations: 2.026 MB / 0.972 GB, free: 89.09 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004625/1.644, allocations: 94.3 kB / 0.9721 GB, free: 89 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01324/1.657, allocations: 15.02 MB / 0.9868 GB, free: 73.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/1.657, allocations: 19.88 kB / 0.9868 GB, free: 73.75 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01938/1.676, allocations: 16.65 MB / 1.003 GB, free: 56.99 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002832/1.679, allocations: 1.422 MB / 1.004 GB, free: 55.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008404/1.68, allocations: 81.53 kB / 1.005 GB, free: 55.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002506/1.683, allocations: 333.6 kB / 1.005 GB, free: 55.14 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006488/1.683, allocations: 306 kB / 1.005 GB, free: 54.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002855/1.684, allocations: 124.8 kB / 1.005 GB, free: 54.71 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00473/1.688, allocations: 4.009 MB / 1.009 GB, free: 50.71 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.5e-07/1.688, allocations: 0 / 1.009 GB, free: 50.71 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008186/1.696, allocations: 2.108 MB / 1.011 GB, free: 48.61 MB / 0.5105 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 (381): * Single equations (assignments): 368 * 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.0007148/1.697, allocations: 250.3 kB / 1.011 GB, free: 48.36 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01542/1.713, allocations: 12.64 MB / 1.024 GB, free: 35.71 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.243e-05/1.713, allocations: 0 / 1.024 GB, free: 35.71 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005869/1.719, allocations: 5.114 MB / 1.029 GB, free: 30.55 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01182/1.73, allocations: 0.7613 MB / 1.03 GB, free: 29.81 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03006/1.76, allocations: 25.2 MB / 1.054 GB, free: 4.438 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006084/1.767, allocations: 6.075 MB / 1.06 GB, free: 14.32 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002425/1.769, allocations: 0.5306 MB / 1.061 GB, free: 13.79 MB / 0.5262 GB Notification: Performance of SimCode: time 6.21e-07/1.769, allocations: 0 / 1.061 GB, free: 13.79 MB / 0.5262 GB Notification: Performance of Templates: time 0.6239/2.393, allocations: 271.1 MB / 1.325 GB, free: 138.5 MB / 0.5418 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches