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.001227/0.001227, allocations: 105.1 kB / 17.63 MB, free: 5.344 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.001291/0.001292, allocations: 192 kB / 18.56 MB, free: 4.434 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.322/1.322, allocations: 222.9 MB / 242.2 MB, free: 15.15 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.2026/0.2026, allocations: 44.18 MB / 336.6 MB, free: 2.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 59.09 kB / 408.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1354, allocations: 60.83 MB / 469.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.01828/0.1537, allocations: 18.72 MB / 488 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01085/0.1646, allocations: 5.33 MB / 493.3 MB, free: 6.199 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003334/0.168, allocations: 119.7 kB / 493.4 MB, free: 6.082 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008542/0.1765, allocations: 4.793 MB / 498.2 MB, free: 1.273 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007697/0.1843, allocations: 3.097 MB / 0.4896 GB, free: 14.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002247/0.1866, allocations: 0.9009 MB / 0.4904 GB, free: 13.26 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01149/0.1981, allocations: 8.378 MB / 0.4986 GB, free: 4.867 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2345/0.4327, allocations: 6.443 MB / 0.5049 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007345/0.4401, allocations: 2.945 MB / 0.5078 GB, free: 14.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007857/0.4479, allocations: 3.971 MB / 0.5117 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003301/0.4513, allocations: 0.6228 MB / 0.5123 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005239/0.4565, allocations: 1.469 MB / 0.5137 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004891/0.4614, allocations: 3.685 MB / 0.5173 GB, free: 14.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007769/0.4692, allocations: 4.278 MB / 0.5215 GB, free: 12.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0139/0.4832, allocations: 13.16 MB / 0.5343 GB, free: 6.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.4832, allocations: 0.625 kB / 0.5343 GB, free: 6.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4832, allocations: 0.5938 kB / 0.5343 GB, free: 6.449 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005292/0.4837, allocations: 0 / 0.5343 GB, free: 6.449 MB / 382.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.02002/0.5038, allocations: 8.824 MB / 0.543 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.5038, allocations: 9.844 kB / 0.543 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02154/0.5254, allocations: 5.433 MB / 0.5483 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01158/0.537, allocations: 4.915 MB / 0.5531 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004265/0.5375, allocations: 441.3 kB / 0.5535 GB, free: 9.023 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002674/0.5401, allocations: 0.5779 MB / 0.5541 GB, free: 8.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0413/0.5815, allocations: 20.02 MB / 0.5736 GB, free: 3.82 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000412/0.5819, allocations: 72.17 kB / 0.5737 GB, free: 3.781 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002714/0.5846, allocations: 280.6 kB / 0.5739 GB, free: 3.586 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007217/0.5919, allocations: 4.233 MB / 0.5781 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03672/0.6286, allocations: 17.8 MB / 0.5955 GB, free: 13.86 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1061/0.7348, allocations: 73.96 MB / 0.6677 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01881/0.7536, allocations: 7.94 MB / 0.6754 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008474/0.7622, allocations: 5.184 MB / 0.6805 GB, free: 5.57 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005203/0.7627, allocations: 62.14 kB / 0.6806 GB, free: 5.523 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000101/0.7629, allocations: 77.09 kB / 0.6806 GB, free: 5.438 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=429): time 1.245e-05/0.7629, allocations: 0 / 0.6806 GB, free: 5.438 MB / 0.5137 GB Notification: Performance of matching and sorting (n=476): time 0.3575/1.12, allocations: 41.75 MB / 0.7214 GB, free: 170.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/1.121, allocations: 224.1 kB / 0.7216 GB, free: 170.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01152/1.132, allocations: 6.399 MB / 0.7279 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001221/1.133, allocations: 93.08 kB / 0.728 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003869/1.137, allocations: 5.526 MB / 0.7334 GB, free: 163.6 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002281/1.139, allocations: 1.735 MB / 0.7351 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003976/1.143, allocations: 2.257 MB / 0.7373 GB, free: 161.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 7.15e-05/1.144, allocations: 305.1 kB / 0.7375 GB, free: 161 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007584/1.151, allocations: 5.035 MB / 0.7425 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01094/1.162, allocations: 11.11 MB / 0.7533 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01833/1.181, allocations: 17.47 MB / 0.7704 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002283/1.181, allocations: 60 kB / 0.7704 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.02978/1.211, allocations: 17.87 MB / 0.7879 GB, free: 117.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001103/1.211, allocations: 102.1 kB / 0.788 GB, free: 117.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001996/1.211, allocations: 217.1 kB / 0.7882 GB, free: 117 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005504/1.216, allocations: 2.348 MB / 0.7905 GB, free: 114.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00842/1.225, allocations: 2.573 MB / 0.793 GB, free: 112.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01552/1.24, allocations: 17.43 MB / 0.81 GB, free: 94.15 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009078/1.25, allocations: 0.6619 MB / 0.8107 GB, free: 93.49 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002096/1.252, allocations: 0.6249 MB / 0.8113 GB, free: 92.86 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.009099/1.261, allocations: 4.095 MB / 0.8153 GB, free: 88.76 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00167/1.262, allocations: 0.5977 MB / 0.8159 GB, free: 88.15 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01437/1.277, allocations: 10.2 MB / 0.8258 GB, free: 77.89 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.861e-05/1.277, allocations: 83.98 kB / 0.8259 GB, free: 77.81 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.379e-05/1.277, allocations: 8 kB / 0.8259 GB, free: 77.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.204e-05/1.277, allocations: 23.86 kB / 0.8259 GB, free: 77.78 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03548/1.313, allocations: 21.99 MB / 0.8474 GB, free: 55.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.801e-05/1.313, allocations: 12 kB / 0.8474 GB, free: 55.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00323/1.316, allocations: 0.7371 MB / 0.8481 GB, free: 54.86 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004999/1.321, allocations: 2.041 MB / 0.8501 GB, free: 52.81 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004372/1.321, allocations: 87.66 kB / 0.8502 GB, free: 52.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01438/1.336, allocations: 16.19 MB / 0.866 GB, free: 35.98 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.907e-06/1.336, allocations: 19.94 kB / 0.866 GB, free: 35.96 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02299/1.359, allocations: 16.09 MB / 0.8818 GB, free: 19.63 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002185/1.361, allocations: 0.6298 MB / 0.8824 GB, free: 18.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002492/1.363, allocations: 87.91 kB / 0.8824 GB, free: 18.89 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004948/1.368, allocations: 307.5 kB / 0.8827 GB, free: 18.59 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001557/1.37, allocations: 289.8 kB / 0.883 GB, free: 18.31 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009544/1.371, allocations: 127.8 kB / 0.8831 GB, free: 18.19 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008102/1.379, allocations: 3.983 MB / 0.887 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.21e-07/1.379, allocations: 0 / 0.887 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01305/1.392, allocations: 2.042 MB / 0.889 GB, free: 12.17 MB / 0.5294 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.001585/1.394, allocations: 242 kB / 0.8893 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2897/1.684, allocations: 21.93 MB / 0.9107 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.812e-05/1.684, allocations: 4.938 kB / 0.9107 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008627/1.692, allocations: 4.93 MB / 0.9155 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008945/1.701, allocations: 0.7877 MB / 0.9163 GB, free: 163 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04354/1.745, allocations: 20.34 MB / 0.9361 GB, free: 152.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01173/1.757, allocations: 5.957 MB / 0.9419 GB, free: 148 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.01131/1.768, allocations: 4.004 MB / 0.9459 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003196/1.771, allocations: 434.3 kB / 0.9463 GB, free: 145 MB / 0.5294 GB Notification: Performance of SimCode: time 1.283e-06/1.771, allocations: 0 / 0.9463 GB, free: 145 MB / 0.5294 GB Notification: Performance of Templates: time 0.1246/1.896, allocations: 75.95 MB / 1.02 GB, free: 71.77 MB / 0.5294 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","/var/lib/jenkins/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