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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001003/0.001003, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009819/0.0009819, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9849/0.9849, allocations: 177 MB / 204.9 MB, free: 5.559 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2552/0.2552, allocations: 34.86 MB / 296.3 MB, free: 0.543 MB / 266.7 MB " [Timeout remaining time 180] 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=5002,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=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.354e-06/2.354e-06, allocations: 0 / 378.8 MB, free: 2.074 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.669e-05/2.904e-05, allocations: 8.641 kB / 378.8 MB, free: 2.066 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.01312/0.01315, allocations: 17.9 MB / 396.7 MB, free: 84 kB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.008151/0.0213, allocations: 5.245 MB / 401.9 MB, free: 10.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001494/0.02279, allocations: 143.3 kB / 402.1 MB, free: 10.68 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004795/0.02759, allocations: 5.105 MB / 407.2 MB, free: 5.559 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004404/0.03199, allocations: 3.247 MB / 410.4 MB, free: 2.297 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001349/0.03334, allocations: 1.021 MB / 411.4 MB, free: 1.273 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006942/0.04028, allocations: 9.218 MB / 420.7 MB, free: 8.035 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004492/0.04477, allocations: 5.916 MB / 426.6 MB, free: 2.047 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003652/0.04843, allocations: 4.475 MB / 431 MB, free: 13.56 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003651/0.05208, allocations: 4.384 MB / 435.4 MB, free: 9.168 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007909/0.05287, allocations: 0.6328 MB / 436.1 MB, free: 8.535 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001693/0.05456, allocations: 1.455 MB / 437.5 MB, free: 7.078 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002118/0.05668, allocations: 3.9 MB / 441.4 MB, free: 3.168 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001947/0.05863, allocations: 2.395 MB / 443.8 MB, free: 0.7656 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1855/0.2441, allocations: 8.448 MB / 452.3 MB, free: 61.89 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.2441, allocations: 0 / 452.3 MB, free: 61.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2441, allocations: 0 / 452.3 MB, free: 61.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004932/0.2446, allocations: 0 / 452.3 MB, free: 61.89 MB / 410.7 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.01333/0.2579, allocations: 9.626 MB / 461.9 MB, free: 58.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.258, allocations: 9.25 kB / 461.9 MB, free: 58.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01152/0.2695, allocations: 6.48 MB / 468.4 MB, free: 57.72 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006252/0.2757, allocations: 4.421 MB / 472.8 MB, free: 56.86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001935/0.2759, allocations: 437.5 kB / 473.2 MB, free: 56.85 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007097/0.2766, allocations: 0.5683 MB / 473.8 MB, free: 56.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01438/0.291, allocations: 10.96 MB / 484.8 MB, free: 51.07 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001534/0.2912, allocations: 72.77 kB / 484.8 MB, free: 51.05 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005821/0.2917, allocations: 277.3 kB / 485.1 MB, free: 50.93 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004501/0.2962, allocations: 4.17 MB / 489.3 MB, free: 50.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0146/0.3108, allocations: 6.097 MB / 495.4 MB, free: 49.44 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04979/0.3606, allocations: 74.47 MB / 0.5565 GB, free: 2.363 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007657/0.3683, allocations: 3.659 MB / 0.56 GB, free: 14.7 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002107/0.3704, allocations: 1.495 MB / 0.5615 GB, free: 13.18 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001664/0.3706, allocations: 70.52 kB / 0.5616 GB, free: 13.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.146e-05/0.3706, allocations: 87.33 kB / 0.5617 GB, free: 13.02 MB / 442.7 MB Notification: Performance of pre-optimization done (n=429): time 6.122e-06/0.3706, allocations: 0 / 0.5617 GB, free: 13.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=476): time 0.04719/0.4178, allocations: 26.5 MB / 0.5875 GB, free: 2.625 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.4179, allocations: 226.3 kB / 0.5878 GB, free: 2.363 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005739/0.4237, allocations: 5.612 MB / 0.5932 GB, free: 12.76 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002601/0.4239, allocations: 86.58 kB / 0.5933 GB, free: 12.67 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002575/0.4265, allocations: 5.953 MB / 0.5991 GB, free: 6.766 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001293/0.4278, allocations: 1.874 MB / 0.601 GB, free: 4.914 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002349/0.4301, allocations: 2.403 MB / 0.6033 GB, free: 2.5 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.4303, allocations: 476.8 kB / 0.6038 GB, free: 2.031 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002546/0.4328, allocations: 1.541 MB / 0.6053 GB, free: 500 kB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1867/0.6195, allocations: 10.55 MB / 0.6156 GB, free: 127.2 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01001/0.6296, allocations: 13.32 MB / 0.6286 GB, free: 115.2 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001209/0.6297, allocations: 65.81 kB / 0.6286 GB, free: 115.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=1483) (initialization): time 0.01444/0.6441, allocations: 10.88 MB / 0.6393 GB, free: 113.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001328/0.6442, allocations: 94.84 kB / 0.6394 GB, free: 113.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002739/0.6445, allocations: 210.2 kB / 0.6396 GB, free: 113.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003828/0.6484, allocations: 1.613 MB / 0.6411 GB, free: 113.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004911/0.6533, allocations: 2.564 MB / 0.6436 GB, free: 113.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008432/0.6617, allocations: 11.55 MB / 0.6549 GB, free: 105.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004473/0.6662, allocations: 0.72 MB / 0.6556 GB, free: 105.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005815/0.6667, allocations: 0.6132 MB / 0.6562 GB, free: 105.3 MB / 474.7 MB 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.002537/0.6693, allocations: 1.031 MB / 0.6572 GB, free: 104.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008403/0.6701, allocations: 0.7014 MB / 0.6579 GB, free: 104.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006771/0.6769, allocations: 5.111 MB / 0.6629 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-05/0.677, allocations: 96.16 kB / 0.663 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.221e-05/0.677, allocations: 11.59 kB / 0.663 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.135e-05/0.677, allocations: 18.38 kB / 0.663 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01823/0.6952, allocations: 13.12 MB / 0.6758 GB, free: 96.99 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/0.6952, allocations: 8 kB / 0.6758 GB, free: 96.98 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001735/0.697, allocations: 0.7373 MB / 0.6766 GB, free: 96.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00291/0.6999, allocations: 1.341 MB / 0.6779 GB, free: 95.57 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002377/0.7001, allocations: 88.69 kB / 0.678 GB, free: 95.49 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006427/0.7065, allocations: 10.5 MB / 0.6882 GB, free: 85.25 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.7066, allocations: 19.94 kB / 0.6882 GB, free: 85.23 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008314/0.7149, allocations: 6.685 MB / 0.6948 GB, free: 79.46 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007217/0.7156, allocations: 0.5582 MB / 0.6953 GB, free: 78.93 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004432/0.716, allocations: 79.75 kB / 0.6954 GB, free: 78.85 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001554/0.7176, allocations: 376.5 kB / 0.6957 GB, free: 78.63 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004591/0.718, allocations: 301.2 kB / 0.696 GB, free: 78.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002094/0.7183, allocations: 119.7 kB / 0.6961 GB, free: 78.35 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002549/0.7208, allocations: 2.355 MB / 0.6984 GB, free: 76.45 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.7208, allocations: 0 / 0.6984 GB, free: 76.45 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006147/0.7269, allocations: 2.138 MB / 0.7005 GB, free: 74.32 MB / 474.7 MB 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.0004849/0.7274, allocations: 246.3 kB / 0.7008 GB, free: 74.09 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007713/0.7351, allocations: 6.795 MB / 0.7074 GB, free: 67.98 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.7352, allocations: 4 kB / 0.7074 GB, free: 67.98 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002406/0.7376, allocations: 2.566 MB / 0.7099 GB, free: 65.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/0.7396, allocations: 0.6671 MB / 0.7106 GB, free: 65.03 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01876/0.7584, allocations: 15.93 MB / 0.7261 GB, free: 49.84 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002217/0.7606, allocations: 2.469 MB / 0.7285 GB, free: 47.34 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005645/0.7663, allocations: 3.203 MB / 0.7317 GB, free: 44.13 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/0.7675, allocations: 424.4 kB / 0.7321 GB, free: 43.71 MB / 474.7 MB Notification: Performance of SimCode: time 1.563e-06/0.7675, allocations: 0 / 0.7321 GB, free: 43.71 MB / 474.7 MB Notification: Performance of Templates: time 0.2125/0.9801, allocations: 65.27 MB / 0.7958 GB, free: 124.1 MB / 474.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.542624345980585]