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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 180.1 kB / 18.09 MB, free: 3.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 223.3 MB / 242.1 MB, free: 11.66 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008266/0.0008269, allocations: 97.58 kB / 293.3 MB, free: 10.77 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3466/0.3466, allocations: 44.15 MB / 388.5 MB, free: 38.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.000349, allocations: 19.98 kB / 461.1 MB, free: 1.57 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3268, allocations: 61.87 MB / 0.5107 GB, free: 38.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1454/0.4722, allocations: 111.7 MB / 0.6198 GB, free: 15.39 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/0.4726, allocations: 83.94 kB / 0.6199 GB, free: 15.31 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.627/1.1, allocations: 160 MB / 0.7761 GB, free: 70.21 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.505e-06/1.1, allocations: 0 / 0.7761 GB, free: 70.21 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004786/1.1, allocations: 155.9 kB / 0.7763 GB, free: 70.06 MB / 490.7 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.02987/1.13, allocations: 7.601 MB / 0.7837 GB, free: 62.36 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.955e-05/1.13, allocations: 12.03 kB / 0.7837 GB, free: 62.35 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03253/1.163, allocations: 8.366 MB / 0.7919 GB, free: 53.96 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01751/1.18, allocations: 6.906 MB / 0.7986 GB, free: 46.96 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006734/1.181, allocations: 0.6061 MB / 0.7992 GB, free: 46.36 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005128/1.186, allocations: 0.8008 MB / 0.8 GB, free: 45.55 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0457/1.232, allocations: 19.97 MB / 0.8195 GB, free: 24.15 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006116/1.232, allocations: 83.38 kB / 0.8196 GB, free: 24.07 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00452/1.237, allocations: 399.7 kB / 0.82 GB, free: 23.68 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002852/1.24, allocations: 2.038 MB / 0.822 GB, free: 21.63 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03649/1.276, allocations: 17.48 MB / 0.839 GB, free: 4.133 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4462/1.723, allocations: 83.47 MB / 0.9205 GB, free: 46.44 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01518/1.738, allocations: 7.732 MB / 0.9281 GB, free: 45.18 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00709/1.745, allocations: 4.969 MB / 0.933 GB, free: 45.13 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002698/1.745, allocations: 66.39 kB / 0.933 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.674e-05/1.745, allocations: 78.34 kB / 0.9331 GB, free: 45.08 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=429): time 8.255e-06/1.745, allocations: 0 / 0.9331 GB, free: 45.08 MB / 0.5105 GB Notification: Performance of matching and sorting (n=476): time 0.1009/1.846, allocations: 39.11 MB / 0.9713 GB, free: 36.81 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/1.846, allocations: 225 kB / 0.9715 GB, free: 36.59 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01438/1.861, allocations: 6.334 MB / 0.9777 GB, free: 34.45 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.00113/1.862, allocations: 90.42 kB / 0.9778 GB, free: 34.38 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004344/1.866, allocations: 5.572 MB / 0.9832 GB, free: 30.31 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003042/1.869, allocations: 1.733 MB / 0.9849 GB, free: 29.03 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001938/1.871, allocations: 217.3 kB / 0.9851 GB, free: 28.86 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001608/1.873, allocations: 0.7807 MB / 0.9859 GB, free: 28.36 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008462/1.882, allocations: 4.704 MB / 0.9905 GB, free: 26.81 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01372/1.895, allocations: 10.78 MB / 1.001 GB, free: 17.25 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02119/1.917, allocations: 16.91 MB / 1.018 GB, free: 5.016 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003132/1.917, allocations: 59.56 kB / 1.018 GB, free: 5.016 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1448) (initialization): time 0.03585/1.953, allocations: 16.61 MB / 1.034 GB, free: 7.289 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004032/1.953, allocations: 98.19 kB / 1.034 GB, free: 7.195 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005175/1.954, allocations: 208 kB / 1.034 GB, free: 6.992 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004857/1.959, allocations: 1.699 MB / 1.036 GB, free: 5.695 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009848/1.969, allocations: 2.517 MB / 1.038 GB, free: 3.531 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02226/1.991, allocations: 14.34 MB / 1.052 GB, free: 7.168 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009815/2.001, allocations: 0.644 MB / 1.053 GB, free: 6.629 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002698/2.003, allocations: 0.6162 MB / 1.053 GB, free: 6.023 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 962 * Number of states: 0 () * Number of discrete variables: 53 (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.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (1324): * Single equations (assignments): 1311 * 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,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0129/2.016, allocations: 4.097 MB / 1.057 GB, free: 2.473 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002545/2.019, allocations: 0.5977 MB / 1.058 GB, free: 1.867 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03101/2.05, allocations: 10.01 MB / 1.068 GB, free: 12.12 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000183/2.05, allocations: 91.73 kB / 1.068 GB, free: 12.04 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001038/2.05, allocations: 8 kB / 1.068 GB, free: 12.03 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001297/2.05, allocations: 18.05 kB / 1.068 GB, free: 12.03 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3699/2.42, allocations: 21.09 MB / 1.088 GB, free: 132.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.766e-05/2.42, allocations: 10.75 kB / 1.089 GB, free: 132.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003617/2.424, allocations: 0.7462 MB / 1.089 GB, free: 132.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003524/2.428, allocations: 1.362 MB / 1.091 GB, free: 132.6 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000799/2.428, allocations: 86.2 kB / 1.091 GB, free: 132.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01268/2.441, allocations: 12.91 MB / 1.103 GB, free: 127.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-05/2.441, allocations: 22.91 kB / 1.103 GB, free: 127.4 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02575/2.467, allocations: 14.76 MB / 1.118 GB, free: 126.3 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002394/2.469, allocations: 0.629 MB / 1.118 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002069/2.471, allocations: 79.09 kB / 1.118 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004158/2.476, allocations: 300.5 kB / 1.119 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001219/2.477, allocations: 287.3 kB / 1.119 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006115/2.477, allocations: 125.8 kB / 1.119 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01057/2.488, allocations: 3.926 MB / 1.123 GB, free: 126 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.31e-07/2.488, allocations: 0 / 1.123 GB, free: 126 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01363/2.502, allocations: 1.977 MB / 1.125 GB, free: 126 MB / 0.5573 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 {(1,100.0%) 39,(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.001508/2.503, allocations: 246.8 kB / 1.125 GB, free: 125.9 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01942/2.523, allocations: 11.65 MB / 1.136 GB, free: 122.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.686e-05/2.523, allocations: 6.438 kB / 1.136 GB, free: 122.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007748/2.53, allocations: 4.699 MB / 1.141 GB, free: 120.4 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01918/2.55, allocations: 0.7808 MB / 1.142 GB, free: 120 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06315/2.613, allocations: 23.27 MB / 1.165 GB, free: 108.7 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01889/2.632, allocations: 5.954 MB / 1.17 GB, free: 106.7 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01577/2.648, allocations: 4.003 MB / 1.174 GB, free: 106.5 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002117/2.65, allocations: 434 kB / 1.175 GB, free: 106.4 MB / 0.5573 GB Notification: Performance of SimCode: time 8.51e-07/2.65, allocations: 4 kB / 1.175 GB, free: 106.4 MB / 0.5573 GB Notification: Performance of Templates: time 0.1178/2.768, allocations: 67.49 MB / 1.241 GB, free: 54.7 MB / 0.5573 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","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches