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.001715/0.001715, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002627/0.002627, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.624/1.624, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2212/0.2212, allocations: 46.1 MB / 343.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 81.11 kB / 416.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1387, allocations: 62.45 MB / 479.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.373/0.5118, allocations: 77.48 MB / 0.5437 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04439/0.5562, allocations: 15.02 MB / 0.5584 GB, free: 4.391 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02443/0.5807, allocations: 340.4 kB / 0.5587 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009925/0.5907, allocations: 4.742 MB / 0.5633 GB, free: 1.246 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008895/0.5997, allocations: 2.886 MB / 0.5662 GB, free: 14.46 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002844/0.6025, allocations: 0.8309 MB / 0.567 GB, free: 13.62 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01594/0.6185, allocations: 12.14 MB / 0.5788 GB, free: 1.465 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01023/0.6288, allocations: 6.281 MB / 0.585 GB, free: 11.13 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006567/0.6353, allocations: 2.561 MB / 0.5875 GB, free: 8.562 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009029/0.6444, allocations: 4.198 MB / 0.5916 GB, free: 4.352 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00291/0.6474, allocations: 443.9 kB / 0.592 GB, free: 3.918 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004504/0.6519, allocations: 1.311 MB / 0.5933 GB, free: 2.605 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005098/0.657, allocations: 3.487 MB / 0.5967 GB, free: 15.11 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006866/0.6639, allocations: 4.053 MB / 0.6006 GB, free: 11.03 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01331/0.6773, allocations: 12.79 MB / 0.6131 GB, free: 14.2 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.6773, allocations: 0 / 0.6131 GB, free: 14.2 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.6773, allocations: 4 kB / 0.6131 GB, free: 14.19 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000399/0.6777, allocations: 0 / 0.6131 GB, free: 14.19 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.01928/0.697, allocations: 8.724 MB / 0.6217 GB, free: 5.383 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.092e-05/0.6971, allocations: 16.81 kB / 0.6217 GB, free: 5.367 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02193/0.719, allocations: 5.437 MB / 0.627 GB, free: 15.91 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01309/0.7322, allocations: 4.84 MB / 0.6317 GB, free: 11.01 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004647/0.7327, allocations: 439.5 kB / 0.6321 GB, free: 10.58 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00309/0.7358, allocations: 0.5702 MB / 0.6327 GB, free: 10.01 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03832/0.7741, allocations: 19.85 MB / 0.6521 GB, free: 5.129 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002666/0.7744, allocations: 71.36 kB / 0.6521 GB, free: 5.059 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001471/0.7759, allocations: 271.7 kB / 0.6524 GB, free: 4.793 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007208/0.7831, allocations: 4.176 MB / 0.6565 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0371/0.8202, allocations: 17.64 MB / 0.6737 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6308/1.451, allocations: 73.53 MB / 0.7455 GB, free: 129.3 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01782/1.469, allocations: 7.939 MB / 0.7533 GB, free: 126.1 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006535/1.476, allocations: 5.179 MB / 0.7583 GB, free: 123.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002645/1.476, allocations: 65.61 kB / 0.7584 GB, free: 123.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.397e-05/1.476, allocations: 74.53 kB / 0.7584 GB, free: 123.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 7.174e-06/1.476, allocations: 0 / 0.7584 GB, free: 123.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.09966/1.576, allocations: 41.71 MB / 0.7992 GB, free: 98.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001319/1.576, allocations: 222.8 kB / 0.7994 GB, free: 98.34 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008424/1.584, allocations: 6.386 MB / 0.8056 GB, free: 91.95 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009962/1.585, allocations: 93.38 kB / 0.8057 GB, free: 91.85 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002519/1.588, allocations: 5.479 MB / 0.8111 GB, free: 86.37 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001913/1.59, allocations: 1.732 MB / 0.8128 GB, free: 84.66 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00268/1.592, allocations: 2.253 MB / 0.815 GB, free: 82.39 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.566e-05/1.592, allocations: 305.1 kB / 0.8153 GB, free: 82.09 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00585/1.598, allocations: 5.031 MB / 0.8202 GB, free: 77.06 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009437/1.608, allocations: 11.09 MB / 0.831 GB, free: 63.05 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01739/1.625, allocations: 17.43 MB / 0.848 GB, free: 42.66 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001816/1.625, allocations: 60 kB / 0.8481 GB, free: 42.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1483) (initialization): time 0.03015/1.656, allocations: 17.86 MB / 0.8655 GB, free: 24.71 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/1.656, allocations: 96 kB / 0.8656 GB, free: 24.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001911/1.656, allocations: 208 kB / 0.8658 GB, free: 24.41 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005332/1.661, allocations: 2.346 MB / 0.8681 GB, free: 22.05 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008364/1.67, allocations: 2.562 MB / 0.8706 GB, free: 19.49 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01594/1.686, allocations: 16.12 MB / 0.8863 GB, free: 2.848 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009011/1.695, allocations: 0.663 MB / 0.887 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001852/1.696, allocations: 0.6247 MB / 0.8876 GB, free: 1.562 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.007938/1.704, allocations: 4.078 MB / 0.8916 GB, free: 13.48 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001703/1.706, allocations: 0.59 MB / 0.8922 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.018/1.724, allocations: 10.2 MB / 0.9021 GB, free: 2.617 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001256/1.724, allocations: 83.98 kB / 0.9022 GB, free: 2.535 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-05/1.724, allocations: 12 kB / 0.9022 GB, free: 2.523 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.764e-05/1.724, allocations: 19.92 kB / 0.9022 GB, free: 2.504 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3557/2.08, allocations: 21.93 MB / 0.9236 GB, free: 185.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.367e-05/2.08, allocations: 10.91 kB / 0.9237 GB, free: 185.5 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00423/2.084, allocations: 0.7426 MB / 0.9244 GB, free: 185.5 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006763/2.091, allocations: 2.032 MB / 0.9264 GB, free: 185.5 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001083/2.092, allocations: 91.41 kB / 0.9264 GB, free: 185.5 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01976/2.112, allocations: 15.02 MB / 0.9411 GB, free: 177.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-05/2.112, allocations: 17.5 kB / 0.9411 GB, free: 177.8 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02604/2.138, allocations: 16.08 MB / 0.9568 GB, free: 171.7 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002008/2.14, allocations: 0.6278 MB / 0.9575 GB, free: 171.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002549/2.143, allocations: 79.89 kB / 0.9575 GB, free: 171.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004321/2.147, allocations: 312.8 kB / 0.9578 GB, free: 171.4 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001397/2.149, allocations: 290.3 kB / 0.9581 GB, free: 171.4 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007961/2.149, allocations: 122.9 kB / 0.9582 GB, free: 171.4 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.008474/2.158, allocations: 3.975 MB / 0.9621 GB, free: 170.1 MB / 0.5607 GB Notification: Performance of sort global known variables: time 3.61e-07/2.158, allocations: 0 / 0.9621 GB, free: 170.1 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01391/2.172, allocations: 2.002 MB / 0.9641 GB, free: 169.8 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.001593/2.174, allocations: 247.2 kB / 0.9643 GB, free: 169.6 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01916/2.193, allocations: 12.28 MB / 0.9763 GB, free: 162.4 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.4e-05/2.193, allocations: 0 / 0.9763 GB, free: 162.4 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.007778/2.201, allocations: 4.933 MB / 0.9811 GB, free: 158 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007248/2.208, allocations: 0.7406 MB / 0.9818 GB, free: 157.4 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03528/2.243, allocations: 24.26 MB / 1.006 GB, free: 133.4 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007749/2.251, allocations: 5.914 MB / 1.011 GB, free: 127.4 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.009167/2.26, allocations: 3.987 MB / 1.015 GB, free: 123.4 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001754/2.262, allocations: 435.4 kB / 1.016 GB, free: 123 MB / 0.5607 GB Notification: Performance of SimCode: time 1.002e-06/2.262, allocations: 0 / 1.016 GB, free: 123 MB / 0.5607 GB Notification: Performance of Templates: time 0.115/2.377, allocations: 72.78 MB / 1.087 GB, free: 50.48 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/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