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.001219/0.00122, allocations: 111 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001299/0.001299, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.9 MB, free: 8.949 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.218/0.218, allocations: 46.1 MB / 344.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001413, allocations: 72.92 kB / 417.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1297, allocations: 62.44 MB / 479.9 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.3361/0.4658, allocations: 77.48 MB / 0.5443 GB, free: 14.86 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03476/0.5006, allocations: 15.02 MB / 0.559 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01553/0.5161, allocations: 339.5 kB / 0.5593 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01247/0.5287, allocations: 4.748 MB / 0.564 GB, free: 1.164 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01063/0.5394, allocations: 2.878 MB / 0.5668 GB, free: 14.4 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003499/0.5429, allocations: 0.8427 MB / 0.5676 GB, free: 13.55 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02018/0.5631, allocations: 12.14 MB / 0.5795 GB, free: 1.398 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0123/0.5755, allocations: 6.275 MB / 0.5856 GB, free: 11.08 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006194/0.5817, allocations: 2.569 MB / 0.5881 GB, free: 8.5 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00734/0.5891, allocations: 4.19 MB / 0.5922 GB, free: 4.297 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001904/0.591, allocations: 444 kB / 0.5926 GB, free: 3.863 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003406/0.5944, allocations: 1.319 MB / 0.5939 GB, free: 2.543 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003776/0.5982, allocations: 3.487 MB / 0.5973 GB, free: 15.05 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005153/0.6034, allocations: 4.049 MB / 0.6013 GB, free: 10.97 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01086/0.6143, allocations: 10.63 MB / 0.6116 GB, free: 328 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.6143, allocations: 0 / 0.6116 GB, free: 328 kB / 446.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.6143, allocations: 0 / 0.6116 GB, free: 328 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004013/0.6147, allocations: 0 / 0.6116 GB, free: 328 kB / 446.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.02136/0.6361, allocations: 8.74 MB / 0.6202 GB, free: 7.492 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.05e-05/0.6362, allocations: 8.875 kB / 0.6202 GB, free: 7.484 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02087/0.657, allocations: 5.437 MB / 0.6255 GB, free: 2.027 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0112/0.6683, allocations: 4.84 MB / 0.6302 GB, free: 13.13 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000446/0.6688, allocations: 443.5 kB / 0.6306 GB, free: 12.7 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002551/0.6713, allocations: 0.5741 MB / 0.6312 GB, free: 12.12 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03852/0.7099, allocations: 19.83 MB / 0.6506 GB, free: 7.254 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002587/0.7102, allocations: 75.3 kB / 0.6506 GB, free: 7.18 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001479/0.7117, allocations: 279.6 kB / 0.6509 GB, free: 6.906 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006299/0.718, allocations: 4.172 MB / 0.655 GB, free: 2.727 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03433/0.7523, allocations: 17.64 MB / 0.6722 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5207/1.273, allocations: 73.55 MB / 0.744 GB, free: 133 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01581/1.289, allocations: 7.931 MB / 0.7518 GB, free: 129.8 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005908/1.295, allocations: 5.179 MB / 0.7568 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002468/1.295, allocations: 70.44 kB / 0.7569 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.946e-05/1.295, allocations: 72.05 kB / 0.757 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 7.294e-06/1.295, allocations: 7.953 kB / 0.757 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.08546/1.381, allocations: 41.7 MB / 0.7977 GB, free: 100.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.55e-05/1.381, allocations: 230.7 kB / 0.7979 GB, free: 100.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006983/1.388, allocations: 6.386 MB / 0.8042 GB, free: 93.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008259/1.389, allocations: 89.7 kB / 0.8042 GB, free: 93.71 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002294/1.391, allocations: 5.486 MB / 0.8096 GB, free: 88.22 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001793/1.393, allocations: 1.731 MB / 0.8113 GB, free: 86.51 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002546/1.395, allocations: 2.249 MB / 0.8135 GB, free: 84.25 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.276e-05/1.395, allocations: 305.1 kB / 0.8138 GB, free: 83.95 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005666/1.401, allocations: 5.027 MB / 0.8187 GB, free: 78.92 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008076/1.409, allocations: 11.09 MB / 0.8295 GB, free: 64.91 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01591/1.425, allocations: 17.43 MB / 0.8465 GB, free: 44.52 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000161/1.425, allocations: 60 kB / 0.8466 GB, free: 44.46 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1483) (initialization): time 0.02846/1.454, allocations: 17.86 MB / 0.864 GB, free: 26.57 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001131/1.454, allocations: 98.81 kB / 0.8641 GB, free: 26.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001852/1.454, allocations: 208 kB / 0.8643 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005384/1.459, allocations: 2.35 MB / 0.8666 GB, free: 23.91 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008474/1.468, allocations: 2.562 MB / 0.8691 GB, free: 21.35 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01521/1.483, allocations: 16.11 MB / 0.8849 GB, free: 4.715 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007779/1.491, allocations: 0.6624 MB / 0.8855 GB, free: 4.055 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002051/1.493, allocations: 0.6249 MB / 0.8861 GB, free: 3.43 MB / 0.5294 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.007413/1.501, allocations: 4.076 MB / 0.8901 GB, free: 15.34 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001401/1.502, allocations: 0.59 MB / 0.8907 GB, free: 14.74 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01757/1.52, allocations: 10.2 MB / 0.9006 GB, free: 4.484 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001374/1.52, allocations: 95.36 kB / 0.9007 GB, free: 4.395 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-05/1.52, allocations: 16 kB / 0.9007 GB, free: 4.379 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.665e-05/1.52, allocations: 20.2 kB / 0.9008 GB, free: 4.359 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.276/1.796, allocations: 21.92 MB / 0.9222 GB, free: 185 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.783e-05/1.796, allocations: 12.25 kB / 0.9222 GB, free: 185 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00399/1.8, allocations: 0.7402 MB / 0.9229 GB, free: 185 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006325/1.806, allocations: 2.032 MB / 0.9249 GB, free: 184.9 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00106/1.807, allocations: 83.59 kB / 0.925 GB, free: 184.9 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01837/1.826, allocations: 15.03 MB / 0.9396 GB, free: 177.9 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.526e-05/1.826, allocations: 18.16 kB / 0.9397 GB, free: 177.9 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02328/1.849, allocations: 16.09 MB / 0.9554 GB, free: 171.7 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001417/1.851, allocations: 0.6164 MB / 0.956 GB, free: 171.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001474/1.852, allocations: 88.23 kB / 0.9561 GB, free: 171.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003149/1.855, allocations: 307.4 kB / 0.9563 GB, free: 171.5 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009582/1.856, allocations: 293.2 kB / 0.9566 GB, free: 171.5 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003397/1.857, allocations: 122.3 kB / 0.9567 GB, free: 171.4 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.00561/1.862, allocations: 3.98 MB / 0.9606 GB, free: 170.1 MB / 0.5607 GB Notification: Performance of sort global known variables: time 2.01e-07/1.862, allocations: 0 / 0.9606 GB, free: 170.1 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.009736/1.872, allocations: 2.006 MB / 0.9626 GB, free: 169.9 MB / 0.5607 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.00102/1.873, allocations: 244.3 kB / 0.9628 GB, free: 169.7 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01567/1.889, allocations: 12.28 MB / 0.9748 GB, free: 163.9 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/1.889, allocations: 3.938 kB / 0.9748 GB, free: 163.9 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.006158/1.895, allocations: 4.931 MB / 0.9796 GB, free: 159.5 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004738/1.9, allocations: 0.7372 MB / 0.9804 GB, free: 158.9 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03133/1.931, allocations: 25.08 MB / 1.005 GB, free: 134.2 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007353/1.938, allocations: 5.897 MB / 1.011 GB, free: 128.3 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002336/1.941, allocations: 0.5072 MB / 1.011 GB, free: 127.8 MB / 0.5607 GB Notification: Performance of SimCode: time 8.51e-07/1.941, allocations: 0 / 1.011 GB, free: 127.8 MB / 0.5607 GB Notification: Performance of Templates: time 0.481/2.422, allocations: 263.6 MB / 1.268 GB, free: 64.83 MB / 0.5607 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches