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.000813/0.0008131, allocations: 94.86 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001002/0.001002, allocations: 207 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.7 MB / 247.5 MB, free: 11.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2031/0.2031, allocations: 46.18 MB / 345.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003775/0.0003773, allocations: 11.98 kB / 420.2 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1588, allocations: 63.55 MB / 483.7 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.3072/0.466, allocations: 75.59 MB / 0.5462 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0361/0.5022, allocations: 14.95 MB / 0.5608 GB, free: 5.492 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01712/0.5193, allocations: 337.5 kB / 0.5611 GB, free: 5.441 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002659/0.522, allocations: 0.8109 MB / 0.5619 GB, free: 4.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007746/0.5298, allocations: 2.888 MB / 0.5647 GB, free: 2.836 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00211/0.5319, allocations: 0.8309 MB / 0.5656 GB, free: 2.273 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01441/0.5463, allocations: 12.15 MB / 0.5774 GB, free: 6.723 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01286/0.5592, allocations: 8.603 MB / 0.5858 GB, free: 14.03 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004387/0.5637, allocations: 2.163 MB / 0.5879 GB, free: 11.86 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005649/0.5693, allocations: 3.702 MB / 0.5915 GB, free: 8.141 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001305/0.5707, allocations: 280 kB / 0.5918 GB, free: 7.867 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002974/0.5736, allocations: 1.151 MB / 0.5929 GB, free: 6.715 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003646/0.5773, allocations: 3.256 MB / 0.5961 GB, free: 3.449 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005264/0.5826, allocations: 3.778 MB / 0.5998 GB, free: 15.64 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01262/0.5952, allocations: 10.39 MB / 0.6099 GB, free: 5.23 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.5953, allocations: 4 kB / 0.61 GB, free: 5.227 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.5953, allocations: 0 / 0.61 GB, free: 5.227 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004326/0.5957, allocations: 0 / 0.61 GB, free: 5.227 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: 2997 * Number of variables: 2997 Notification: Performance of Generate backend data structure: time 0.01529/0.611, allocations: 7.098 MB / 0.6169 GB, free: 14.04 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.6111, allocations: 12.88 kB / 0.6169 GB, free: 14.03 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02196/0.633, allocations: 5.582 MB / 0.6223 GB, free: 8.43 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0112/0.6443, allocations: 4.84 MB / 0.6271 GB, free: 3.531 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004835/0.6448, allocations: 443.5 kB / 0.6275 GB, free: 3.098 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002449/0.6473, allocations: 0.5702 MB / 0.6281 GB, free: 2.527 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03804/0.6853, allocations: 19.87 MB / 0.6475 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003159/0.6857, allocations: 71.36 kB / 0.6475 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002123/0.6878, allocations: 271.7 kB / 0.6478 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007026/0.6949, allocations: 4.176 MB / 0.6519 GB, free: 9.105 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03462/0.7295, allocations: 17.67 MB / 0.6691 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5268/1.256, allocations: 73.62 MB / 0.741 GB, free: 131.8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01529/1.272, allocations: 7.941 MB / 0.7488 GB, free: 129.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005594/1.277, allocations: 5.19 MB / 0.7538 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001924/1.278, allocations: 63.88 kB / 0.7539 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.273e-05/1.278, allocations: 75.47 kB / 0.754 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 6.893e-06/1.278, allocations: 0 / 0.754 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.09069/1.368, allocations: 41.76 MB / 0.7948 GB, free: 101.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.512e-05/1.368, allocations: 230.2 kB / 0.795 GB, free: 101.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008512/1.377, allocations: 6.385 MB / 0.8012 GB, free: 94.68 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008728/1.378, allocations: 87.97 kB / 0.8013 GB, free: 94.59 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002438/1.38, allocations: 5.482 MB / 0.8066 GB, free: 89.11 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001671/1.382, allocations: 1.737 MB / 0.8083 GB, free: 87.39 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001083/1.383, allocations: 0.9622 MB / 0.8093 GB, free: 86.42 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.821e-05/1.383, allocations: 301.1 kB / 0.8096 GB, free: 86.12 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006155/1.389, allocations: 5.035 MB / 0.8145 GB, free: 81.09 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008558/1.398, allocations: 11.09 MB / 0.8253 GB, free: 67.11 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01581/1.414, allocations: 17.44 MB / 0.8424 GB, free: 46.71 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001648/1.414, allocations: 63.94 kB / 0.8424 GB, free: 46.65 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1483) (initialization): time 0.02777/1.442, allocations: 17.86 MB / 0.8599 GB, free: 28.76 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002102/1.442, allocations: 96 kB / 0.8599 GB, free: 28.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002989/1.442, allocations: 214.1 kB / 0.8601 GB, free: 28.46 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005576/1.448, allocations: 2.354 MB / 0.8624 GB, free: 26.09 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007809/1.456, allocations: 2.566 MB / 0.865 GB, free: 23.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01574/1.471, allocations: 16.12 MB / 0.8807 GB, free: 6.871 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007731/1.479, allocations: 0.6761 MB / 0.8814 GB, free: 6.195 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002032/1.481, allocations: 0.6191 MB / 0.882 GB, free: 5.578 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.007523/1.489, allocations: 4.075 MB / 0.8859 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001495/1.49, allocations: 0.59 MB / 0.8865 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01967/1.51, allocations: 10.22 MB / 0.8965 GB, free: 6.668 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001293/1.51, allocations: 91.97 kB / 0.8966 GB, free: 6.578 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.584e-05/1.51, allocations: 8.125 kB / 0.8966 GB, free: 6.57 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.302e-05/1.51, allocations: 19.92 kB / 0.8966 GB, free: 6.551 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04111/1.551, allocations: 21.95 MB / 0.918 GB, free: 432 kB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.624e-05/1.551, allocations: 8 kB / 0.9181 GB, free: 424 kB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2604/1.812, allocations: 0.7427 MB / 0.9188 GB, free: 186.7 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006734/1.819, allocations: 2.039 MB / 0.9208 GB, free: 186.6 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009506/1.82, allocations: 84.19 kB / 0.9209 GB, free: 186.6 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01949/1.839, allocations: 15.04 MB / 0.9355 GB, free: 179.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.565e-05/1.839, allocations: 14.72 kB / 0.9356 GB, free: 179.8 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02579/1.865, allocations: 16.11 MB / 0.9513 GB, free: 173.7 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001906/1.867, allocations: 0.6338 MB / 0.9519 GB, free: 173.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001924/1.869, allocations: 85.64 kB / 0.952 GB, free: 173.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004208/1.873, allocations: 316.1 kB / 0.9523 GB, free: 173.5 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001138/1.874, allocations: 285.9 kB / 0.9526 GB, free: 173.4 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005812/1.875, allocations: 124.5 kB / 0.9527 GB, free: 173.4 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.006988/1.882, allocations: 3.977 MB / 0.9566 GB, free: 172.1 MB / 0.5607 GB Notification: Performance of sort global known variables: time 2.41e-07/1.882, allocations: 0 / 0.9566 GB, free: 172.1 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01047/1.892, allocations: 2.005 MB / 0.9585 GB, free: 171.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.001177/1.894, allocations: 239.4 kB / 0.9587 GB, free: 171.7 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01659/1.91, allocations: 12.3 MB / 0.9708 GB, free: 164.9 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.293e-05/1.91, allocations: 7.844 kB / 0.9708 GB, free: 164.9 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.006358/1.917, allocations: 4.938 MB / 0.9756 GB, free: 160.5 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0147/1.931, allocations: 0.7403 MB / 0.9763 GB, free: 159.9 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03788/1.969, allocations: 25.18 MB / 1.001 GB, free: 135.8 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00915/1.978, allocations: 5.906 MB / 1.007 GB, free: 129.9 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002698/1.981, allocations: 0.5111 MB / 1.007 GB, free: 129.3 MB / 0.5607 GB Notification: Performance of SimCode: time 1.032e-06/1.981, allocations: 0 / 1.007 GB, free: 129.3 MB / 0.5607 GB Notification: Performance of Templates: time 0.5003/2.482, allocations: 261.9 MB / 1.263 GB, free: 66.59 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