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.001152/0.001152, allocations: 186.9 kB / 17.97 MB, free: 3.797 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.284/1.284, allocations: 222.9 MB / 241.6 MB, free: 10.98 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.001068/0.001068, allocations: 100.5 kB / 291.9 MB, free: 10.95 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.3515/0.3515, allocations: 44.13 MB / 386.1 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00104/0.00104, allocations: 55.92 kB / 457.7 MB, free: 2.324 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3598/0.3608, allocations: 60.8 MB / 0.5064 GB, free: 38.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.06945/0.4303, allocations: 81.61 MB / 0.5861 GB, free: 11.82 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04109/0.4715, allocations: 15.84 MB / 0.6016 GB, free: 14.13 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01988/0.4914, allocations: 359.1 kB / 0.6019 GB, free: 13.78 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009844/0.5013, allocations: 4.755 MB / 0.6065 GB, free: 9.297 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009324/0.5107, allocations: 2.941 MB / 0.6094 GB, free: 6.348 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00296/0.5137, allocations: 0.8348 MB / 0.6102 GB, free: 5.512 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.01594/0.5297, allocations: 12.22 MB / 0.6222 GB, free: 9.281 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01048/0.5402, allocations: 6.289 MB / 0.6283 GB, free: 2.922 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005638/0.5459, allocations: 2.6 MB / 0.6308 GB, free: 320 kB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007388/0.5533, allocations: 4.217 MB / 0.635 GB, free: 12.08 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002709/0.5561, allocations: 444 kB / 0.6354 GB, free: 11.64 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005728/0.5618, allocations: 1.338 MB / 0.6367 GB, free: 10.3 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005638/0.5675, allocations: 3.553 MB / 0.6402 GB, free: 6.742 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007926/0.5755, allocations: 4.111 MB / 0.6442 GB, free: 2.605 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01642/0.5919, allocations: 12.99 MB / 0.6569 GB, free: 5.578 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.592, allocations: 0 / 0.6569 GB, free: 5.578 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.592, allocations: 0 / 0.6569 GB, free: 5.578 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005275/0.5925, allocations: 4 kB / 0.6569 GB, free: 5.574 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: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.0262/0.6187, allocations: 8.814 MB / 0.6655 GB, free: 12.68 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.6188, allocations: 8.031 kB / 0.6655 GB, free: 12.67 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02181/0.6406, allocations: 5.429 MB / 0.6708 GB, free: 7.219 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01254/0.6532, allocations: 4.922 MB / 0.6756 GB, free: 2.238 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004288/0.6537, allocations: 439.6 kB / 0.676 GB, free: 1.809 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002468/0.6562, allocations: 0.5816 MB / 0.6766 GB, free: 1.227 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5259/1.182, allocations: 20.03 MB / 0.6961 GB, free: 120.6 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004179/1.183, allocations: 68.06 kB / 0.6962 GB, free: 120.6 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002607/1.185, allocations: 272 kB / 0.6965 GB, free: 120.5 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006906/1.192, allocations: 4.239 MB / 0.7006 GB, free: 119.7 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03914/1.231, allocations: 17.79 MB / 0.718 GB, free: 114.1 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09747/1.329, allocations: 73.96 MB / 0.7902 GB, free: 43.72 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01552/1.344, allocations: 7.943 MB / 0.798 GB, free: 35.54 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005932/1.35, allocations: 5.182 MB / 0.803 GB, free: 30.34 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003902/1.351, allocations: 66.41 kB / 0.8031 GB, free: 30.28 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.917e-05/1.351, allocations: 77.08 kB / 0.8031 GB, free: 30.19 MB / 490.8 MB Notification: Performance of pre-optimization done (n=429): time 9.077e-06/1.351, allocations: 0 / 0.8031 GB, free: 30.19 MB / 490.8 MB Notification: Performance of matching and sorting (n=476): time 0.1031/1.454, allocations: 41.75 MB / 0.8439 GB, free: 4.309 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001546/1.454, allocations: 226.8 kB / 0.8441 GB, free: 4.043 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01243/1.467, allocations: 6.406 MB / 0.8504 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001168/1.468, allocations: 85.7 kB / 0.8505 GB, free: 13.54 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004222/1.472, allocations: 5.53 MB / 0.8559 GB, free: 7.934 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002548/1.475, allocations: 1.731 MB / 0.8576 GB, free: 6.18 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004932/1.48, allocations: 2.259 MB / 0.8598 GB, free: 3.91 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.495e-05/1.48, allocations: 301.1 kB / 0.8601 GB, free: 3.613 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008031/1.488, allocations: 5.031 MB / 0.865 GB, free: 14.57 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01411/1.502, allocations: 11.11 MB / 0.8758 GB, free: 0.5273 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2784/1.78, allocations: 17.45 MB / 0.8929 GB, free: 138 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002409/1.781, allocations: 61.38 kB / 0.8929 GB, free: 138 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.02922/1.81, allocations: 17.88 MB / 0.9104 GB, free: 131.8 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.000156/1.81, allocations: 98.81 kB / 0.9105 GB, free: 131.8 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003856/1.81, allocations: 210.1 kB / 0.9107 GB, free: 131.8 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006051/1.817, allocations: 2.343 MB / 0.913 GB, free: 131.4 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008736/1.825, allocations: 2.568 MB / 0.9155 GB, free: 131.1 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01691/1.842, allocations: 16.13 MB / 0.9312 GB, free: 121.5 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00777/1.85, allocations: 0.6633 MB / 0.9319 GB, free: 121.4 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001785/1.852, allocations: 0.6201 MB / 0.9325 GB, free: 121.3 MB / 0.5262 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.007198/1.859, allocations: 4.107 MB / 0.9365 GB, free: 119.5 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001357/1.86, allocations: 0.5958 MB / 0.9371 GB, free: 119.5 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01642/1.877, allocations: 10.2 MB / 0.947 GB, free: 115.3 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001064/1.877, allocations: 90 kB / 0.9471 GB, free: 115.3 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.725e-05/1.877, allocations: 8 kB / 0.9471 GB, free: 115.2 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.606e-05/1.877, allocations: 23.55 kB / 0.9472 GB, free: 115.2 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03221/1.909, allocations: 21.97 MB / 0.9686 GB, free: 97.08 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.393e-05/1.909, allocations: 12 kB / 0.9686 GB, free: 97.07 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003153/1.913, allocations: 0.74 MB / 0.9693 GB, free: 96.48 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005103/1.918, allocations: 2.032 MB / 0.9713 GB, free: 95.06 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005439/1.918, allocations: 87.27 kB / 0.9714 GB, free: 94.98 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01383/1.932, allocations: 15.03 MB / 0.9861 GB, free: 79.84 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/1.932, allocations: 19.88 kB / 0.9861 GB, free: 79.82 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1186/2.051, allocations: 78.47 MB / 1.063 GB, free: 0.7617 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001848/2.053, allocations: 0.6337 MB / 1.063 GB, free: 104 kB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001745/2.054, allocations: 79.98 kB / 1.063 GB, free: 24 kB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003842/2.058, allocations: 315.5 kB / 1.064 GB, free: 15.72 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001106/2.059, allocations: 281.9 kB / 1.064 GB, free: 15.44 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003305/2.06, allocations: 120 kB / 1.064 GB, free: 15.32 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.006898/2.067, allocations: 3.987 MB / 1.068 GB, free: 11.34 MB / 0.5418 GB Notification: Performance of sort global known variables: time 2.81e-07/2.067, allocations: 4 kB / 1.068 GB, free: 11.34 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01309/2.08, allocations: 2.587 MB / 1.071 GB, free: 8.762 MB / 0.5418 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.001137/2.081, allocations: 241.5 kB / 1.071 GB, free: 8.52 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.2585/2.339, allocations: 12.29 MB / 1.083 GB, free: 161.4 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.526e-05/2.339, allocations: 1.969 kB / 1.083 GB, free: 161.4 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.006599/2.346, allocations: 4.927 MB / 1.088 GB, free: 160.8 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004655/2.351, allocations: 0.7549 MB / 1.088 GB, free: 160.7 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03956/2.39, allocations: 27.87 MB / 1.116 GB, free: 146.5 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01224/2.403, allocations: 6.114 MB / 1.122 GB, free: 144.5 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.0106/2.413, allocations: 4.028 MB / 1.125 GB, free: 144.3 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001939/2.415, allocations: 445.7 kB / 1.126 GB, free: 144.2 MB / 0.5418 GB Notification: Performance of SimCode: time 8.81e-07/2.415, allocations: 0 / 1.126 GB, free: 144.2 MB / 0.5418 GB Notification: Performance of Templates: time 0.134/2.549, allocations: 91.36 MB / 1.215 GB, free: 66.79 MB / 0.5418 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@2/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