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.001159/0.001159, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001135/0.001135, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2244/0.2244, allocations: 46.12 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 75.88 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1344, allocations: 62.44 MB / 481.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.01975/0.1542, allocations: 18.57 MB / 0.4883 GB, free: 1.883 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01136/0.1656, allocations: 5.318 MB / 0.4935 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002946/0.1686, allocations: 115.7 kB / 0.4936 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007668/0.1763, allocations: 4.766 MB / 0.4983 GB, free: 7.652 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006306/0.1826, allocations: 3.043 MB / 0.5012 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00193/0.1846, allocations: 0.9048 MB / 0.5021 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2306/0.4152, allocations: 8.408 MB / 0.5103 GB, free: 13.26 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0091/0.4243, allocations: 6.417 MB / 0.5166 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008131/0.4325, allocations: 2.927 MB / 0.5195 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009466/0.442, allocations: 3.954 MB / 0.5233 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002522/0.4445, allocations: 0.6203 MB / 0.5239 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003792/0.4483, allocations: 1.44 MB / 0.5253 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003702/0.4521, allocations: 3.623 MB / 0.5289 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004747/0.4568, allocations: 4.211 MB / 0.533 GB, free: 7.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01194/0.4688, allocations: 13.45 MB / 0.5461 GB, free: 15.37 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.4688, allocations: 0 / 0.5461 GB, free: 15.37 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4688, allocations: 4 kB / 0.5461 GB, free: 15.37 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004935/0.4693, allocations: 0 / 0.5461 GB, free: 15.37 MB / 398.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.02462/0.494, allocations: 8.735 MB / 0.5546 GB, free: 6.754 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/0.494, allocations: 8.031 kB / 0.5546 GB, free: 6.746 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02086/0.5149, allocations: 5.426 MB / 0.5599 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01286/0.5278, allocations: 4.927 MB / 0.5648 GB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004275/0.5283, allocations: 439.9 kB / 0.5652 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003642/0.5319, allocations: 0.5737 MB / 0.5657 GB, free: 11.79 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03862/0.5706, allocations: 19.85 MB / 0.5851 GB, free: 7.266 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004492/0.5711, allocations: 68.03 kB / 0.5852 GB, free: 7.227 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002739/0.5738, allocations: 271.9 kB / 0.5854 GB, free: 7.035 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007034/0.5809, allocations: 4.17 MB / 0.5895 GB, free: 2.918 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03972/0.6206, allocations: 17.64 MB / 0.6067 GB, free: 1.531 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1174/0.7381, allocations: 73.17 MB / 0.6782 GB, free: 7.082 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01732/0.7555, allocations: 7.929 MB / 0.6859 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007746/0.7632, allocations: 5.18 MB / 0.691 GB, free: 9.719 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003111/0.7636, allocations: 67.11 kB / 0.6911 GB, free: 9.668 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.201e-05/0.7637, allocations: 73.08 kB / 0.6911 GB, free: 9.586 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 7.304e-06/0.7637, allocations: 4 kB / 0.6911 GB, free: 9.582 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.5353/1.299, allocations: 41.71 MB / 0.7319 GB, free: 176.7 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/1.299, allocations: 229.1 kB / 0.7321 GB, free: 176.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01094/1.31, allocations: 6.378 MB / 0.7383 GB, free: 174.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001151/1.311, allocations: 93.36 kB / 0.7384 GB, free: 174.1 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002979/1.314, allocations: 5.477 MB / 0.7438 GB, free: 169.9 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002206/1.316, allocations: 1.741 MB / 0.7455 GB, free: 168.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002937/1.319, allocations: 2.25 MB / 0.7477 GB, free: 167.6 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.8e-05/1.319, allocations: 301.1 kB / 0.7479 GB, free: 167.3 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006475/1.326, allocations: 5.03 MB / 0.7529 GB, free: 165.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009602/1.336, allocations: 11.09 MB / 0.7637 GB, free: 155.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01656/1.352, allocations: 17.43 MB / 0.7807 GB, free: 142.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002295/1.352, allocations: 62.41 kB / 0.7808 GB, free: 142.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=1483) (initialization): time 0.03162/1.384, allocations: 17.86 MB / 0.7982 GB, free: 128.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000315/1.384, allocations: 96.22 kB / 0.7983 GB, free: 128 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000427/1.385, allocations: 212 kB / 0.7985 GB, free: 127.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005662/1.391, allocations: 2.35 MB / 0.8008 GB, free: 125.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008601/1.399, allocations: 2.562 MB / 0.8033 GB, free: 122.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01672/1.416, allocations: 17.42 MB / 0.8203 GB, free: 104.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008583/1.424, allocations: 0.6563 MB / 0.8209 GB, free: 104.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001713/1.426, allocations: 0.6283 MB / 0.8216 GB, free: 103.6 MB / 0.545 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.006398/1.433, allocations: 4.067 MB / 0.8255 GB, free: 99.52 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001319/1.434, allocations: 0.59 MB / 0.8261 GB, free: 98.92 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0135/1.447, allocations: 10.2 MB / 0.8361 GB, free: 88.66 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.333e-05/1.448, allocations: 91.58 kB / 0.8362 GB, free: 88.57 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-05/1.448, allocations: 12 kB / 0.8362 GB, free: 88.56 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.213e-05/1.448, allocations: 23.86 kB / 0.8362 GB, free: 88.54 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03418/1.482, allocations: 21.82 MB / 0.8575 GB, free: 66.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.837e-05/1.482, allocations: 12 kB / 0.8575 GB, free: 66.58 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003225/1.485, allocations: 0.7332 MB / 0.8582 GB, free: 65.85 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004774/1.49, allocations: 2.03 MB / 0.8602 GB, free: 63.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006593/1.491, allocations: 87.94 kB / 0.8603 GB, free: 63.72 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01449/1.505, allocations: 16.2 MB / 0.8761 GB, free: 46.97 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.808e-06/1.505, allocations: 20 kB / 0.8761 GB, free: 46.95 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01962/1.525, allocations: 16.09 MB / 0.8918 GB, free: 30.62 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001963/1.527, allocations: 0.6338 MB / 0.8925 GB, free: 29.96 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001245/1.528, allocations: 81.09 kB / 0.8925 GB, free: 29.88 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002659/1.531, allocations: 310.5 kB / 0.8928 GB, free: 29.58 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007345/1.531, allocations: 286.7 kB / 0.8931 GB, free: 29.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002992/1.532, allocations: 122.9 kB / 0.8932 GB, free: 29.18 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00528/1.537, allocations: 3.979 MB / 0.8971 GB, free: 25.21 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.81e-07/1.537, allocations: 4 kB / 0.8971 GB, free: 25.21 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009112/1.546, allocations: 2.002 MB / 0.8991 GB, free: 23.21 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.0008491/1.547, allocations: 240.5 kB / 0.8993 GB, free: 22.98 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01493/1.562, allocations: 12.34 MB / 0.9113 GB, free: 10.62 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/1.562, allocations: 4 kB / 0.9113 GB, free: 10.62 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.2124/1.774, allocations: 4.927 MB / 0.9162 GB, free: 170.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00533/1.78, allocations: 0.7831 MB / 0.9169 GB, free: 170 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03957/1.819, allocations: 20.02 MB / 0.9365 GB, free: 164.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008462/1.828, allocations: 5.912 MB / 0.9423 GB, free: 162.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008913/1.837, allocations: 3.994 MB / 0.9462 GB, free: 162.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001646/1.839, allocations: 429 kB / 0.9466 GB, free: 162.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.162e-06/1.839, allocations: 1.859 kB / 0.9466 GB, free: 162.3 MB / 0.545 GB Notification: Performance of Templates: time 0.1102/1.949, allocations: 66.99 MB / 1.012 GB, free: 107 MB / 0.545 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 -s cvode -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