Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001391/0.001391, allocations: 122.2 kB / 17.78 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001465/0.001466, allocations: 197.2 kB / 18.72 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.9 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2233/0.2233, allocations: 46.1 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 75.88 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4703/0.4719, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.02298/0.4949, allocations: 18.58 MB / 0.5491 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01607/0.511, allocations: 5.311 MB / 0.5543 GB, free: 9.797 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005443/0.5165, allocations: 119.7 kB / 0.5544 GB, free: 9.68 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009676/0.5263, allocations: 4.766 MB / 0.5591 GB, free: 4.898 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009296/0.5356, allocations: 3.043 MB / 0.5621 GB, free: 1.844 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003067/0.5387, allocations: 0.9087 MB / 0.5629 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01343/0.5522, allocations: 8.423 MB / 0.5712 GB, free: 8.496 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01384/0.566, allocations: 6.404 MB / 0.5774 GB, free: 2.02 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007271/0.5734, allocations: 2.924 MB / 0.5803 GB, free: 15.09 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006754/0.5801, allocations: 3.952 MB / 0.5841 GB, free: 11.12 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00253/0.5827, allocations: 0.6172 MB / 0.5847 GB, free: 10.5 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004943/0.5877, allocations: 1.444 MB / 0.5862 GB, free: 9.059 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005403/0.5931, allocations: 3.623 MB / 0.5897 GB, free: 5.426 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008326/0.6015, allocations: 4.221 MB / 0.5938 GB, free: 1.18 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01837/0.6199, allocations: 13.49 MB / 0.607 GB, free: 3.633 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.6199, allocations: 3.938 kB / 0.607 GB, free: 3.629 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.6199, allocations: 0 / 0.607 GB, free: 3.629 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004667/0.6204, allocations: 0 / 0.607 GB, free: 3.629 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2997 * Number of variables: 2997 Notification: Performance of Generate backend data structure: time 0.0245/0.6449, allocations: 8.978 MB / 0.6158 GB, free: 10.55 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.645, allocations: 8.031 kB / 0.6158 GB, free: 10.54 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.021/0.666, allocations: 5.482 MB / 0.6211 GB, free: 5.043 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01151/0.6775, allocations: 4.939 MB / 0.6259 GB, free: 48 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004554/0.678, allocations: 435.6 kB / 0.6264 GB, free: 15.62 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002223/0.6803, allocations: 0.5788 MB / 0.6269 GB, free: 15.04 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04334/0.7236, allocations: 19.84 MB / 0.6463 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007214/0.7244, allocations: 75.39 kB / 0.6464 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003575/0.728, allocations: 271.7 kB / 0.6466 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007308/0.7354, allocations: 4.172 MB / 0.6507 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03668/0.7721, allocations: 17.64 MB / 0.6679 GB, free: 3.992 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7658/1.538, allocations: 73.31 MB / 0.7395 GB, free: 115.3 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01576/1.554, allocations: 7.926 MB / 0.7473 GB, free: 114 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005865/1.56, allocations: 5.184 MB / 0.7523 GB, free: 111.9 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002645/1.56, allocations: 69.09 kB / 0.7524 GB, free: 111.9 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.41e-05/1.56, allocations: 77.8 kB / 0.7525 GB, free: 111.8 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=429): time 5.55e-06/1.56, allocations: 0 / 0.7525 GB, free: 111.8 MB / 0.5607 GB Notification: Performance of matching and sorting (n=476): time 0.09993/1.66, allocations: 42.14 MB / 0.7936 GB, free: 82.33 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/1.66, allocations: 226.8 kB / 0.7938 GB, free: 82.06 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01015/1.67, allocations: 6.399 MB / 0.8001 GB, free: 75.79 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001317/1.672, allocations: 89.7 kB / 0.8002 GB, free: 75.7 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.00315/1.675, allocations: 5.712 MB / 0.8058 GB, free: 70.5 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002282/1.677, allocations: 1.812 MB / 0.8075 GB, free: 68.71 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003172/1.68, allocations: 2.266 MB / 0.8097 GB, free: 66.44 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 5.875e-05/1.68, allocations: 301.1 kB / 0.81 GB, free: 66.14 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007/1.687, allocations: 5.027 MB / 0.8149 GB, free: 61.11 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009672/1.697, allocations: 11.08 MB / 0.8258 GB, free: 47.19 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0185/1.716, allocations: 17.44 MB / 0.8428 GB, free: 26.88 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002805/1.716, allocations: 60 kB / 0.8428 GB, free: 26.82 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1483) (initialization): time 0.03206/1.748, allocations: 17.89 MB / 0.8603 GB, free: 8.902 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003038/1.748, allocations: 99.94 kB / 0.8604 GB, free: 8.805 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004104/1.749, allocations: 208 kB / 0.8606 GB, free: 8.602 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006698/1.755, allocations: 2.342 MB / 0.8629 GB, free: 6.246 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009365/1.765, allocations: 2.562 MB / 0.8654 GB, free: 3.68 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02366/1.789, allocations: 17.42 MB / 0.8824 GB, free: 1.711 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009968/1.799, allocations: 0.659 MB / 0.8831 GB, free: 1.055 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0032/1.802, allocations: 0.6171 MB / 0.8837 GB, free: 448 kB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 955 * Number of states: 0 () * Number of discrete variables: 53 (torque1.torqueArrow.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 (1359): * Single equations (assignments): 1346 * 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.0109/1.813, allocations: 4.072 MB / 0.8876 GB, free: 12.36 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002352/1.815, allocations: 0.6296 MB / 0.8883 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02243/1.838, allocations: 10.2 MB / 0.8982 GB, free: 1.461 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000138/1.838, allocations: 91.27 kB / 0.8983 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-05/1.838, allocations: 12 kB / 0.8983 GB, free: 1.363 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.933e-05/1.838, allocations: 19.92 kB / 0.8983 GB, free: 1.344 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0485/1.886, allocations: 21.84 MB / 0.9197 GB, free: 11.35 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.535e-05/1.887, allocations: 12.97 kB / 0.9197 GB, free: 11.34 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003756/1.89, allocations: 0.7371 MB / 0.9204 GB, free: 10.6 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005851/1.896, allocations: 2.033 MB / 0.9224 GB, free: 8.551 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008552/1.897, allocations: 91.42 kB / 0.9225 GB, free: 8.465 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01996/1.917, allocations: 16.2 MB / 0.9383 GB, free: 7.715 MB / 0.6388 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.557e-05/1.917, allocations: 19.88 kB / 0.9383 GB, free: 7.695 MB / 0.6388 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02833/1.945, allocations: 16.12 MB / 0.9541 GB, free: 7.332 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002612/1.948, allocations: 0.6571 MB / 0.9547 GB, free: 6.652 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002124/1.95, allocations: 80 kB / 0.9548 GB, free: 6.574 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004509/1.955, allocations: 311.5 kB / 0.9551 GB, free: 6.27 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001208/1.956, allocations: 293.6 kB / 0.9553 GB, free: 5.984 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006464/1.957, allocations: 128 kB / 0.9555 GB, free: 5.859 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.008802/1.965, allocations: 3.979 MB / 0.9594 GB, free: 1.887 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.875e-06/1.966, allocations: 0 / 0.9594 GB, free: 1.887 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01316/1.979, allocations: 2.008 MB / 0.9613 GB, free: 15.88 MB / 0.67 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.001644/1.98, allocations: 238.3 kB / 0.9615 GB, free: 15.64 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.02257/2.003, allocations: 12.34 MB / 0.9736 GB, free: 3.285 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 2.118e-05/2.003, allocations: 4 kB / 0.9736 GB, free: 3.281 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.3071/2.31, allocations: 4.932 MB / 0.9784 GB, free: 250.6 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005705/2.316, allocations: 0.7852 MB / 0.9792 GB, free: 250.6 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03378/2.35, allocations: 20.29 MB / 0.999 GB, free: 244.1 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008133/2.358, allocations: 5.907 MB / 1.005 GB, free: 242.2 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.008228/2.366, allocations: 3.988 MB / 1.009 GB, free: 242 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001526/2.368, allocations: 438.5 kB / 1.009 GB, free: 242 MB / 0.67 GB Notification: Performance of SimCode: time 1.372e-06/2.368, allocations: 0 / 1.009 GB, free: 242 MB / 0.67 GB Notification: Performance of Templates: time 0.1078/2.475, allocations: 70.82 MB / 1.078 GB, free: 173.1 MB / 0.67 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches