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.001109/0.001109, allocations: 107.4 kB / 17.21 MB, free: 6.293 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.001169/0.001169, allocations: 194 kB / 18.12 MB, free: 5.383 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.503/1.503, allocations: 222.9 MB / 241.8 MB, free: 15.51 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.2188/0.2188, allocations: 44.17 MB / 336.1 MB, free: 2.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 60.31 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1391, allocations: 60.84 MB / 468.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.3751/0.5143, allocations: 81.59 MB / 0.5372 GB, free: 6.027 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03991/0.5542, allocations: 15.84 MB / 0.5527 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02367/0.578, allocations: 353 kB / 0.553 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009509/0.5875, allocations: 4.771 MB / 0.5577 GB, free: 8.414 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00905/0.5967, allocations: 2.931 MB / 0.5606 GB, free: 6.375 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002803/0.5995, allocations: 0.8354 MB / 0.5614 GB, free: 5.699 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01556/0.6151, allocations: 12.16 MB / 0.5732 GB, free: 9.527 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009809/0.6249, allocations: 6.297 MB / 0.5794 GB, free: 3.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006271/0.6313, allocations: 2.573 MB / 0.5819 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007899/0.6392, allocations: 4.225 MB / 0.586 GB, free: 12.36 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002334/0.6416, allocations: 444 kB / 0.5865 GB, free: 11.93 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005422/0.647, allocations: 1.346 MB / 0.5878 GB, free: 10.58 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006069/0.6532, allocations: 3.541 MB / 0.5912 GB, free: 7.027 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01124/0.6644, allocations: 4.115 MB / 0.5952 GB, free: 2.887 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01882/0.6833, allocations: 12.99 MB / 0.6079 GB, free: 5.855 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.6833, allocations: 0 / 0.6079 GB, free: 5.855 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.6833, allocations: 4 kB / 0.6079 GB, free: 5.852 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004723/0.6838, allocations: 0 / 0.6079 GB, free: 5.852 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.02371/0.7075, allocations: 8.81 MB / 0.6165 GB, free: 12.95 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.7076, allocations: 8.031 kB / 0.6165 GB, free: 12.95 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02129/0.7289, allocations: 5.441 MB / 0.6219 GB, free: 7.484 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01457/0.7435, allocations: 4.914 MB / 0.6267 GB, free: 2.512 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004986/0.744, allocations: 447.6 kB / 0.6271 GB, free: 2.074 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003578/0.7476, allocations: 0.5703 MB / 0.6276 GB, free: 1.504 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04048/0.7881, allocations: 20.03 MB / 0.6472 GB, free: 12.44 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004812/0.7887, allocations: 67.41 kB / 0.6473 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002845/0.7915, allocations: 275.7 kB / 0.6475 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007141/0.7987, allocations: 4.239 MB / 0.6517 GB, free: 7.855 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04122/0.8399, allocations: 17.8 MB / 0.6691 GB, free: 6.023 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7016/1.542, allocations: 73.95 MB / 0.7413 GB, free: 141.5 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01611/1.558, allocations: 7.932 MB / 0.749 GB, free: 138.6 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006634/1.564, allocations: 5.183 MB / 0.7541 GB, free: 136.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003932/1.565, allocations: 59.88 kB / 0.7541 GB, free: 136.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.257e-05/1.565, allocations: 74.91 kB / 0.7542 GB, free: 136.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 8.897e-06/1.565, allocations: 0 / 0.7542 GB, free: 136.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.1033/1.668, allocations: 41.76 MB / 0.795 GB, free: 108.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.809e-05/1.668, allocations: 226.8 kB / 0.7952 GB, free: 108.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0152/1.684, allocations: 6.399 MB / 0.8015 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001286/1.685, allocations: 85.7 kB / 0.8015 GB, free: 101.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004065/1.689, allocations: 5.532 MB / 0.8069 GB, free: 96.08 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002662/1.692, allocations: 1.734 MB / 0.8086 GB, free: 94.36 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005694/1.697, allocations: 2.257 MB / 0.8108 GB, free: 92.09 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.472e-05/1.698, allocations: 305.1 kB / 0.8111 GB, free: 91.79 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0111/1.709, allocations: 5.031 MB / 0.816 GB, free: 86.76 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01482/1.724, allocations: 11.11 MB / 0.8269 GB, free: 72.73 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02634/1.75, allocations: 17.46 MB / 0.8439 GB, free: 52.31 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003483/1.75, allocations: 60 kB / 0.844 GB, free: 52.25 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.03332/1.784, allocations: 17.88 MB / 0.8615 GB, free: 34.34 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002302/1.784, allocations: 97.88 kB / 0.8616 GB, free: 34.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003106/1.784, allocations: 208 kB / 0.8618 GB, free: 34.05 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005783/1.79, allocations: 2.353 MB / 0.8641 GB, free: 31.68 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008096/1.798, allocations: 2.566 MB / 0.8666 GB, free: 29.11 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01626/1.814, allocations: 16.13 MB / 0.8823 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008565/1.823, allocations: 0.6658 MB / 0.883 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001973/1.825, allocations: 0.621 MB / 0.8836 GB, free: 11.18 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.008049/1.833, allocations: 4.1 MB / 0.8876 GB, free: 7.066 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001787/1.835, allocations: 0.5976 MB / 0.8882 GB, free: 6.461 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0189/1.854, allocations: 10.2 MB / 0.8981 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001473/1.854, allocations: 91.97 kB / 0.8982 GB, free: 12.12 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.255e-05/1.854, allocations: 12 kB / 0.8982 GB, free: 12.11 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001061/1.854, allocations: 23.92 kB / 0.8982 GB, free: 12.08 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3326/2.187, allocations: 21.98 MB / 0.9197 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-05/2.187, allocations: 9.844 kB / 0.9197 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004211/2.191, allocations: 0.736 MB / 0.9204 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006265/2.197, allocations: 2.031 MB / 0.9224 GB, free: 179.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001572/2.199, allocations: 87.17 kB / 0.9225 GB, free: 179 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01783/2.217, allocations: 15.02 MB / 0.9372 GB, free: 170 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.617e-05/2.217, allocations: 22.38 kB / 0.9372 GB, free: 170 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02655/2.244, allocations: 16.1 MB / 0.9529 GB, free: 163.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002392/2.246, allocations: 0.6265 MB / 0.9535 GB, free: 163.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002593/2.249, allocations: 79.25 kB / 0.9536 GB, free: 163.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004402/2.253, allocations: 313.5 kB / 0.9539 GB, free: 163.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001336/2.254, allocations: 283.8 kB / 0.9542 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007198/2.255, allocations: 126.1 kB / 0.9543 GB, free: 163.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006701/2.262, allocations: 3.987 MB / 0.9582 GB, free: 161.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.21e-07/2.262, allocations: 1.969 kB / 0.9582 GB, free: 161.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01157/2.273, allocations: 2.051 MB / 0.9602 GB, free: 159.5 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.001443/2.275, allocations: 234 kB / 0.9604 GB, free: 159.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02126/2.296, allocations: 12.29 MB / 0.9724 GB, free: 148.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.341e-05/2.296, allocations: 11.34 kB / 0.9724 GB, free: 148.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007006/2.303, allocations: 4.924 MB / 0.9772 GB, free: 143.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006725/2.31, allocations: 0.7467 MB / 0.9779 GB, free: 142.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03666/2.347, allocations: 24.43 MB / 1.002 GB, free: 118.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01046/2.357, allocations: 5.955 MB / 1.008 GB, free: 112.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01053/2.368, allocations: 3.991 MB / 1.012 GB, free: 108.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002354/2.37, allocations: 439.4 kB / 1.012 GB, free: 107.8 MB / 0.545 GB Notification: Performance of SimCode: time 7.92e-07/2.37, allocations: 0 / 1.012 GB, free: 107.8 MB / 0.545 GB Notification: Performance of Templates: time 0.1226/2.493, allocations: 73.2 MB / 1.083 GB, free: 34.91 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/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